This post is about fixing following errors while creating virtual machine with Virt Manager:
1. Unable to complete install: 'Requested operation is not valid: network 'default' is not active'
Unable to complete install: 'Requested operation is not valid: network 'default' is not active'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2001, in _do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line 701, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line 649, in _create_guest
domain = self.conn.createXML(install_xml or final_xml, 0)
File "/usr/lib/python3.9/site-packages/libvirt.py", line 4366, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: Requested operation is not valid: network 'default' is not active
2. Error starting network 'default': internal error: Failed to initialize a valid firewall backend
Error starting network 'default': internal error: Failed to initialize a valid firewall backend
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/network.py", line 69, in start
self._backend.create()
File "/usr/lib/python3.9/site-packages/libvirt.py", line 3436, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: internal error: Failed to initialize a valid firewall backend
FIX:
Install following packages:
- iptables-nft dnsmasq nftables
- libvirtd-openrc or libvirtd-runit or libvirtd-dinit or libvirtd-s6 or libvirtd-suite66
- Start service libvirtd and virtlogd
If there is any mistake point out in comments