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

link|improve this question

43% accept rate
feedback

1 Answer

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.