Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Windows 7 host and Ubuntu guest in VirtualBox.

Ubuntu cannot connect to the Internet when my laptop is connected directly via wire to the modem, but when I connect via wireless to the router the VirtualBox guest can connect. The problem therefore only exists when the host is connected via Ethernet cable. Is there any solution to this?

When I'm working with wireless it works but with cable it doesn't. Here are some screenshots showing my config:

enter image description here

enter image description here

enter image description here

share|improve this question
up vote 2 down vote accepted

Try changing the "Attached to" field in VBox to "NAT". If you use "Bridged" you'd need to specify the 2 ends of the bridge every time, and it would therefore change when your laptop's network adapter changes.

If you want to keep using a briged network, just provide one more adapter binding: i.e.: have Adapter 1 bridge your virtual machine to the Ethernet card and Adapter 2 bridge it to the wireless one.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .