Host cannot access guest via host-only adapter with Big Sur 11.6 and VirtualBox 6.1.28

Discussions related to using VirtualBox on Mac OS X hosts.

Host cannot access guest via host-only adapter with Big Sur 11.6 and VirtualBox 6.1.28

Postby jklaiho » 21. Oct 2021, 14:51

Running VirtualBox 6.1.28 r147628 on macOS Big Sur 11.6.

I have a large number of VMs created using Vagrant. Everything worked fine on Big Sur 11.5, but after the upgrade to 11.6, I can no longer access the VM with the IP of the secondary host-only network adapter (created using the 'private_network' type in Vagrant, with a static IP address) in any way: it won't respond to pings, and no network services (e.g. nginx) respond from that IP.

I can still SSH to the running VM through 127.0.0.1 and the SSH port mapping (host 2222 -> guest 22) created by Vagrant.

Here's the output of ip addr inside the VM:

Code: Select all   Expand viewCollapse view
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:73:60:cf brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0
       valid_lft 81203sec preferred_lft 81203sec
    inet6 fe80::a00:27ff:fe73:60cf/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:92:3a:ce brd ff:ff:ff:ff:ff:ff
    inet 192.168.201.20/24 brd 192.168.201.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe92:3ace/64 scope link
       valid_lft forever preferred_lft forever


* eth0 is Adapter 1 in Settings -> Network, the NAT adapter that (I believe) Vagrant creates by default.
* eth1 is Adapter 2, a Host-only Adapter on vboxnet25. The IP address 192.168.201.20 is set in the Vagrantfile.
* Both have Cable Connected checked.

Nothing about the VirtualBox or Vagrant configuration has changed after the 11.6 upgrade. I tried uninstalling and reinstalling VirtualBox and the Extension pack, rebooting multiple times, as well as destroying and recreating the VM.

Here's the output of kextstat, showing that the VirtualBox kexts seem to be loaded just fine:

Code: Select all   Expand viewCollapse view
Index Refs Address            Size       Wired      Name (Version) UUID <Linked Against>
  199    3 0xffffff7f9cc6d000 0xb3000    0xb3000    org.virtualbox.kext.VBoxDrv (6.1.28) 2322A451-8E64-3434-9126-8297421A36D4 <8 6 5 3 1>
  201    0 0xffffff7f9cd4c000 0x5000     0x5000     org.virtualbox.kext.VBoxUSB (6.1.28) F38BE5D7-048C-3EC2-82FD-0C02F9E9CCF5 <200 199 62 8 6 5 3 1>
  202    0 0xffffff7f9cd47000 0x4000     0x4000     org.virtualbox.kext.VBoxNetFlt (6.1.28) 5D62FC0B-F37D-3D34-BF4A-C564FFFFD27D <199 8 6 5 3 1>
  203    0 0xffffff7f9cd41000 0x2000     0x2000     org.virtualbox.kext.VBoxNetAdp (6.1.28) 090DCE04-5E98-34F0-A2C0-06669D0E498C <199 6 5 1>


The output of ifconfig I'm not pasting here, but all the vboxnet<0-28> adapters are listed.

Nothing in the output of the vagrant command has changed. It's not indicating any kind of problem conditions, and both interfaces do receive their IP addresses, so I'm believing this is some kind of issue between VirtualBox and Big Sur 11.6.

If I can provide some other types of logs or debugging information, please advise how to get them, and I'll post them.
Last edited by jklaiho on 25. Oct 2021, 13:13, edited 1 time in total.
jklaiho
 
Posts: 3
Joined: 21. Oct 2021, 14:33

Re: Host cannot access guest via host-only adapter after upgrade to Big Sur 11.6

Postby ArnaudDC » 25. Oct 2021, 09:31

I'm experiencing the same issue with host-only-networks (without using Vagrant) on Catalina 10.15.7.

I had to downgrade to 6.1.26
ArnaudDC
 
Posts: 2
Joined: 25. Oct 2021, 09:16

Re: Host cannot access guest via host-only adapter after upgrade to Big Sur 11.6

Postby jklaiho » 25. Oct 2021, 13:11

ArnaudDC wrote:I'm experiencing the same issue with host-only-networks (without using Vagrant) on Catalina 10.15.7.

