Windows – Linux – Mac OSX Guides

SIOCSIFADDR: No such device eth0 in Ubuntu & VirtualBox

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!!!

Tagged with:     , , , ,

Related Articles

Loading Facebook Comments ...


  1. Nils Luxton

    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!

  2. Eric Ross

    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.

  3. stef

    Thanks ! it works.

  4. Le guen paul

    Merci beaucoup tu me sauve la vie! Va savoir pourquoi il fallait supprimer ce fichier

  5. Benn

    Thankyou .. great share This trick also working in Back track also

  6. Jean Ventura

    Thank you very mucho. Worked like a charm.

  7. Dozer009

    Cool It’s work! thank you!

  8. Pavi

    great..great…great. thanks a lot bro..!!!

  9. haider

    great , i can’t thank you enough for this super helpful information.

Post your comments

Your email address will not be published. Required fields are marked *