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

Related posts:

Share

About number.0