LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 12-27-2023, 04:13 PM   #1
Bazim
LQ Newbie
 
Registered: Dec 2023
Posts: 1

Rep: Reputation: 0
Cannot ping KVM machine from the host machine and vice-versa


Hello, I created a KVM Ubuntu Sever machine on a Ubuntu Server host machine.

Host is 192.168.0.110
KVM is 192.168.0.237
Home Assistant is 192.168.0.87 (also running on that host machine as KVM).

This is network setting via Cockpit Machines from the host machine:
Code:
Type: Direct attachment
Source: enp6s0
Model: virtio
In the KVM machine I set a bridge in /etc/netplan/ like this:
Code:
network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0:
      dhcp4: false
      dhcp6: false
  bridges:
    br0:
      dhcp4: true
      dhcp6: false
      macaddress: "52:54:00:ae:98:01"
      interfaces: [ enp1s0 ]
This is command ip a
Code:
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br0 state UP group default qlen 1000
    link/ether 52:54:00:ae:98:01 brd ff:ff:ff:ff:ff:ff
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 52:54:00:ae:98:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.237/24 metric 100 brd 192.168.0.255 scope global dynamic br0
       valid_lft 86397sec preferred_lft 86397sec
    inet6 fd9d:209b:8334:730:5054:ff:feae:9801/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 1799sec preferred_lft 1799sec
    inet6 fe80::5054:ff:feae:9801/64 scope link
       valid_lft forever preferred_lft forever
But I cannot ping from the host machine to KVM machine and vice-versa. Can you help me with that please?
 
Old 04-19-2024, 10:36 PM   #2
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
When you say you created a KVM Ubuntu Server, does it mean another hypervisor inside the host machine, so nested? Or, did you mean it's just another plain vm similar to Home Assistant? Were you using libvirt to spawn them? Libvirt's default network and its interface virbr0 is called NAT-mode. It creates firewall rules to match that.

I noticed that your IP address space is 192.168.0.0/24 in contrast to default 192.168.122.0/24 (not that there is anything wrong with that). I just wanted to make sure that it's not an issue of mismatched address space.

Please post the output of host's
Code:
ip -4 addr
as well. Also, stick tcpdump on the host's interface, then issue ping from the guests.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant ping Host and VM vice versa [KVM] decenter Linux - Virtualization and Cloud 10 07-17-2013 09:14 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
can't ping or browse by host name of my Fedora 5 server from WinXP and vice versa edeaux Linux - Networking 2 08-22-2006 06:04 AM
m1 can ping m2, but not vice versa cmacklin Linux - Networking 4 10-31-2004 08:01 PM
Ping from Debian to WinME (vice versa) failed :( Elijah Linux - Networking 6 08-24-2003 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:15 AM.

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
Open Source Consulting | Domain Registration