can't ping from mac host to windows guest in virtual box

13,620

Solution 1

I could solve this by following the steps below.

  1. Created a host-only adapter by going to setting of virtual machine as below

windows 7 virtual machine virtual box settings

  1. Check the first three decimal parts of windows 7 virtual machine ip address

    ex : It is 192.168.56 in my case

enter image description here

  1. Go to virtual box -> Preferences -> Network. Select the host-only Networks tab. click the edit button. Change the first three decimal parts of IPv4 address of Adapter tab as in windows 7 virtual machine ip address.

edit settings of host-only adapter

Now you should be able to ping guest windows 7 from host mac.

Solution 2

Check the network profile. In Windows 7 you have a firewall for each network profile.

  • Control Panel -> System and Security -> Windows Firewall
Share:
13,620

Related videos on Youtube

lakshman
Author by

lakshman

Updated on September 18, 2022

Comments

  • lakshman
    lakshman over 1 year

    I am trying to ping to the windows 7 guest in virtual machine from mac host. but I get below message

    ping: sendto: No route to host
    Request timeout for icmp_seq 5
    

    I set bridged-network in network setting and turned off firewalls in windows machine with no luck. I have installed yosemite in mac. Is there any reason for this?

    • Kenster
      Kenster about 9 years
      What IP addresses do the host and guest have? What address are you actually trying to ping?
  • bertieb
    bertieb almost 9 years
    Since the OP mentioned he turned off firewalls, and since there is a No route to host reported; this suggestion would perhaps be better provided as a comment.