Ubuntu's networking always stops working inside Virtualbox

1

1

Whenever I run Ubuntu inside VirtualBox, the networking works the first time I set it up, and then never works again. After a reboot, the network manager applet refuses to connect.

For some reason, the last time I got it working, I had set up a host-only and a bridged connection. I don't remember why, but neither is working anymore. What's a foolproof configuration that won't stop working a week from now?

enter image description here

enter image description here

enter image description here

enter image description here

endolith

Posted 2012-04-17T00:54:31.433

Reputation: 6 626

If you remove one of the network adapters from the Ubuntu VM, is NetworkManager able to connect successfully with the remaining one? – Steven Monday – 2012-04-17T03:43:12.663

@StevenMonday: Well, initially I only had one bridged, and that worked at first and then stopped working, same as this setup. – endolith – 2012-04-17T13:32:00.907

Answers

1

What are the names of nics given by dmesg? Do they match what are in /etc/network/interfaces?

Also, remove or disable the network manager and see if /etc/init.d/networking will now work. If not try dhclient bridgenic to see if you can get an ip. Network manager and networking service sometimes work in different ways and could cause issues.

johnshen64

Posted 2012-04-17T00:54:31.433

Reputation: 4 399