Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
  Successfully ping VM1 (Linux)
  Successfully ping VM2 (Windows)
share|improve this question
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 '14 at 4:18
What command do you use to boot the VMs? – i08in Apr 14 '14 at 18:33
Do you have other machines in the same network (which does not reside in the same host)? Are these machines able to ping those machines? – Sreeraj Nov 21 '14 at 6:42
Do you use a macvtap (wiki.libvirt.org/page/…) interface for the guest? – nkms Aug 29 '15 at 5:59

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

Your Answer


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.