Internet not working in guest using Bridged mode

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
macandroid
Posts: 27
Joined: 10. Nov 2018, 14:04

Internet not working in guest using Bridged mode

Post by macandroid »

I can access the VM from the host (or any devive in the same wifi) by SSH or http(s).

I checked the guest additions version:

Code: Select all

# modinfo vboxguest
filename:       /lib/modules/3.10.0-1160.45.1.el7.x86_64/misc/vboxguest.ko
version:        6.1.30 r148432
license:        GPL
description:    Oracle VM VirtualBox Guest Additions for Linux Module
author:         Oracle Corporation
retpoline:      Y
rhelversion:    7.9
srcversion:     6CE242DE8F5357F56B287FE
alias:          pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
depends:        
vermagic:       3.10.0-1160.45.1.el7.x86_64 SMP mod_unload modversions
#
But in the .vbox file I still (after stopping and starting VM) see this:

Code: Select all

      <GuestProperty name="/VirtualBox/GuestAdd/Version" value="6.0.14" timestamp="1638880861500249000" flags=""/>
      <GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="6.0.14" timestamp="1638880861500383000" flags=""/>
Another Linux (Ubuntu 20.04) guest has the same issue.

Host is macOS 10.17 Monterey, VB is 6.1.30.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Internet not working in guest using Bridged mode

Post by scottgus1 »

Guest Additions has no influence on making Bridged work. However, Bridged does not always work with Wi-Fi, see Virtualbox Networks: In Pictures: Bridged Adapter.

1. Let's look at the VM's 'recipe': Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)

2. Also, on the host's Terminal, please run this command and post the output as text:

vboxmanage list bridgedifs

3. In the VM's terminal, please run 'ip address' or 'ifconfig' and post the text output.

4. Finally, in the VM's terminal, please ping 8.8.8.8 and post the output.

5. Can you try using wired Ethernet?
macandroid
Posts: 27
Joined: 10. Nov 2018, 14:04

Re: Internet not working in guest using Bridged mode

Post by macandroid »

macandroid-no-internet.zip
(3.28 KiB) Downloaded 60 times
Here an answer to your question.
I could not connect to an Ethernet (not enough cable length).

Find attached the zip with the requested files.

Internet used to work until VB 6.1.28 under Big Sur, since I upgraded both to 6.1.30 and Monterey it did not work anymore.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Internet not working in guest using Bridged mode

Post by scottgus1 »

An OS upgrade means new Wi-Fi drivers, which may prevent Virtualbox Bridged from working with it.

You may have to try the other options in the tutorial.
macandroid
Posts: 27
Joined: 10. Nov 2018, 14:04

Re: Internet not working in guest using Bridged mode

Post by macandroid »

scottgus1 wrote:An OS upgrade means new Wi-Fi drivers, which may prevent Virtualbox Bridged from working with it.

You may have to try the other options in the tutorial.
I have tried Host Only on Adapter 1 and NAT on Adapter 2 which now works, but is a workaround.

When macOS has installed new wi-fi drivers which prevent working of Bridged, then this is a bug in Virualbox which should be resolved.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Internet not working in guest using Bridged mode

Post by scottgus1 »

macandroid wrote:this is a bug in Virualbox
Per my "Bridged Adapter" tutorial link above, this is not a bug in Virtualbox. Virtualbox has no control over the strictness of Wi-Fi standard implementation by the host OS drivers or Wi-Fi access point firmware.

Especially notice the "Technically Wifi cannot Bridge" part. If all drivers and access points did their jobs properly, Bridged would never work on Wi-Fi.
Post Reply