pxe-infra: add vm.bootMode option (direct | pxe)

The default "direct" preserves the proven E2E behavior
(2026-10-13). "pxe" enables the full L3 boot chain
(-boot n, no virtio drive) for reproducing T10 (iPXE 2.0.0
#GP at ExitBootServices, RIP 0x7EE8A5FC) and verifying any
fix. Switch modes by editing pxe-infra.vm.bootMode in
configurations/rydiwo and running nixos-rebuild switch —
no other changes needed.
This commit is contained in:
oqyude committed 2026-10-14 14:32:08 +03:00
1 parent 5a38a4a214
commit ce1b0da32d
2 files changed
+55 -2

No files matched your search

+25
View File
@@ -348,6 +348,31 @@
option flipping.
'';
};
bootMode = lib.mkOption {
type = lib.types.enum [ "direct" "pxe" ];
default = "direct";
description = ''
How the guest obtains its boot image.
`direct` attaches the deployed `latest/alpine-worker.raw`
as a virtio drive and uses `-boot c`. The OVMF firmware
finds BOOTX64.EFI in the image's ESP. This is the
rig's normal mode: the same artifact the PXE chain
would serve is loaded directly, the boot is
deterministic, and the firmware chain (TFTP→iPXE→HTTP)
is not exercised.
`pxe` uses `-boot n` and does NOT attach the virtio
drive. The firmware does PXE: dnsmasq hands out DHCP
and the iPXE binary, iPXE loads boot.ipxe over HTTP,
boot.ipxe boots the image. This exercises the full
L3 boot chain. iPXE 2.0.0 currently #GPs at the
handoff back to OVMF (RIP 0x7EE8A5FC, RAX 0xAF...AF)
under QEMU 11.x and OVMF 202608, so this mode is for
reproducing that bug (T10) and verifying fixes; the
rig itself should run in `direct` mode in steady state.
'';
};
};
# iPXE bootloader staging. Bridges the UEFI firmware (which