QEMU Virtmanager - no network available for virtual machine

Hello Manjaros,
I followed the wiki tutorial :Virt-manager - Manjaro
to install Virtmanager which, until a year ago, was running on this PC.
The install works fine and I do reboot before installing the first VM. But during the VM install, I get an error that is DHCP related.

In Fedora, using @virtualization works fine and the VMs can see the network.

Is the WIKI correct and if yes, what am I missing. Any hints?

Are you using firewall? If yes, as stated in the known problems some months ago

This is a known bug 2. “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”

1 Like

Thank you Teo,
You nailed it! I was just about to install Virtualbox but now I don’t have to.

Do you have nftables installed? (It can coexist with iptables/ufw.)

I seemed to be immune to the problem everyone else was having back then, but it does avoid ufw.

The libvirt configuration default is to use nftables, then try iptables.

nftables is preferred and the newer way, for most things.

With nftables installed, the helper scripts set up the NAT network for me. And put in the simple accept/forward rules in these tables:

$ sudo nft list tables                                                                                                                                                                                                                                     
table ip libvirt_network
table ip6 libvirt_network

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