Unable to access VMs using host-only adapter
Posted: 15. Feb 2014, 21:54
My problem is simple: I am unable to connect to any of my VMs using the host-only adapter.
All pings from my MacOS host fail like this:
This definitely used to work. One of my VMs runs an Oracle database and I have been connecting to it from my host using sqlplus. Another one runs an application server and I have also been using it from my host. Somehow that all stopped working, but I can't pin the change to something I did: I have been upgrading VirtualBox as new versions and fixes came out. Maybe one of them caused that change ? I am on 4.3.6 r91406 now. I also upgraded MacOSX to 10.9.1 and maybe that caused the change ? I don't connect to VMs all that much, so I can't say when exactly I started having the problem.
I first thought that something like a firewall was blocking access in the VMs, but that is not the case: I can ping each VM from any of the others. Only pings from the host fail. The VMs have different OS's: XP, W7, Linux.
My host-only adapter is like this:
There seems to be something on the MacOS host that prevents connections from reaching VMs. A traceroute shows this:
192.168.0.254 is the gateway on my LAN and 82.236.10.254 is the external (public) IP address of my router. That seems to indicate a problem with routes. Indeed the route to the virtual gateway of the host only adapter is wrong:
Not sure how that came to be ...
All pings from my MacOS host fail like this:
Code: Select all
$ ping 192.168.56.101
PING 192.168.56.101 (192.168.56.101): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
^CI first thought that something like a firewall was blocking access in the VMs, but that is not the case: I can ping each VM from any of the others. Only pings from the host fail. The VMs have different OS's: XP, W7, Linux.
My host-only adapter is like this:
Code: Select all
$ vboxmanage list hostonlyifs
Name: vboxnet0
GUID: 786f6276-656e-4074-8000-0a0027000000
DHCP: Disabled
IPAddress: 192.168.56.1
NetworkMask: 255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 0a:00:27:00:00:00
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-vboxnet0Code: Select all
$ traceroute 192.168.56.101
traceroute to 192.168.56.101 (192.168.56.101), 64 hops max, 52 byte packets
1 192.168.0.254 (192.168.0.254) 4.483 ms 1.240 ms 1.150 ms
2 82.236.10.254 (82.236.10.254) 19.623 ms 20.419 ms 20.750 ms
3 * *^CCode: Select all
route get 192.168.56.1
route to: 192.168.56.1
destination: default
mask: default
gateway: 192.168.0.254
interface: en1
flags: <UP,GATEWAY,DONE,STATIC,PRCLONING>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 1500 0