Tags: howto,cloudstack,uefi,kvm
Date: 20260223
Updated: 20260223
It's a simple thing, but sometimes if the information is not easily found it can become a hassle.
So how do we go about it? In 2 simple steps:On (RH)EL: guest.nvram.template.secure=/usr/share/edk2/ovmf/OVMF_VARS.secboot.fd guest.nvram.template.legacy=/usr/share/edk2/ovmf/OVMF_VARS.fd guest.nvram.path=/var/lib/libvirt/qemu/nvram/ guest.loader.secure=/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd guest.loader.legacy=/usr/share/edk2/ovmf/OVMF_CODE.cc.fd On Ubuntu/Debian: guest.nvram.template.secure=/usr/share/OVMF/OVMF_VARS_4M.ms.fd guest.nvram.template.legacy=/usr/share/OVMF/OVMF_VARS_4M.fd guest.nvram.path=/var/lib/libvirt/qemu/nvram/ guest.loader.secure=/usr/share/OVMF/OVMF_CODE_4M.secboot.fd guest.loader.legacy=/usr/share/OVMF/OVMF_CODE_4M.fdStep 2 - Enable UEFI boot in the VM settings in the CloudStack UI or API. The VM needs to be stopped for this to be possible. Both LEGACY and SECURE are valid options. The latter is if you need "secure boot".
