aboutsummaryrefslogtreecommitdiffstats
path: root/layers/console.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-25 14:28:29 +0000
committertv <tv@krebsco.de>2026-11-25 15:36:16 +0100
commitdb8771df6809be57362477395bc4450b32dd3e74 (patch)
treefc5e655df1c6ba3c50a9a6ddb2414733504b0530 /layers/console.nix
parente199202421b24be09aa2b3b654c8f3f82afed52d (diff)
run-firecracker-vm: --nested, hardware virtualization for the guest
Cloud Hypervisor offers its guests hardware virtualization by default (nested=on, its CPUs show svm), and Firecracker passes on whatever KVM offers (it's "not tested with nested virtualization", but has no switch), so whether a guest got it depended on the VMM, and the host's kvm settings, not on anyone's choice. Now it's off unless asked for with --nested: Cloud Hypervisor gets nested=off or on, Firecracker a custom CPU template (cpu-config) clearing SVM (CPUID 0x80000001 ECX[2]) and VMX (CPUID 1 ECX[5]), dropped with --nested. With it, and KVM in the guest's kernel (base/kernel.nix), the guest gets /dev/kvm, to run VMs itself, like NixOS VM tests. Off by default, as it opens more of the host's KVM to the guest.
Diffstat (limited to 'layers/console.nix')
0 files changed, 0 insertions, 0 deletions