I'm creating a base box. My provider is vmware-iso (fusion).
After creating and vagrant up-ing the box I'm noticing how vmware (as expected) is generating a new mac address for the new linked cloned VM.
However during packing I have a different mac address (prior to cloning) and therefor the interface name address that gets generated /etc/network/interfaces will be wrong
e.g.,
during packing
ifconfig -a | grep ens
ens32
during vagrant up
ifconfig -a | grep ens
ens33
When running vagrant up I allow the GUI to start so I can manually login and verify that the mac address is indeed different from when I was packing the base box. I have a couple of kludgy hacks to do a work around (i.e., running scripts and using hardcoded mac address to "bootstrap" the networking) but Ideally I'd like to just have linked clones have the same work flow as virtualbox provider does, i.e., "it just works" -> vagrant up, VM clones, VM gets an IP, vagrant ssh works.
One more thing, I know I can send boot params to during the packing phase to get ye ole ethX but is there something I can put in a vagrantfile that would also do that? I would be ok with having the interface always come up as eth0 and then during the first provision configure the name of the interface on next boot via udev persistent rules.
Thanks for the help