Friday 30 September 2011

Vmware: “SIOCSIFADDR: No such device eth0″ after cloning

After copying my virtual machine and rebooting it and choosing answer to question 'I_copied it'

there is a problem with the network device "SIOCSIFADDR: No such device eth0″


There is a file 70-persistent-net.rules.

The 70-persistent-net.rules file has contents similar to:


# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:50:xx:xx", ATTR{type}=="1", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:36:xx:xx", ATTR{type}=="1", NAME="eth1"


This can be edited and the eth1 line removed.


But since this seems to only work sometimes it seems easier to just rename the file or delete it as it seems to get regenerated on a reboot:


# Ubuntu 
sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old

More on this here (google results):
http://preview.tinyurl.com/6xdpq4t