config(rydiwo): use snp.efi instead of universal ipxe.efi
The universal UEFI binary ipxe.efi (1.2 MB, all NIC drivers) crashes at the same offset (0x35FC from the iPXE image base) whether the VM has 2 GB or 4 GB of RAM, with RAX = 0xAF...AF (iPXE uninit-memory fill). So this is not OOM (the memory bump did not help) and not a NIC driver issue (we use virtio-net, which the universal binary handles); it is a deterministic bug somewhere in the sanboot/download buffer path of the universal binary when the image is 2 GB. snp.efi (310 KB, SNP-only — the driver virtio-net speaks) is a separate iPXE build with a smaller code path: no UNDI, no PXE prefix, no multi-NIC code. The same bug may not be there, or the different code layout may avoid the bad offset. Worth a try before reaching for GRUB or NFS root. The opt-in is just bootloader.ipxeBinary = "snp.efi"; on the pxe-infra attrset. The tmpfiles rule in modules/pxe-infra/default.nix will symlink the new name into the served TFTP root, and the next DHCP offer from dnsmasq will hand it to the firmware.
This commit is contained in:
1 parent
3154813d01
commit
687d6d13f3
1 file changed
+1
@@ -53,6 +53,7 @@
|
||||
enable = true;
|
||||
bridge.address = "10.66.0.1";
|
||||
bridge.prefixLength = 24;
|
||||
bootloader.ipxeBinary = "snp.efi"; # SNP-only build, 310K, virtio-net-friendly
|
||||
vm = {
|
||||
enable = true;
|
||||
autostart = false; # start manually when testing
|
||||
|
||||
Reference in new issue
Block a user