QEMU: After EFI-Disk creation system no longer boots from DVD

hellfire

Renowned Member
Aug 17, 2016
79
47
83
46
Hi,

When I create an EFI-Disk, the installed system is booting fine.

But the system no longer boots from a DVD(-Image). Even, when I enter the OVMF-Bios and select the DVD-Entry with a Linux rescue DVD-Image configured, the VM does not boot and returns immediately to the OVMF-BIOS. Selecting the installed system there immediately boots it.

The only option is to delete the EFI-Disk. After that DVD-Boot works fine again, but autoboot into the system is no longer possible. For that I have to recreate the EFI-Disk and call grub-install again.

I also tried to create a EFI-DVD-Entry from the running VM with no success. (The .efi file below is from a systemrescue dvd image) The DVD-Entry is gone after reboot.

Code:
efibootmgr --create-only --disk /dev/sr0 --label "dvd" --loader \\EFI\\boot\\bootx64.efi
efibootmgr -o 0001,0008,0009,0003,0004,0005,0006,0007,0002,0000

This ist the current output of efibootmgr -v:

Code:
BootCurrent: 0009
Timeout: 3 seconds
BootOrder: 0001,0008,0009,0003,0004,0005,0006,0007,0002,0000
Boot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001* UEFI QEMU DVD-ROM QM00003     PciRoot(0x0)/Pci(0x1,0x1)/Ata(1,0,0)N.....YM....R,Y.
Boot0002* EFI Internal Shell    FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot0003* UEFI QEMU QEMU HARDDISK       PciRoot(0x0)/Pci(0x5,0x0)/SCSI(0,0)N.....YM....R,Y.
Boot0004* UEFI PXEv4 (MAC:E213686ADFEE) PciRoot(0x0)/Pci(0x12,0x0)/MAC(e213686adfee,1)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.
Boot0005* UEFI PXEv6 (MAC:E213686ADFEE) PciRoot(0x0)/Pci(0x12,0x0)/MAC(e213686adfee,1)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.
Boot0006* UEFI HTTPv4 (MAC:E213686ADFEE)        PciRoot(0x0)/Pci(0x12,0x0)/MAC(e213686adfee,1)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()N.....YM....R,Y.
Boot0007* UEFI HTTPv6 (MAC:E213686ADFEE)        PciRoot(0x0)/Pci(0x12,0x0)/MAC(e213686adfee,1)/IPv6([::]:<->[::]:,0,0)/Uri()N.....YM....R,Y.
Boot0008* dvd   HD(1,MBR,0x11e28ffa,0x0,0x166800)/File(\EFI\boot\bootx64.efi)
Boot0009* debian        HD(1,GPT,20ea9ad1-e21e-4ead-9cf1-92a7bdf30a8f,0x800,0x100000)/File(\EFI\debian\shimx64.efi)

Is there anything I did wrong?

Regards,
h.

P. S. : These are my first steps playing around with UEFI. So there are for sure many lacks in competence to handle that appropriately.
 
Last edited:
Hi,
does your EFI disk have pre-enrolled-keys=1? Is the DVD image you want to boot signed/support secure boot? Otherwise, I'd guess the failure is because of that.
 

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!