Surely there's a virt-manager GUI checkbox for changing a VM to boot using UEFI ...
Will Dormann @wdormann@infosec.exchange
Surely there's a virt-manager GUI checkbox for changing a VM to boot using UEFI as opposed to BIOS. No, you first change your preferences to allow XML editing, and then you modify the os section of the VM's XML:
<os firmware="efi">
<type arch="x86_64" machine="pc-q35-10.2">hvm</type>
<firmware>
<feature enabled="no" name="enrolled-keys"/>
<feature enabled="no" name="secure-boot"/>
</firmware>
<loader readonly="yes" type="pflash" format="raw">/usr/share/OVMF/OVMF_CODE_4M.fd</loader>
<nvram template="/usr/share/OVMF/OVMF_VARS_4M.fd" templateFormat="raw" format="raw">/var/lib/libvirt/qemu/nvram/my_vm.fd</nvram>
<boot dev="hd"/>
</os>
🤦♂️