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: 2276
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 Recommendations for template virtual machines
document I have 64bit CPU but I can't boot/install 64bit guests?
document I can't find VMware documentation
document Recommended performance tuning options for Linux guests
document I would like to play 3D games in a virtual machine
document How can I convert an existing computer into a virtual one? ..or a virtual machine into a physical one?
document I'm trying to install VMware Tools on Linux, but nothing happens
document Setting up samba between host and guest
document I have a Linux host and can't bridge connections via a wireless NIC
document I need more performance out of my VMware environment
» More articles



RSS