Quick Tip: Fix networking after copying Ubuntu virtual machines

A virtual machine will have different MAC addresses assigned to the network interfaces after copying it. This is true for all versions of VMWare.

Here is a quick fix that I use frequently when copying Ubuntu vm’s:

sudo rm /etc/udev/rules.d/70-persistent-net.rules
sudo reboot

Another method is to manually edit ‘/etc/udev/rules.d/70-persistent-net.rules’ and replace the old ‘eth0’ interface definition with the new ‘eth1’ definition. If you have multiple interfaces, this will take a little more work to redefine all of the interfaces.