Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

We have Virtual Machines operating within the KVM environment. We setup one as a dev server running Apache etc., and the other as a Windows development environment.

The two environments are setup and running fine. However, they cannot ping each other. I am wondering if there is a clear solution to this.

This is what is happening.

From Host:

  Cannot ping either of 2 VM's (one `Linux`, one `Windows`)

From Either of the VM's:

  Cannot ping host
  Cannot ping each other

From other network machines (for instance my laptop from within my company network)

  Successfully ping host at 192.168.0.64
  Successfully ping VM1 (Linux) 192.168.0.43
  Successfully ping VM2 (Windows) 192.168.0.84
share|improve this question
2  
Do you have more information of the network configuration of your virtual machines? Are you entirely sure that when your other network machines ping your VMs, they're not pinging some other random machine on the network? (e.g. can you actually hit the apache server with a browser?). –  GregHNZ Oct 23 '13 at 5:57
    
I think it might be your bridge. The kernel's iptables will block your machine from talking to itself unless you: echo "1" > /proc/sys/net/ipv4/ip_forward ; Possibly, anyway. –  mikeserv Mar 14 at 4:18
    
What command do you use to boot the VMs? –  Jobin Apr 14 at 18:33
add comment

1 Answer

Generally the connection type should be NAT as far as I know. So in the settings from mouse right click on the particular VM you can change the network type.

PS: hiding a computer from ping in local area network specifically I think not possible. But its worth a look.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.