I just cannot get a working connection with libvirtd on NixOS.
I am using virt-manager to manage my VMs. When checking the hardware configuration in virt-manager, the network section says “IP address: Unknown”. When I boot the VM and check what the local IP address is, I get an address starting with 169.254 and I cannot reach the internet.
My following configuration section could be relevant:
On my system, dnsmasq is installed as the wiki suggests. Also net.ipv4.ip_forward is set to 1. I even tried following the Arch wiki but no success. I’ve tried disabling the firewall altogether but also nothing.
Has anyone gotten it to work? If so, how? Any help would be much appreciated!
I tried setting an IP manually as you suggested, and it somehow works but not entirely. ip addr add dev enp1s0 192.168.122.33 works, but ip route add default via 192.168.122.1 throws Error: Nexthop has invalid gateway.
For testing purposes, I set the default route to the same IP that I added previously and it doesn’t throw that error, but I still cannot reach the internet.