Cannot ping virtual machine

Discussions related to using VirtualBox on Linux hosts.

Cannot ping virtual machine

Postby sanximb » 16. Mar 2009, 07:52

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?
sanximb
 
Posts: 3
Joined: 16. Mar 2009, 07:49

Re: Cannot ping virtual machine

Postby x-Na » 16. Mar 2009, 11:09

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.
x-Na
 
Posts: 19
Joined: 12. Mar 2009, 12:12

Re: Cannot ping virtual machine

Postby sanximb » 17. Mar 2009, 01:25

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?
sanximb
 
Posts: 3
Joined: 16. Mar 2009, 07:49

Re: Cannot ping virtual machine

Postby vbox4me2 » 17. Mar 2009, 01:38

Manually or let it get one via DHCP from your router or server.
vbox4me2
Volunteer
 
Posts: 5222
Joined: 21. Nov 2008, 20:27
Location: Rotterdam

Re: Cannot ping virtual machine

Postby sanximb » 17. Mar 2009, 02:40

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?
sanximb
 
Posts: 3
Joined: 16. Mar 2009, 07:49

Re: Cannot ping virtual machine

Postby vbox4me2 » 17. Mar 2009, 12:24

What are the ip settings for Host and Guest? Firewall disabled on VM?
vbox4me2
Volunteer
 
Posts: 5222
Joined: 21. Nov 2008, 20:27
Location: Rotterdam

Re: Cannot ping virtual machine

Postby jackie12 » 5. Sep 2012, 14:18

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
jackie12
 
Posts: 1
Joined: 5. Sep 2012, 14:14


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Google [Bot] and 35 guests