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

Notices


Reply
  Search this Thread
Old 08-11-2019, 12:40 PM   #1
NerdOne
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
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 473

Rep: Reputation: 91
Hi,

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
Code:
ip addr show
ip route show
on your host and VMs.
 
Old 08-11-2019, 10:52 PM   #3
berndbausch
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:
Code:
$ virsh domiflist VM
$ ip route
$ ip address show dev BRIDGE
$ ping IP-ADDRESS-OF-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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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