Automating BIOS recovery to boot using UEFI

alex.d

New Member
Aug 30, 2022
19
1
3
After importing qcow2 disk. On which there are 2 partitions, /boot/efi in /

qm importdisk 105 /home/debian-bookworm.qcow2 ThinPool
qm set 105 --efidisk0 ThinPool:0,efitype=4m,size=64M

In the bootloader I select the disk from which to boot.
But the BIOS does not find the UEFI partition.
in manual mode you can add according to these instructions:
https://pve.proxmox.com/wiki/OVMF/UEFI_Boot_Entries
Tell me how I can fix this automatically or using the CLI.