Open NotAShelf opened 1 year ago
Stumbled across this myself recently, you likely enabled security.lockKernelModules
which prevented the required modules from being loaded. After doing a diff of the lsmod output when I encountered the error and the lsmod output after disabling module locking I found that the following modules were loaded only when module locking was disabled:
!! Note that in this list I have edac_mce_amd
, if you are on an intel platform or perhaps some other cpu architecture you'll probably want to get the list of required modules yourself using the method I described above !!
"evdev" "nf" "nf_nat" "nft_chain_nat" "nf_ct" "xt_conntrack" "nf_conntrack" "xt_CHECKSUM" "xt_MASQUERADE" "ipt_REJECT" "nf_reject_ipv4" "snd_hnd_core" "snd" "udp_diag" "edac_mce_amd" "edac_core" "syscopyarea" "ip6_tables" "vhost" "vhost_net" "vhost_iotlb" "xhci_pci"
Do note that you could shorten this list considerably if you only loaded what you really needed, I used a fedora VM as my test as I had the .iso handy, though if you're doing a more minimal setup (eg. server) you could probably get away with not having some of these loaded. (Though I haven't tested this, so I may also be wrong)
That is a really interesting observation, I'll try that and see how it goes.
Thanks!
Describe the bug
the default network for libvirtd cannot be started
Steps To Reproduce
Steps to reproduce the behavior:
networking.firewall.enable = true;
virtualization.libvirtd.enable = true;
libvirtd
group, and relog to apply changessudo virsh net-start default
Expected behavior
The default network should be started to be used by qemu and virt-manager.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The chain iptables sees as "missing" is already there.
additionally, a comment on a possibly relevant pull request:
by @linsui
Notify maintainers
@duament -
modules/services/networking/firewall-iptables.nix
@alexbakker -nixos/modules/virtualisation/libvirtd.nix
Metadata