config(rydiwo): bump pxe-infra VM to 4G so iPXE can sanboot a 2G image
iPXE's sanboot for an HTTP URL needs to hold the entire image in its own heap. The raw Alpine image is 2 GB; with the default 2 GB VM RAM, iPXE's allocator runs out around the 2 GB mark, leaves uninitialised 0xAF...AF fill in the fresh pages, and the firmware's next read from that area raises #GP at RIP 0x7EE855FC with RAX = 0xAF...AF. Bumping pxe-infra.vm.memory to 4G gives iPXE roughly 2G of heap for the download, which is exactly what a 2G image needs. The rest goes to OVMF firmware and friends.
This commit is contained in:
1 parent
8d5fad76fd
commit
3154813d01
1 file changed
+1
@@ -56,6 +56,7 @@
|
||||
vm = {
|
||||
enable = true;
|
||||
autostart = false; # start manually when testing
|
||||
memory = "4G"; # iPXE needs 2G+ heap to sanboot a 2G raw image
|
||||
};
|
||||
dhcp.guests = [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user