After having upgraded my Lenovo T14 laptop to 15.6 this weekend none of the Libvirt VMs had Internet access. Just in case it would help others, here is a short description of the problem with the solution:
Sympthoms:
- none of the existing Libvirt VMs had internet access, yet
ping 8.8.8.8
on the VMs worked fine. - the host itself did have Internet access
Root cause: The upgrade process moved the existing NetworkManager config file to /etc/NetworkManager/NetworkManager.conf.rpmsave
, dropped a default config in /etc/NetworkManager/NetworkManager.conf.rpmnew
and left NetworkManager without a new /etc/NetworkManager/NetworkManager.conf
. This is standard RPM feature when the pkg wants to upgrade a config file, but in this case left me with the default NetworkManager config (i.e.: no local dnsmasq
instance, which in turn was needed by the dnsmasq
instance of the default libvirt bridge)
Solution: cp /etc/NetworkManager/NetworkManager.conf.rpmsave /etc/NetworkManager/NetworkManager.conf && systemctl restart NetworkManager
HTH.