Macos – VirtualBox Bridged Adapter DHCP works, but no network traffic

bridgeddhcpmacosvirtual machinevirtualbox

I'm running VirtualBox on macOS where I host a Windows 10 VM guest.

I've been able to establish comms between the guest and the internet through a NAT connection.

However, I would like the VM to be registered on the local network, so I'm attempting to set the following Bridged Adapter up:

VirtualBox Bridge Adapter Configuration

The guest is picked up by the DHCP server. Here you can see the IP being assigned dynamically:

VirtualBox Bridge Adapter DHCP

When I do a tracert, the guest was able to resolve the google.com IP, but the ICMP messages are not getting through.

VirtualBox Bridge Adapter Traceroute

I checked all the firewalls and everything's been turned off. I am actually able to get through to the host machine.

VirtualBox Bridge Adapter ping host

Any idea how I would be able to get traffic through, would be appreciated.

Update 1:

I fired up Wireshark on the host to have a look at the packets originating from the guest. I tried a few telnet sessions and also navigating to a website, but it assumed all packets were lost.

I'm not familiar with the NBNS or LLMAR protocols though, but it does not appear as if any packets made it beyond the host.

I then pinged the host again, and one can clearly see the ICMP's there.

VirtualBox Bridged Adapter Network Traffic Lost

On the guest side, Wireshark picked up a lot of chatter. Not really sure what to make of it.

Best Answer

VBox's implementation of NAT only supports TCP & UDP among all transport layer protocols[1], so VPN via PPTP won't work. As support for bridged networking with wireless interfaces is also limited[2], you may consider the followings alternative.

Host-only network with Internet can be achieved with IP routing by host. I've done that before with Windows/Ubuntu host & guests. It should work for Macintosh too.

In OSX host(192.168.8.109), enable ip routing by sudo sysctl -w net.inet.ip.forwarding=1

In Win10 guest with host-only adapter(192.168.56.10), set default gateway to OSX(192.168.56.1), set DNS to router.

In router(192.168.8.1), add static route via web interface or SSH route add -net 192.168.56.0/24 gw 192.168.8.109

Related Question