Resolution for the world: bentos does a good job cleaning this up. The solution in my case was as part of the cleanup steps on top of the more commonly done cleaning of udev and network-scripts folder, do an "rm -rf /var/lib/NetworkManager".
On Tuesday, 13 June 2017 17:03:28 UTC-5, Ian Koenig wrote: > > Hi Packer World, > > I'm building a simple centos 7.3.1611 image in packer for use by VMware > Workstation/Fusion in a vagrant environment. Is there any best practices > I can follow to get this to work more consistently? > > What's happening is the first vagrant up I do, the network configuration > fails on me. If I vagrant halt and vagrant up it works. In the first > vagrant up I get the error of > --- > ==> service: Setting hostname... > The following SSH command responded with a non-zero exit status. > Vagrant assumes that this means the command failed! > > # Update sysconfig > sed -i 's/\(HOSTNAME=\).*/\1service/' /etc/sysconfig/network > > # Update DNS > sed -i 's/\(DHCP_HOSTNAME=\).*/\1"service"/' > /etc/sysconfig/network-scripts/ifcfg-* > > [... stuff deleted ...] > --- > > > Yet when I use the atlas version of centos/7, it works just fine. My > packer script is fairly simple with a basic kickstart file, one script to > setup the vagrant.sh. > > Why does the centos/7 image work and my packer based centos ISO image not > work? > > Thanks > ian > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/8f3f4f9f-92a7-459c-9121-8e7521e0b120%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
