Proxmox boot order is overridden automatically

bugsdabunny

Member
Aug 5, 2021
7
0
6
44
I am trying to boot from a kernel I signed myself so I can use Secure Boot. I tested it on Debian 11 and it worked, so I figured it will work on Proxmox too. I change the boot order with efibootmgr and boot to an EFI stub. However on Proxmox, something is overriding the boot order and it won't show the EFI stub in BIOS as an option either. When I boot back into Proxmox, the boot order I set has been overridden. I cannot figure out why this is happening, but everything works great on Debian 11 so I feel like Proxmox is the cause. Does anyone know what's going on?
 
are you using ZFS? if so, your system uses proxmox-boot-tool to setup managed ESPs. if not, than PVE should not interfere with EFI setup at all, it's vanilla Grub.
 
I'm not using ZFS, I installed Proxmox 7 on top of Debian 11 using the guide in the Wiki. When I run the command to change the boot order it is reflected in efibootmgr command, but after I change I reboot then it reverts back every time
 
we don't touch the efi boot config unless booting is managed by proxmox-boot-tool, and then only when initializing a new ESP (a manual action).
 
we only use systemd-boot with ZFS on UEFI systems..
 
I am trying to boot my own EFI stub (which I think requires systemd-boot) which has a signed version of the kernel proxmox is using, so I can use it for Secure Boot. I think you are saying what the installer sets up is systemd boot only with ZFS, but I am trying to do something custom and something is being overwritten.

I am trying to do this because I read Proxmox doesn't support SecureBoot
 
again - PVE does not overwrite anything automatically (modulo what Grub does in stock Debian as well, and you said that worked fine for you).

so if you set a boot order or add a boot entry and it's not there after a reboot
- you set it as "one-off" boot option for the next reboot only
- your UEFI implementation is broken
- something else is messing with your efivars
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!