vmare-iso packing with one mac address and vagrant up configured to do a linked clone issue

24 views
Skip to first unread message

raile...@gmail.com

unread,
Jan 25, 2017, 1:36:55 PM1/25/17
to Vagrant
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

Alvaro Miranda Aguilera

unread,
Jan 25, 2017, 1:59:28 PM1/25/17
to vagra...@googlegroups.com
hello

what os do you use?

The easier way is just make ens32 and ens33 as dhcp

so whatever it gets will just work.

source and destination VM are just vagrant boxes?



--
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/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/7d37fe6f-5286-49ec-a70c-7282b93d171a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

railed mail

unread,
Jan 25, 2017, 3:26:06 PM1/25/17
to vagra...@googlegroups.com
host is osx. using packer to pack an ubuntu 16.04 box and vagrant up-ing on osx 
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/HCNM8n7lAfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exB7k4xFGuA7c_Zt_oCxWAG8De560k0pKEH6DXqnSu1eA%40mail.gmail.com.

Alvaro Miranda Aguilera

unread,
Jan 26, 2017, 2:53:47 AM1/26/17
to vagra...@googlegroups.com
Hi

If you are in the latest version of vagrant and plugin, and still have this issue, please email sup...@hashicorp.com

it should be fixed already.

As work around, you can use

   config.vm.provider :vmware_fusion do |vmware|
     vmware.vmx["ethernet0.pcislotnumber"] = "33"
   end

To unsubscribe from this group and all its topics, send an email to vagrant-up+unsubscribe@googlegroups.com.

--
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/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

railed mail

unread,
Feb 10, 2017, 8:31:30 PM2/10/17
to vagra...@googlegroups.com
i cannot confirm that my situation created a problem that is specific to my packet and
vagrant configure but i can confirm that this work around solved the issue 
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyHb1JN1bhWNOcCTRhOK0EGpPhCofnFFPDkk69OuwTmZg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages