From 687d6d13f37c8f06ab3136b1ed802baabc50c40b Mon Sep 17 00:00:00 2001 From: oqyude Date: Tue, 13 Oct 2026 04:08:58 +0300 Subject: [PATCH] config(rydiwo): use snp.efi instead of universal ipxe.efi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- configurations/mini-laptop.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/configurations/mini-laptop.nix b/configurations/mini-laptop.nix index eae0acd..73b1ca2 100644 --- a/configurations/mini-laptop.nix +++ b/configurations/mini-laptop.nix @@ -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