Page 1 of 1

Cannot ping virtual machine

Posted: 16. Mar 2009, 07:52
by sanximb
I have set up a Windows XP virtual machine and found its IP address with ipconfig in cmd.exe. When I try to ping the address in the Linux terminal it cannot find anything, though. Does anyone know how to find my VM?

Re: Cannot ping virtual machine

Posted: 16. Mar 2009, 11:09
by x-Na
sanximb wrote:I have set up a Windows XP virtual machine and found its IP address with ipconfig in cmd.exe. When I try to ping the address in the Linux terminal it cannot find anything, though. Does anyone know how to find my VM?

Is your guest attached to Host Interface in VirtualBox network configuration? VirtualBox network configuration defaults to NAT and when using NAT your guest OS will have an IP from different network (from 10.*.*.* address space), which probly isn't what you're using on your host.

If you attach your guest to host interface and assing an IP belonging to same network as your host, you'll be able to ping your guest.

Re: Cannot ping virtual machine

Posted: 17. Mar 2009, 01:25
by sanximb
Great, I set it to a host interface and its IP address is 0.0.0.0. How do I assign it a unique address?

Re: Cannot ping virtual machine

Posted: 17. Mar 2009, 01:38
by vbox4me2
Manually or let it get one via DHCP from your router or server.

Re: Cannot ping virtual machine

Posted: 17. Mar 2009, 02:40
by sanximb
I have manually set my IP to 192.168.1.(etc) and kept the subnet mask the same but I still cannot ping it. Does it have to do with Windows SP3?

Re: Cannot ping virtual machine

Posted: 17. Mar 2009, 12:24
by vbox4me2
What are the ip settings for Host and Guest? Firewall disabled on VM?

Re: Cannot ping virtual machine

Posted: 5. Sep 2012, 14:18
by jackie12
if you want to ping two machines inside virtual box then keep them in host only mode
got to VB's settings-> network-> host only -> ok