Pinging host from virtual machine
Pinging host from virtual machine
I have Windows 7 running as the host OS.I just installed my copy of Virtual Box and run Kali Linux as the virtual OS.I disconnected my host from the wireless connection at home,and it got connected to the Virtual Box Host Only Network(with IP 192.168.56.1).I could ping the host from the virtual machine(with IP 10.0.2.15),but was unsuccessful to do so vice versa.To solve this problem,I tried to assign the virtual machine a static IP of 192.168.56.8 in the same network as the host OS.But now I was unable to even ping the host from the virtual machine.I tried to change the network type in virtual box from NAT to bridged,then to host only and internal network type but to no avail.I still cannot ping any machine from the other.How to solve the problem?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Pinging host from virtual machine
You can't ping a NAT VM, that's inherent in how NAT works - it ignores all unsolicited protocol messages. Also, Win7 by default doesn't respond to pings, but I assume you already took care of that.