I copied an 9.04 Ubuntu vmware appliance from another box to my Mac box and create a new VirtualBox using the vmware Ubuntu hard disk, everything is booted up find until I tried to connect to the internet: There is no network interface available except the “lo interface”. And if I tried to bring up the eth0 interface, I would just get the error
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0.
Googling around, I’ve found out the problem, which can be solved as follow:
- Look into your /etc/udev/rules.d/ and find the file with suffix “-persistent-net.rules”, on my Ubuntu 9.04 it’s “70-persistent-net.rules” and delete this file
- Reboot the box and try to see in come up with the command “ifconfig”
On older box, I’ve seen some guys did this will do the trick
- Run ifconfig -a and then you will see ethX come up for some reason which had a MAC address in it.
- Go to /etc/iftab and changed the MAC address on the eth0 to the MAC that was attached to ethX in the ifconfig and reboot.
- Let’s see if it works!!!
Brilliant – removing the file did the trick for me in Ubuntu Server 11.04. I assume by deleting the file it just regenerates it with the correct info?
Anyway, many thanks for the tip!
Fixed! Turnkey Linux confconsole was saying the network was not configured and manual network entries weren’t accepted until this local rule was removed. Check this if cloning VM’s.
Thanks ! it works.
Merci beaucoup tu me sauve la vie! Va savoir pourquoi il fallait supprimer ce fichier
Thankyou .. great share This trick also working in Back track also