diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-06-05 20:20:59 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-06-12 02:58:55 +0000 |
| commit | 1feb6132d9b56e92903cca7f0f0d50cbee1c4e02 (patch) | |
| tree | d143efdcb492d8c20f9aa1df1c4e57aacf0b9b66 | |
| parent | beb966e84df011f8039df61f24d941345164a2a3 (diff) | |
| download | meta-virtualization-1feb6132d9b56e92903cca7f0f0d50cbee1c4e02.tar.gz | |
libvirt: enable nftables by default
The iptables kernel modules (MASQUERADE, etc.) are increasingly
unavailable — the broader container ecosystem has moved to nftables
(netavark dropped iptables entirely, incus prefers nft). Without
nftables enabled, libvirtd's default network fails to start with
"Extension MASQUERADE revision 0 not supported, missing kernel module".
Add nftables to the default PACKAGECONFIG. This switches the firewall
backend priority to nftables,iptables (prefer nft, fall back to
iptables) and changes RDEPENDS from iptables to nftables + iproute2-tc.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-extended/libvirt/libvirt_git.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-extended/libvirt/libvirt_git.bb b/recipes-extended/libvirt/libvirt_git.bb index 40b3f31a..ad58260f 100644 --- a/recipes-extended/libvirt/libvirt_git.bb +++ b/recipes-extended/libvirt/libvirt_git.bb | |||
| @@ -129,7 +129,7 @@ SYSTEMD_SERVICE:${PN}-libvirtd = " \ | |||
| 129 | 129 | ||
| 130 | # full config | 130 | # full config |
| 131 | PACKAGECONFIG ??= "gnutls qemu openvz vmware vbox esx lxc test remote \ | 131 | PACKAGECONFIG ??= "gnutls qemu openvz vmware vbox esx lxc test remote \ |
| 132 | libvirtd udev python fuse firewalld libpcap \ | 132 | libvirtd udev python fuse firewalld libpcap nftables \ |
| 133 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit libcap-ng', '', d)} \ | 133 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit libcap-ng', '', d)} \ |
| 134 | ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'libxl', '', d)} \ | 134 | ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'libxl', '', d)} \ |
| 135 | ${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'polkit', '', d)} \ | 135 | ${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'polkit', '', d)} \ |
