You are not logged in.

#1 2025-11-12 09:20:56

Bharat
Member
Registered: 2024-06-14
Posts: 5

kvm virt manager the network shows connected in vm but no internet.

if there is any person running kvm on linux that can confirm its not a package issue .

it installs the vm correctly and network shows connected but internet dont works what could be the problem i am using  default NAT and there is no firewall present on my computer
heres what ping google.com shows

bhs@bhs-Standard-PC-Q35-ICH9-2009:~$ ping google.com
PING google.com (142.250.192.206) 56(84) bytes of data.
^C
--- google.com ping statistics ---
609 packets transmitted, 0 received, 100% packet loss, time 622584ms

Offline

#2 2025-11-12 17:34:09

ahepp
Member
Registered: 2025-10-27
Posts: 14

Re: kvm virt manager the network shows connected in vm but no internet.

It's unlikely to be an issue with the package. Let's gather more information about where your network is breaking down.

We can see your system is resolving google.com to an IP address. That generally requires network connectivity in its own right, but it could be a cache thing.

A good starting point for debugging network issues is to look at layer 3 information like interface addresses and the routing table. Can you share the output of

ip a
ip r

It would also be useful to determine the extent of the problem by running

resolvectl query google.com
ping -c 3 <vm host bridge address>
ping -c 3 <local network gateway address>
ping -c 3 1.1.1.1
ping -c 3 google.com

Those tests will tell us about your system's ability to contact devices on your local area network, and on the internet.

In addition, while you say you're not running a firewall, NAT is itself a "firewall" (loosely defined term) function. So it would be good to run

iptables -S

to view the firewall rules.

It's worth running all those commands on both the host device and the guest device to get a basic idea of what's going on in the network.

Offline

#3 2025-11-12 19:42:31

archaea
Member
Registered: 2025-10-20
Posts: 20

Re: kvm virt manager the network shows connected in vm but no internet.

Is the Arch Linux system the host, the guest, or are both running Arch?
Are you using libvirt (e.g. via virt-manager), or directly invoking QEMU/KVM with no intermediary frontend?

Is the firewall backend on the host set up to be iptables (legacy) only, or iptables-nft+nftables, or nftables only, or...?

Bharat wrote:

if there is any person running kvm on linux that can confirm its not a package issue .

I have an Arch Linux host using only official Arch packages throughout the entire libvirt/QEMU/KVM stack, and have no issues with NAT network in any of my guest VMs that use it.

Offline

Board footer

Powered by FluxBB