Saturday, February 19, 2011

VMWare Server 2.x and Ubuntu eth0 eth1 eth2 eth3....

Ubuntu can be really annoying when used with VMWare. The main point to note is that if you are transitioning VM's between machines, on the first startup it asks "Did you move or copy this VM?"

If you say you copied the VM, it assignes a new MAC address to the virtual machine. This will break all your previously defined network settings, and leave you with "ghost" interfaces of the old devices that are not used for anything.


To clear these now invalid entries, login with su, and go here:

/etc/udev/rules.d
70-persistent-net.rules

Copy the MAC addresses from eth2 / eth3 into eth0 / eth1 and then delete 2/3. 


If you remove all entires, you old config likely still won't be recognized.


Or just remember to tell VMWare you "moved" the VM, next time.