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: 2397
Votes: 3
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 Can I grow an existing virtual disk (.vmdk file)?
document I'm trying to install ESX4, but it stalls at 26% then slowly goes up to 29% and then nothing happens
document How to update the uEFI BIOS from the Service Console of ESX4
document What is the difference between ESX 3.5 and 3i? Foundation, Standard and Enterprise?
document My virtual machine's clock is inaccurate. What can be done to make it more accurate?
document I need more performance out of my VMware environment
document Active Directory and VMware snapshots
document Is a raw lun (RDM) faster than a VMDK on a VMFS? Does physical or virtual RDM mapping make a difference?
document Recommendations for template virtual machines
document What is CPU READY?
» More articles



RSS