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: 4374
Votes: 5
Comments: 2
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.
Showing: 1-2 of 2  
Comments

22 Aug, 2011   |   Mccade
Right on-this helped me sort thgnis right out.


15 Jun, 2011   |  raphaelk
Nice information !!!


Add comment

Others in this Category
document How to update the uEFI BIOS from the Service Console of ESX4
document "This installation package is not supported by this processor type." when installing vCenter 4.1
document I need more performance out of my VMware environment
document What is the difference between ESX 3.5 and 3i? Foundation, Standard and Enterprise?
document Upgrading from ESX 4.1 to ESXi 5 fails: The specified network interface card is not plugged in. Installation cannot continue as requested.
document How can I convert an existing computer into a virtual one? ..or a virtual machine into a physical one?
document "Invalid DSN" when trying to install 64 bit vCenter Server
document Where can I find a vSphere Client for Linux / Mac OSX?
document Call "HostDatastoreSystem.CreateNasDatastore" for object "ha-datastoresystem" on ESX "esxhost" failed.
document How to install Virtual Infrastructure Client on a 64bit OS?
» More articles



RSS