Closed Dany9966 closed 1 year ago
So it sounds like the boot.priority setting is not being applied to the CSM disk devices, or that UEFI devices are being put first.
Yes, exactly. The priority is not being applied to the CSM disk devices
Unfortunately I'm not aware of any way to do this at the moment. LXD only has control over the qemufw boot priorities which we do set correctly, but there's no way to indicate whether we want the priority to apply to EFI or CSM.
This is a bit of a shortcoming of the EDK2/CSM/seabios integration. I also looked for a build option in EDK2 to flip the default order, basically defaulting to CSM in that particular case, but with no luck.
Closing because this is unfortunately outside of what LXD or apparently even QEMU can control at this point.
Reopening this as without the ability to make csm boot the default for servers it makes csm not very practical when importing many instances, as each one has to have the boot order manually changed in the UEFI menu.
Required information
Issue description
I successfully booted into a legacy disk, but I need to always configure UEFI settings upon VM creation via console. Here's the VM configuration:
The
root
disk of the VM contains the data of a bootable legacy disk, and /dev/sdb is a data disk. When I start this VM, it tries to boot the UEFI disks (as configured), and then using the NICs' PXE/HTTP. Since I have CSM enabled, the legacy boot options are also added, but unfortunately those are by default put at the bottom of the boot priority list.We'd need to programmatically boot into the legacy disk . Since CSM is enabled in the VM configuration and disk devices set as top priority, it would be nice if the legacy disks were also set as priority next to the UEFI disk entries.
In my case booting without touching the VM's console, PXE would take over and the VM would never boot into the legacy disk.