You are not logged in.
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
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 rIt 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.comThose 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 -Sto 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
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...?
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