aboutsummaryrefslogtreecommitdiffstats
path: root/base/kernel.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-23 19:44:15 +0000
committertv <tv@krebsco.de>2026-11-25 12:22:23 +0000
commit312605171f6e3ef59a0f7c0cffc69e98c346a60c (patch)
tree0128bddfcd0500f9a553fa68452415df75203ba9 /base/kernel.nix
parent18b1f50456a1105c6eecb8bf3c7a42ebbe9dd4cd (diff)
run-firecracker-vm: --vmm cloud-hypervisor
Firecracker was the only hypervisor, with its limit of about 19 devices (virtio-mmio, an interrupt each), no hot-plugging, and no virtio-fs. Now the run script can also start the same build in Cloud Hypervisor (--vmm cloud-hypervisor; Firecracker stays the default), translating the Firecracker configuration it makes anyway into Cloud Hypervisor's options: kernel (the same vmlinux, which it boots via PVH), initrd and command line, CPUs and memory, the drives (read-only for the images), the tap and MAC, vsock. The drives are image_type=raw: without it, Cloud Hypervisor guesses, and then refuses writes to sector 0, which wrecks ext4 (the rw-store, home). Its vsock works like Firecracker's (a guest's connection to port PORT goes to the socket SOCKET_PORT), so the 9P servers stay as they are, and the guest finds its drives by label, so their order on PCI doesn't matter. Unlike Firecracker, it restarts the guest on reboot (a reset), so the way out there is poweroff. Its options are KEY=VALUE,... lists, so it takes no commas in --store and --home.
Diffstat (limited to 'base/kernel.nix')
0 files changed, 0 insertions, 0 deletions