programmatic UEFI configuration

habys

New Member
Aug 19, 2025
2
0
1
I've got VMs that are configured for "net0", "scsi0" boot. This lets them hit ipxe and if there is nothing for them to install, it moves on to boot from disk.
Only problem is it attempts to HTTP boot, which takes a long time to fail. Is there a way to change that boot management list in UEFI in a programmatic manner?

Fun bonus thing, has anyone tried replacing the virtual nic firmware with ipxe?
 
1. Backup ALL your VM configs in /etc

2. grep net0 /etc/pve/qemu-server/*.conf

3. Lookup how to tell sed to delete the net0 in the conf file, or manually edit them if there is say < 9

Example:
/etc/pve/qemu-server/101.conf:boot: order=ide2;net0

4. Restore from backup if you mess up Step 3
 
What. I need to netboot. It's pxe I need and http boot that is not useful. Removing net0 would remove both and not be useful.
 
Only problem is it attempts to HTTP boot, which takes a long time to fail. Is there a way to change that boot management list in UEFI in a programmatic manner?
You need to build your own OVMF and use that in the vm.
Or, eventually it would be possible to inject a UEFI startup script into the efi partition of each vm, where the http boot entries are disabled.
IMHO both options are not totally trivial.