Page 1 of 1

Can Bridged Adapter Networking mode work under WIFI on Virtual Box 6.1.24 on Win10

Posted: 13. Apr 2022, 08:25
by Shawn9977
Hello All

Can Bridged Adapter Networking mode work under WIFI on Virtual Box 6.1.24 on Win10

my environment:
Host OS is win10
Guest VM OS is Ubuntu 20.04
VirtualBox is 6,1,24 version
when I choose Bridged Adapter mode, there is no IP address after I input ip addr show command on the terminal on Ubuntu20.04, so does not have the internet on Ubuntu.

Can someone guide me step by step on how to complete Bridged Adapter mode to access the internet under WIFI ?



Thanks

Re: Can Bridged Adapter Networking mode work under WIFI on Virtual Box 6.1.24 on Win10

Posted: 13. Apr 2022, 09:45
by mpack
The VirtualBox version doesn't really matter for this question. Bridged Mode essentially inserts a soft network switch at the host NIC so that host and guest can share access to the underlying Ethernet card. The same feature may or may not work with WiFi cards depending on how the WiFi drivers are written. WiFi adapters don't need switches so technically the technology is incompatible, though some work anyway.

So there is no "step by step" that guarantees to get switch mode working with WiFi. If you have WiFi then there's a good chance it will not work. If possible use wired instead, e.g. use powerline adapters to create a wired path to your laptop bridge or whatever your PC is.

Re: Can Bridged Adapter Networking mode work under WIFI on Virtual Box 6.1.24 on Win10

Posted: 14. Apr 2022, 03:31
by Shawn9977
Currently, most laptops do not have cable ports for the internet, they only have wifi access to the internet. my laptop can not connect to a wired cable to the internet.

so no method for guest VM to work in bridged adapter mode to access the internet with WIFI?

Re: Can Bridged Adapter Networking mode work under WIFI on Virtual Box 6.1.24 on Win10

Posted: 14. Apr 2022, 10:12
by mpack
Shawn9977 wrote:Currently, most laptops do not have cable ports for the internet, they only have wifi access to the internet. my laptop can not connect to a wired cable to the internet.
I don't use laptops myself, but it's my understanding that most have provision for a docking station that can be used in static situations, and that docking station will typically have mains power, USB ports, monitor ports - and at least one Ethernet port.

Also, USB/Ethernet adapters exist.
Shawn9977 wrote:so no method for guest VM to work in bridged adapter mode to access the internet with WIFI?
What would you suggest? We canna change the laws of physics - nor the capabilities of the WiFi adapters that you chose.

Re: Can Bridged Adapter Networking mode work under WIFI on Virtual Box 6.1.24 on Win10

Posted: 15. Apr 2022, 19:31
by scottgus1
Shawn9977 wrote:no method for guest VM to work in bridged adapter mode to access the internet with WIFI?
There is one possibility: try a correctly-set-up static IP address in the VM's OS on the adapter connecting through Bridged. Web-search how to set a correct static IP address in Ubuntu.

Please note that I have anecdotally face situations where the Linux VM OS did not respond to a new network setup, so you may have to shut down and restart the VM to fully test the setup after setting the static IP address.

If you try this, please report back your result. If the idea fails, please provide a "ipconfig /all" from Windows and "ip address" or "ifconfig" from Ubuntu.