aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-23 19:42:29 +0000
committertv <tv@krebsco.de>2026-11-23 19:42:29 +0000
commit18b1f50456a1105c6eecb8bf3c7a42ebbe9dd4cd (patch)
treefb91b2ec7b09efe31dc3ffa0edd944700d6698f0 /pkgs
parent80ba3bf268599935af96318c9eb051245640986c (diff)
run-firecracker-vm: virtio_pci in the initrd, for VMMs with PCI
Firecracker attaches its devices via MMIO, Cloud Hypervisor and qemu via PCI, which the cut-down kernel has built in, and linuxPackages_latest as a module, which the initrd needs, for the drives. Harmless where there is no PCI (allowMissingModules, too).
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/run-firecracker-vm/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/run-firecracker-vm/default.nix b/pkgs/run-firecracker-vm/default.nix
index 5f07e0c..02ffc8d 100644
--- a/pkgs/run-firecracker-vm/default.nix
+++ b/pkgs/run-firecracker-vm/default.nix
@@ -186,7 +186,8 @@ let
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
boot.initrd.allowMissingModules = true; # e.g. ahci, efivarfs with a cut-down kernel
- boot.initrd.kernelModules = [ "virtio_mmio" "virtio_blk" "erofs" "vmw_vsock_virtio_transport" "9p" "9pnet_fd" "overlay" ];
+ # virtio over MMIO (Firecracker) or PCI (Cloud Hypervisor, qemu).
+ boot.initrd.kernelModules = [ "virtio_mmio" "virtio_pci" "virtio_blk" "erofs" "vmw_vsock_virtio_transport" "9p" "9pnet_fd" "overlay" ];
boot.kernelParams = [
"console=ttyS0" "reboot=k" "panic=1"
"8250.nr_uarts=1" # only ttyS0 exists (stops 0x2f8/0x3e8/0x2e8 probing)