Unable to Ping VM from Host ( Windows )

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Mohamed Ashik
Posts: 7
Joined: 27. Sep 2015, 05:14

Unable to Ping VM from Host ( Windows )

Post by Mohamed Ashik »

Hi


I have installed Linux 5 on Virtual box. I have selected " Bridged Adapter " Network type for the VM. I created this VM while i was at work and once upon creation, i tried pinging this VM from my Host machine ( Windows ). Its was successful.

But, later on when i moved to another site office, i tried opening this VM, tried to ping it from the Host machine again. But this time its not working. It was not able to ping the VM. it shows connection timeout.


But when next day, i tried to ping this VM from while i was connected to my office network, it worked again. When i again to move to another environment, the ping requested time out.


Can someone advise me on this. Help on this is much appreciated. Thanks.


Regards
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to Ping VM from Host ( Windows )

Post by Perryg »

Typically with a roaming PC you setup two virtual adapters. One set to NAT to allow the Internet and one set to host-only so the host and guest can communicate while off LAN. You can substitute Bridged for NAT if you need. See the networking section of the users manual.
Mohamed Ashik
Posts: 7
Joined: 27. Sep 2015, 05:14

Re: Unable to Ping VM from Host ( Windows )

Post by Mohamed Ashik »

Hi

thanks for the update. i ll try this out.
Mohamed Ashik
Posts: 7
Joined: 27. Sep 2015, 05:14

Re: Unable to Ping VM from Host ( Windows )

Post by Mohamed Ashik »

Perryg wrote:Typically with a roaming PC you setup two virtual adapters. One set to NAT to allow the Internet and one set to host-only so the host and guest can communicate while off LAN. You can substitute Bridged for NAT if you need. See the networking section of the users manual.



Hi


I tried substituting Bridged with NAT. But no result. Still Host and Guest could not communicate. Host cant ping guest. Any suggestions ?


Regards
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Unable to Ping VM from Host ( Windows )

Post by scottgus1 »

Did you try the first half of Perry's suggestion, to have two virtual NICs enabled in the guest, the other NIC set to host-only? You should always be able to ping between host and guest through the host-only interface. And NAT on the other interface should always allow the guest to get to the internet. NAT by itself will not allow pinging from the host, NAT just drills a private tunnel through the host to get to the web, basically.

Is the host connected to the internet via a wi-fi interface? Bridged sometimes doesn't work with wi-fi, due to limited wi-fi host drivers or limitations in the network router or access point. No way for Virtualbox to be able to fix those things unfortunately. You could try looking for updated wi-fi drivers for your host.
M.Ashik
Posts: 1
Joined: 14. Nov 2015, 10:57

Re: Unable to Ping VM from Host ( Windows )

Post by M.Ashik »

Hi


Thanks for the suggestions. I will retry once again with two Virtual NIC enabled. NAT and Host-Only.


Yes the host is connected to internet via Wifi Interface. The internet being accessed at "Work Place" and "Home" is provided by different Internet Service Providers.

Previously couple of months back, the "Work Place" and "Home" internet both were using the same ISP. Those days this issues were not there. I did not faced any issue.
But once at the work place, the moment ISP is changed to another service provider, im facing this issue with VirtualBox and VMware workstation as well.

Regards
Post Reply