2

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

1 Answer 1

3

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.

1
  • Wow! So many problems with bridged option. NAT works right away! It took literally less than a second to establish client connection. Thanks!
    – GTodorov
    Aug 27, 2019 at 19:50

You must log in to answer this question.

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