Two VMs running with static IPs on host-only, one can't ping the host

Discussions about using Linux guests in VirtualBox.
Post Reply
cnc
Posts: 1
Joined: 18. Dec 2017, 17:41

Two VMs running with static IPs on host-only, one can't ping the host

Post by cnc »

After about a day of use, my VM configuration seems to die:

Code: Select all

root@bad-machine:~# ping 192.168.98.1
PING 192.168.98.1 (192.168.98.1) 56(84) bytes of data.
From 192.168.98.13 icmp_seq=1 Destination Host Unreachable

Code: Select all

root@good-machine:~# ping 192.168.98.1
PING 192.168.98.1 (192.168.98.1) 56(84) bytes of data.
64 bytes from 192.168.98.1: icmp_seq=1 ttl=64 time=7.01 ms
nictype for both is virtio, this is a host only network adapter at 192.168.98.1, with guests at 192.168.98.11 and 192.168.98.13.

i have some VMs that i've been diagnosing after one of them failed (cannot ping the other machines / host on the host only adapter), but I can't seem to find any difference in routes / arp table / ...

I need to find the base cause without just restarting the guest network, because this is affecting me repeatedly.

Here are more (working / non working machine) examples:

Code: Select all

root@good-machine:~# ip route list
default via 10.0.2.2 dev enp0s3 
10.0.2.0/24 dev enp0s3  proto kernel  scope link  src 10.0.2.15 
10.32.0.0/24 dev cni0  proto kernel  scope link  src 10.32.0.1 
10.32.1.0/24 via 10.32.1.0 dev flannel.1 onlink 
10.32.2.0/24 via 10.32.2.0 dev flannel.1 onlink 
10.128.0.0/24 dev enp0s8  proto kernel  scope link  src 10.128.0.1 
172.17.0.0/16 dev docker0  proto kernel  scope link  src 172.17.0.1 linkdown 
192.168.98.0/24 dev enp0s8  proto kernel  scope link  src 192.168.98.11 

Code: Select all

root@bad-machine:~# ip route list
default via 10.0.2.2 dev enp0s3 
10.0.2.0/24 dev enp0s3  proto kernel  scope link  src 10.0.2.15 
10.32.0.0/24 via 10.32.0.0 dev flannel.1 onlink 
10.32.1.0/24 dev cni0  proto kernel  scope link  src 10.32.1.1 
10.32.2.0/24 via 10.32.2.0 dev flannel.1 onlink 
10.128.0.0/24 dev enp0s8  proto kernel  scope link  src 10.128.0.1 
172.17.0.0/16 dev docker0  proto kernel  scope link  src 172.17.0.1 linkdown 
192.168.98.0/24 dev enp0s8  proto kernel  scope link  src 192.168.98.13 

Code: Select all

root@good-machine:~# ifconfig enp0s8
enp0s8    Link encap:Ethernet  HWaddr 08:00:27:05:54:46  
          inet addr:192.168.98.11  Bcast:192.168.98.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe05:5446/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:34461954 errors:0 dropped:862 overruns:0 frame:864
          TX packets:41175528 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7455722396 (7.4 GB)  TX bytes:9499873862 (9.4 GB)

Code: Select all

root@bad-machine:~# ifconfig enp0s8
enp0s8    Link encap:Ethernet  HWaddr 08:00:27:cb:57:dd  
          inet addr:192.168.98.13  Bcast:192.168.98.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fecb:57dd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9000206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:372945 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:753919110 (753.9 MB)  TX bytes:226178668 (226.1 MB)

Post Reply