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:
parent
21c42b56ca
commit
c029035ea9
1
Vagrantfile
vendored
1
Vagrantfile
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user