Sunday, September 14, 2008

VirtualBox problems

After changing network adapter and MAC address in the settings for the virtual machine, networking stopped working in the guest (Ubuntu server 8.0.4.1). "Failed to bring up eth0"
Turns out each time I changed the network adapter or MAC address a new entry was added in the Ubuntu guest systems /etc/udev/rules.d/70-persistent-net.rules as a new interface; like eth0, then eth1, eth2 and so on.
After deleting the obsolete entries and changing the latest one with the correct macaddress to eth0 and restarted it worked again.

3 comments:

joshuajonah said...

Thanks, this saved me some hair.

MiNi said...

Phew.. Just what I needed. Thanks.

Edwin Bradford said...

This was killing me too. I suddenly lost all internet in my virtual machine, Ubuntu Server 9.10. I then messed it up by deleting the eth1 and eth2 entries in /etc/udev/rules.d/70-persistent-net.rules.

Anyway I had a full recovery by running /lib/udev/write_net_rules which fixed everything, no need to edit files. Incidentally I'm a complete noob with no idea what I'm doing.