vmware-iso: Permission denied /etc/vmware/vmnet8/dhcpd/dhcpd.leases with VMWare Workstation 12

47 views
Skip to first unread message

Andy Fraley

unread,
Oct 2, 2017, 3:26:54 PM10/2/17
to Packer
This is more of a VMWare issue, but I'm hoping someone has found an elegant workaround.  I'm using VMWare Workstation 12 on CentOS 7 and running Packer as an unprivileged user.  Using the vmware-iso builder, it needs access to /etc/vmware/vmnet8/dhcpd/dhcpd.leases to get the VM ip address.  However, this file is owned by root with perms set at 600.  I changed it to 644 but a short time later it had reverted to 600, so I assume the file is being overwritten.  

This may have something to do with root defaulting to a umask of 077 on our systems, though.

Alvaro Miranda Aguilera

unread,
Oct 2, 2017, 4:17:07 PM10/2/17
to packe...@googlegroups.com
hello

it seems the installation didn't put your user into vmware group

can you check?

id <username>

if vmware is in the output then log off / log on should the trick

if vmware group is not there i would check the documentation and see what went missed

but checking on internet, could be just matter of . usermod -a -G vmware <user>

check then id <user>

and if group is there, log off / log on

Alvaro

On Mon, Oct 2, 2017 at 9:26 PM, Andy Fraley <andrew...@gmail.com> wrote:
This is more of a VMWare issue, but I'm hoping someone has found an elegant workaround.  I'm using VMWare Workstation 12 on CentOS 7 and running Packer as an unprivileged user.  Using the vmware-iso builder, it needs access to /etc/vmware/vmnet8/dhcpd/dhcpd.leases to get the VM ip address.  However, this file is owned by root with perms set at 600.  I changed it to 644 but a short time later it had reverted to 600, so I assume the file is being overwritten.  

This may have something to do with root defaulting to a umask of 077 on our systems, though.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/5e2e0afb-d07d-4f63-b894-5ec4770d2623%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages