Force mac address updates for slaves

When using VirtualBox as a provider, "slaves" had the same MAC as first network adapter in "master",
which was causing issues with networking. Now MAC will be randomly created.
This commit is contained in:
Sebastian Kalinowski 2015-10-20 12:24:21 +02:00
parent 21c42b56ca
commit c029035ea9

1
Vagrantfile vendored
View File

@ -151,6 +151,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
"--memory", SLAVES_RAM, "--memory", SLAVES_RAM,
"--cpus", SLAVES_CPUS, "--cpus", SLAVES_CPUS,
"--ioapic", "on", "--ioapic", "on",
"--macaddress1", "auto",
] ]
if PARAVIRT_PROVIDER if PARAVIRT_PROVIDER
v.customize ['modifyvm', :id, "--paravirtprovider", PARAVIRT_PROVIDER] # for linux guest v.customize ['modifyvm', :id, "--paravirtprovider", PARAVIRT_PROVIDER] # for linux guest