From 18b1f50456a1105c6eecb8bf3c7a42ebbe9dd4cd Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 23 Nov 2026 19:42:29 +0000 Subject: 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). --- pkgs/run-firecracker-vm/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/run-firecracker-vm') 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) -- cgit v1.3.1