Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-11-2019, 12:40 PM   #1
LQ Newbie
Registered: May 2018
Posts: 6

Rep: Reputation: Disabled
KVM: host cannot ping VMs

Hello everyone,

In my home lab enviorment I set up a basic KVM on my computer and then I installed 2 VMs.

These VMs have 1 nic each one, all configured as bridged.

I can ping my home router from my host and my VMs.

VMs can ping each other.

Host cannot ping VMs.

I need to reach my VMs from my host.

What do I need to do in order to allow comunication among VMs and host?

Thanks to everyone trying to help me
Old 08-11-2019, 01:05 PM   #2
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 473

Rep: Reputation: 91

You are not giving enough detail on your configuration.

So I assume you just kept the default on KVM.
In such a case, your host also has an IP on the bridge.
From the VMs you should reach the host on that IP, not on the one known by your home router.

If it does not help, it will be good to give the results of commands
ip addr show
ip route show
on your host and VMs.
Old 08-11-2019, 10:52 PM   #3
Senior Member
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,425

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
I would check the routing on the host, and to which bridge the VMs are connected. Can the host connect to the bridge? Is the bridge in the routing table?

Commands I would use:
$ virsh domiflist VM
$ ip route
$ ip address show dev BRIDGE
I would also have a look at the TAP devices to which the VMs are connected.

Another factor: I think IP forwarding must be enabled on the host. Is it?

Last edited by berndbausch; 08-11-2019 at 10:54 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Physical host of KVM VMs with bonded interface - bridging necessary? slimjim Linux - Virtualization and Cloud 1 06-13-2012 03:08 PM
KVM on Redhat 5.7: KVM can ping outside network, outside network can't ping KVM svandyk Linux - Networking 1 09-23-2011 06:45 AM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
[Tcptraceroute/Traceroute/Ping] Windows VMs & Linux VMs BiFo Linux - Networking 0 08-24-2010 02:07 PM
LXer: Using Xen With LVM-Based VMs Instead Of Image-Based VMs (Debian Etch) LXer Syndicated Linux News 0 01-14-2009 08:20 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration