You are not logged in.

#1 2021-10-26 07:25:41

gardotd426
Member
Registered: 2019-10-19
Posts: 48

No Arch-based OS has network connectivity when running inside a VM

So I do a lot of work in VMs to test my AUR package of the Regolith Desktop Environment that I've brought to Arch. I was going to try and troubleshoot some stuff today and I booted up my pre-existing Manjaro VM to test some stuff. Well when I got in there, it showed my network connection, but I had no actual internet.

ping google.com

would just time out. I tried dhcpcd and it showed no errors. I restarted NetworkManager.service, no change.

systemctl status NetworkManager.service

showed no errors at all. I had internet connectivity in that same VM two days ago, and I changed nothing about the VM configuration whatsoever in the interim (I'm using libvirt w/ virt-manager). I was really confused, so I booted up an existing Pop OS VM using the same NAT. Internet worked perfectly fine.

Okay, so maybe that VM somehow got borked. I created a new one, and booted up the Manjaro iso. No internet (but again it showed the Wired Connection 1 as connected). Okay, so I created a new VM and booted up the vanilla Arch iso. No internet. I ran dhcpcd and then internet worked. But then after installing the system I had the same issue as on Manjaro. So I tried Endeavour. Same exact behavior. Tried Pop OS again to check my sanity, and sure enough internet was working. I have a single GPU passthrough VFIO Windows 10 VM, I booted it and internet connectivity worked.

Host is vanilla Arch of course (which is why I'm posting here).

/var/log/libvirt/qemu/manjaro.log: https://gist.github.com/gardotd426/fd3c … 11f3503c9a

I'm assuming it goes without saying that networking obviously works on the host perfectly fine.

Offline

#2 2021-10-26 07:33:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: No Arch-based OS has network connectivity when running inside a VM

Host is vanilla Arch of course (which is why I'm posting here).

I'm assuming it goes without saying that networking obviously works on the host perfectly fine.

The posted log is useless. Boot the installed arch VM and dump "sudo journalctl -b" as well as "ip a" & "ip r" and "find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f"

Offline

Board footer

Powered by FluxBB