VMFAQ.com - FAQing about virtualization since 2008
Search:     Advanced search
Browse by category:
Contact Us

After cloning a Debian/Ubuntu VM, the guest network is not working

Add comment
Views: 585
Votes: 1
Comments: 0
Posted: 27 Jan, 2008
by: Troen L.
Updated: 26 Jul, 2008
by: Troen L.

When trying to bring up the interface I get the following error messages:

Reconfiguring network interfaces...SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
done.


This happens because when cloning a VM it will get a new UUID and MAC address. Debian stores the MAC address that it expects the interface to have in a file. If the mac address changes, it will no longer recognize the old NIC.
The solution is to delete the file /etc/udev/rules.d/rules.d/z25_persistent-net.rules (ubuntu: /etc/udev/rules.d/70-persistent-net.rules) and reboot the VM. This file will then be recreated with the new info.

If you change the NIC of a physical machine running debian, you will also have this exact same issue.
Others in this Category
document Is a raw lun (RDM) faster than a VMDK on a VMFS? Does physical or virtual RDM mapping make a difference?
document My VirtualCenter database is huge and slow, can I purge it?
document I keep ketting strange com.vmware.vcIntegrity reconfiguration messages
document How can I convert an existing computer into a virtual one?
document Is there a GUI for Storage VMotion?
document Where can I find a Virtual Infrastructure Client for Linux / Mac OSX?
document I'm getting a black console screen from my guest
document What is the difference between ESX 3.5 and 3i? Foundation, Standard and Enterprise?
document Recommendations for template virtual machines
document Active Directory and VMware snapshots
» More articles



RSS