Friday, 24 February 2012

Sync MAC address of virtual machine

When I use VirtualBox or VMware I sometimes have to change the network adapters of the virtual quests and there comes the problem in case of my Ubuntu VMs that their ethX adapter's expected MAC address differs from the one they get from the host. Here is that single config file that you have to sync to contain the new address:

/etc/udev/rules.d/70-persistent-net.rules
The setting containing MAC address in the interface's line is:

ATTR{address}==""
 After reboot everything is ok :)