[SOLVED] adding boot option with efibootmgr is removed on vm reboot

neoskizzle

New Member
Dec 15, 2021
2
0
1
44
hi there

i have the problem, that when i install a vm using efistub, the EFI entry i make using efibootmgr gets removed when the vm reboots. leaving the vm unable to boot without manual action in form of booting an iso and set the EFI entry again.

i have to make this, to set some aditional params to boot the kernel. like root=[dev-uid] and subvol=[btrfs-subvol]

anyone been there before?
i think this is strange because creating the efi boot entry using efibootmgr is working, but basically the entry is removed once booted.
i also can verify the entry is created using the efi boot manager.

proxmox is running Virtual Environment 7.1-8
vm is running arch linux
the efi partition is mounted at /boot
the underlaying datastore is a zfs pool
 
Last edited:
Hi,

does the VM has an EFI disk configured? As else a ephemeral, temporary one is created freshly on every start - which would be the simplest explanation for this behavior. You can add a permanent EFI disk in the Hardware tab of the VM.
 
hey thomas,
thanks for your help.
no it had not. I was not aware of this.

I added a UEFI Disk and added the boot option via efibootmgr again and et voilà - it works like expected
thanks a lot and kind regards