Debian VM - EFI forget setup and return to default

klausbfrederiksen

New Member
Jan 8, 2023
4
0
1
Denmark
Sorry if this is is the wrong group for my question.
I have P2V a Debian installation to a EFI VM. It will not boot.
I found this https://mricher.fr/post/boot-from-an-efi-shell/ (Thanx) - and got a step closer. I am able to find my BOOT partition and grub64x.efi.
I deletes IPv4 & IPv6 boot + HTTP boot as I do not need them
I also attach my new debian boot as boot option #0
All is nice, until i reboot the entire VM.
IPV4 & 6 + HTTP boot is now present again. As if nothing was saved.
Well - I do have gray and thin hair, so I wont get that again, but I am frustrated.

May the day be good to you
/Klaus
Denmark
 
Hi,
does your VM have a dedicated EFI Disk attached? You can check it in the VM's Hardware tab. If not, you can add one with Add > EFI Disk (you might need to unselect the Pre-Enroll Keys checkbox for an existing installation). Maybe doing it with the boot maintenance manager works: https://pve.proxmox.com/wiki/OVMF/UEFI_Boot_Entries
 
Yes, my VM do have a sda1: /boot/EFI (vfat).
I have been in the boot maintainence section in the link. Removed some boot options (IPv4 & 6, HTTP IPv4 & 6), and added my debian boot config.
Adding /boot/EFI/debian/grubx64.efi and then starting manually works.
After a shutdown, when rebooting all is reset to default settings. As if it was not saved
 
Yes, my VM do have a sda1: /boot/EFI (vfat).
I have been in the boot maintainence section in the link. Removed some boot options (IPv4 & 6, HTTP IPv4 & 6), and added my debian boot config.
Adding /boot/EFI/debian/grubx64.efi and then starting manually works.
After a shutdown, when rebooting all is reset to default settings. As if it was not saved
Proxmox VE will add a temporary EFI disk if you don't have a dedicated one, so the VM will boot, but no persistent changes can be made there. That's why I said you should check in the VM's Hardware tab.

Please share the output of qm config <ID> with your VM's ID and pveversion -v.
 
I made this file containing both outputs.
I also set up a UEFI debian VM, and noticed this line, which is missing from vm 100:
efidisk0: local-lvm:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
which I assume is the missing "link"
 

Attachments

I made this file containing both outputs.
I also set up a UEFI debian VM, and noticed this line, which is missing from vm 100:
efidisk0: local-lvm:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
which I assume is the missing "link"
Yes, I suggested adding an EFI disk in my first answer ;)
Hi,
does your VM have a dedicated EFI Disk attached? You can check it in the VM's Hardware tab. If not, you can add one with Add > EFI Disk (you might need to unselect the Pre-Enroll Keys checkbox for an existing installation). Maybe doing it with the boot maintenance manager works: https://pve.proxmox.com/wiki/OVMF/UEFI_Boot_Entries