diff options
Diffstat (limited to 'base/kernel.nix')
| -rw-r--r-- | base/kernel.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/base/kernel.nix b/base/kernel.nix index 16983c7..6646d33 100644 --- a/base/kernel.nix +++ b/base/kernel.nix @@ -1,8 +1,11 @@ # Cut-down guest kernel, based on Firecracker's recommended configuration, # as a module for the base system: # nix-build pkgs/run-firecracker-vm --arg base '[ base/kernel.nix ]' -# With erofs and 9P (for the store), and KVM as modules, which load when -# the VMM offers hardware virtualization (run-firecracker-vm --nested). +# With erofs and 9P (for the store), KVM as modules, which load when +# the VMM offers hardware virtualization (run-firecracker-vm --nested), +# and what modules/host needs of nf_tables (inet, IPv6 and bridge +# families, ct count, limit, log, reject, fib, redirect, masquerade), so +# a guest can run guests, too. { pkgs, ... }: let linux = pkgs.linux_6_18; @@ -26,6 +29,18 @@ let CONFIG_KVM=m CONFIG_KVM_AMD=m CONFIG_KVM_INTEL=m + CONFIG_NF_TABLES_INET=y + CONFIG_NF_TABLES_IPV6=y + CONFIG_NF_TABLES_BRIDGE=y + CONFIG_NFT_CONNLIMIT=y + CONFIG_NFT_LOG=y + CONFIG_NFT_LIMIT=y + CONFIG_NFT_MASQ=y + CONFIG_NFT_REDIR=y + CONFIG_NFT_REJECT=y + CONFIG_NFT_FIB_IPV4=y + CONFIG_NFT_FIB_IPV6=y + CONFIG_NFT_FIB_INET=y EOF make olddefconfig ''; |
