Virtual Box oracle linux unable to communicate to host windows 10 in both ways

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Jaydeep
Posts: 2
Joined: 19. Jun 2018, 10:50

Virtual Box oracle linux unable to communicate to host windows 10 in both ways

Post by Jaydeep »

Hello,
I've installed VirtualBox 5.2.2 on Windows 10 machine. I'm using Oracle Linux 6.4 as Guest OS.
After starting the VM, I'm able to ping host from Guest OS. I'm using NAT adaptor in network configuration.
[oracle@ODIGettingStarted ~]$ ping 9.195.230.201
PING 9.195.230.201 (9.195.230.201) 56(84) bytes of data.
64 bytes from 9.195.230.201: icmp_seq=1 ttl=127 time=1.23 ms
64 bytes from 9.195.230.201: icmp_seq=2 ttl=127 time=0.954 ms
64 bytes from 9.195.230.201: icmp_seq=3 ttl=127 time=0.612 ms
64 bytes from 9.195.230.201: icmp_seq=4 ttl=127 time=0.582 ms
64 bytes from 9.195.230.201: icmp_seq=5 ttl=127 time=0.596 ms
64 bytes from 9.195.230.201: icmp_seq=6 ttl=127 time=0.580 ms
But from Host to guest I'm unable to ping. Also, from Guest OS, I'm unable to access internet.
C:\Users\JAYDEEPSARKAR>ping 10.0.2.15

Pinging 10.0.2.15 with 32 bytes of data:
Reply from 9.195.230.3: Destination net unreachable.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 10.0.2.15:
    Packets: Sent = 4, Received = 1, Lost = 3 (75% loss),
I've googled and read through many forums

Please help me to resolve this issue. I've almost lost 40 hours on this missed the delivery timeline for a PoC (Proof of concept) work.

Let me know what all data points you need.

Thanks
Jaydeep
Last edited by socratis on 21. Jun 2018, 02:08, edited 1 time in total.
Reason: Enclosed the information in [pre] tag for better readability
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtual Box oracle linux unable to communicate to host windows 10 in both ways

Post by socratis »

You cannot ping the guest from the host if you're using NAT.
But the part that you can't access the internet with NAT, that's indeed an issue. What's the output of the following two commands from your guest?
  • 
    ipconfig
    netstat -nr
    
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Jaydeep
Posts: 2
Joined: 19. Jun 2018, 10:50

Re: Virtual Box oracle linux unable to communicate to host windows 10 in both ways

Post by Jaydeep »

Thanks Socratis for your response. The following are the output.

Code: Select all

[oracle@ODIGettingStarted ~]$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:94:7C:4B  
          inet6 addr: fe80::a00:27ff:fe94:7c4b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:642 errors:0 dropped:0 overruns:0 frame:0
          TX packets:417 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:634475 (619.6 KiB)  TX bytes:41931 (40.9 KiB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:52:A9:4D  
          inet addr:192.168.56.101  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe52:a94d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1010 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:69846 (68.2 KiB)  TX bytes:4398 (4.2 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6643 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6643 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:499479 (487.7 KiB)  TX bytes:499479 (487.7 KiB)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:C4:DF:5A  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Code: Select all

[oracle@ODIGettingStarted ~]$ netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG        0 0          0 eth0
10.0.2.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.56.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.122.0   0.0.0.0         255.255.255.0   U         0 0          0 virbr0
[oracle@ODIGettingStarted ~]$
Last edited by socratis on 26. Jun 2018, 09:44, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtual Box oracle linux unable to communicate to host windows 10 in both ways

Post by socratis »

That's... interesting. Your 'eth0' doesn't seem to get an IP, however the routing table contains the 10.0.2.2 gateway, which is rather weird; where did that come from?

I also see that you have 'eth1' connected to what seems to be a HostOnly network, but it doesn't have a proper gateway. Did you try to setup the IPs in the guest manually? I think you might have, so the question is did you try it with DHCP enabled on both interfaces? Can you?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply