Page 1 of 1
MAC address not reinitialized
Posted: 26. Sep 2020, 16:41
by achillin
Hello,
I am trying to clone my virtual machine, and would like to have a different MAC in my cloned vm.
I select "Generate new MAC addresses for all network adapters" during cloning.
When I go to Settings -> Network -> Advanced, I see a different MAC correctly, however when I run ifconfig in my vms, the MAC is exactly the same in both the original and the cloned instances.
Could you please let me know how I arrive to have actually a different MAC in the clone?
Thanks in advance.
Re: MAC address not reinitialized
Posted: 26. Sep 2020, 18:44
by mpack
VirtualBox definitely changes the MAC if you tell it to. Are you sure you aren't confusing MAC with IP address? If you were to create two VMs both using NAT then yes, both will see the same IP address, because they are on separate virtual networks with identically configured private DHCP servers. The MAC is configured in the VM settings, so there's no way you'll ever see the same MAC twice unless you deliberately ask for it.
Re: MAC address not reinitialized
Posted: 28. Sep 2020, 11:15
by achillin
mpack wrote:VirtualBox definitely changes the MAC if you tell it to. Are you sure you aren't confusing MAC with IP address? If you were to create two VMs both using NAT then yes, both will see the same IP address, because they are on separate virtual networks with identically configured private DHCP servers. The MAC is configured in the VM settings, so there's no way you'll ever see the same MAC twice unless you deliberately ask for it.
Thanks for you reply. Please see the screenshots attached. In the settings of vm13046 and vm13046 Clone you can see the 2 different mac addresses.
However in the running instances ifconfig returns the same MAC for both. Do you have any clue how is this possible?
https://ibb.co/3zh3FtZ
https://ibb.co/MCRS1kg
https://ibb.co/zsVZn5Y
https://ibb.co/MDbkhh1
Re: MAC address not reinitialized
Posted: 28. Sep 2020, 11:22
by mpack
I'm afraid I'm not a Linux expert, I would imagine that you are looking at a configuration Linux remembers for a network card that no longer exists. Or, the configuration you showed me is not for the VM which is running. There could be many reasons.
Incidentally, a zipped VM log would be more useful than pictures. Make sure each VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.