Code: Select all
Error starting domain: Requested operation is not valid: network 'default' is not active
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 67, 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/domain.py", line 1446, in startup
self._backend.create()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/libvirt.py", line 1390, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: Requested operation is not valid: network 'default' is not active
Code: Select all
# virsh net-list --all
Name State Autostart Persistent
----------------------------------------------
default inactive yes yes
# virsh net-start default
error: Failed to start network default
error: internal error: Failed to run firewall command iptables -w --table filter --list-rules: modprobe: FATAL: Module ip_tables not found in directory /lib/modules/6.17.2-gentoo
iptables v1.8.11 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
https://wiki.gentoo.org/wiki/Nftables
and emerged net-firewall/nftables.
Now that everything is working again, I realised that I can't remove net-firewall/iptables due to both libvirt and iproute2 requiring the package.
1) I think it would be helpful to notify users of this kernel configuration defaults change (especially for those who use `make olddefconfig` when updating).
2) Is the net-firewall/iptables package still required for libvirt? It looks like it defaults to nftables if available:
Code: Select all
$ grep -A3 'If firewall_backend' /etc/libvirt/network.conf
# If firewall_backend isn't configured, libvirt will choose the
# first available backend from the following list:
#
# [nftables, iptables]


