Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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