aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add optional cut-down guest kerneltv11 days2-0/+33
| | | | | | | | | | | | kernel.nix builds Linux 6.18 with Firecracker's recommended guest configuration (resources/guest_configs/microvm-kernel-ci-x86_64-6.18.config), plus erofs as a module. Use it with nix-build --arg kernelPackages 'import ./kernel.nix {}' Everything Firecracker needs is built in, so NixOS' default initrd modules (ahci, efivarfs, ...) don't exist; allowMissingModules lets the initrd build anyway.
* silence probing of devices Firecracker doesn't havetv11 days1-1/+4
| | | | 8250.nr_uarts=1 stops probing of the legacy ports of ttyS1..ttyS3.
* make guest kernel configurable, default to latesttv11 days1-1/+4
| | | | | Default to linuxPackages_latest, which matches a host running the latest kernel from the same channel, so no extra kernel gets built.
* init firecracker NixOS guesttv11 days1-0/+69
Boot a NixOS guest in Firecracker and drop into a root shell on ttyS0. Firecracker can't share directories with the guest (no 9p or virtio-fs), so the host store is exposed as a read-only block device: run-firecracker-vm packs the guest system's closure, plus the closures of any store paths given as arguments, into a temporary erofs image, which the guest mounts at /nix/store. Root is a tmpfs.