KVM machines don't have networking

I don’t know when exactly this happened as I have not used KVM in a few months (I want to say 2-3), but at some point my KVM machines stopped having functional networking. I did not change anything config-wise, so I have to assume it was an update to something. This is not a Manjaro specific issue either, I’m also seeing it on Artix where I have basically the same config.

I have no pending .pac files but it’s possible that I neglected to merge something important (I tend to just delete the new files if the only differences are comments).

Has anyone experienced the same lately?

Here’s the network xml just in case it matters:

<network>
    <name>newnat</name> 
    <forward mode='nat'> 
        <nat> 
            <port start='1024' end='65535'/> 
        </nat>
    </forward>
    <bridge name='virbr1' stp='on' delay='0'/> 
    <ip address='192.168.183.1' netmask='255.255.255.0'> 
        <dhcp> 
            <range start='192.168.183.2' end='192.168.183.254'/> 
        </dhcp> 
    </ip>    
</network>

Okay so I’m r worded, it’s a known issue.

From the recent update thread:

2024-07-01

The sshd service needs to be restarted after upgrading to openssh-9.8p1 Virtual machines using libvirt have no internet if the host uses UFW

This is a known bug . “Workaround” is to change the firewall with firewalld or to disable UFW.
Another easier workaround is to edit /etc/libvirt/network.conf, and add

firewall_backend = "iptables"

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.