I had to downgrade to 6.1.26


Thanks, this solved my problem too. There might be something strange going on here, though: I'm certain that the problems started with the existing install of 6.1.22 after I'd upgraded to Big Sur 11.6. After that is when I updated to 6.1.28 to see if it would help – it wouldn't.

But now, after a full uninstall of 6.1.28 and installation of 6.1.26, everything is working once again.
jklaiho
 
Posts: 3
Joined: 21. Oct 2021, 14:33

Re: Host cannot access guest via host-only adapter with Big Sur 11.6 and VirtualBox 6.1.28

Postby jklaiho » 25. Oct 2021, 14:03

A coworker of mine, already running macOS 11.6, just upgraded to 6.1.28, and he could no longer ping his host-only address either. Had him downgrade to 6.1.26 also, and it began working again.

For anyone who encounters this, here's my downgrade process:

1. Use the Uninstall tool in the 6.1.28 DMG
2. Reboot (just for safety since we're dealing with kernel extensions)
3. Download and install 6.1.26.
4. Reboot again after the kernel extension installation.
5. Download https://download.virtualbox.org/virtual ... ox-extpack and double-click it (VirtualBox should open and offer to install them; if it doesn't, open VirtualBox before double-clicking it)

Pinging the host-only interface address from the Mac side should now work.
jklaiho
 
Posts: 3
Joined: 21. Oct 2021, 14:33

Re: Host cannot access guest via host-only adapter with Big Sur 11.6 and VirtualBox 6.1.28

Postby gordonplay » 26. Oct 2021, 19:17

I have the same issue and got the message after update to Monterey 12.0.1:

Legacy System Extension

Existing software on your system loaded a system extension signed by “Oracle America, Inc.” which will be incompatible with a future version of macOS. Contact the developer for support.

https://support.apple.com/en-us/HT210999
gordonplay
 
Posts: 5
Joined: 26. Jun 2019, 12:52

Re: Host cannot access guest via host-only adapter with Big Sur 11.6 and VirtualBox 6.1.28

Postby challengeursli » 26. Oct 2021, 19:37

No need to downgrade, instead please read:
viewtopic.php?f=7&t=104218#p507770

This is a breaking change in 6.1.28 and can be fixed by adding the mentioned /etc/vbox/networks.conf.
challengeursli
 
Posts: 17
Joined: 21. Oct 2021, 14:52


Re: Host cannot access guest via host-only adapter with Big Sur 11.6 and VirtualBox 6.1.28

Postby ArnaudDC » 28. Oct 2021, 15:26

Thank you, 6.1.28 works fine now.
ArnaudDC
 
Posts: 2
Joined: 25. Oct 2021, 09:16

Re: Host cannot access guest via host-only adapter with Big Sur 11.6 and VirtualBox 6.1.28

Postby Faioli » 30. Nov 2021, 23:32

In my Mac Monterey and VBox 6.1.30 i followed this steps

put the following lines into /etc/vbox/networks.conf:

Code: Select all   Expand viewCollapse view
* 0.0.0.0/0 ::/0


But don't work

I reach the ip of the vbox DHCP server
Code: Select all   Expand viewCollapse view
$ping -c3 192.168.56.100
PING 192.168.56.100 (192.168.56.100): 56 data bytes
64 bytes from 192.168.56.100: icmp_seq=0 ttl=255 time=0.209 ms
64 bytes from 192.168.56.100: icmp_seq=1 ttl=255 time=0.207 ms
64 bytes from 192.168.56.100: icmp_seq=2 ttl=255 time=0.194 ms


And i reach the ip guest
Code: Select all   Expand viewCollapse view
$ ping -c3 192.168.56.101
PING 192.168.56.101 (192.168.56.101): 56 data bytes
64 bytes from 192.168.56.101: icmp_seq=0 ttl=128 time=0.492 ms
64 bytes from 192.168.56.101: icmp_seq=1 ttl=128 time=0.436 ms
64 bytes from 192.168.56.101: icmp_seq=2 ttl=128 time=0.428 ms


Everything works without problems now! ...\o/
Faioli
 
Posts: 1
Joined: 30. Nov 2021, 23:06
Location: Brasil
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: Windows, *BSD, *Linux


Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 14 guests