Comment 10 for bug 1873809

Revision history for this message
Colin Ian King (colin-king) wrote : Re: disk-kvm.img aren't UEFI bootable

So I just tested the same focal kernel with:

git diff
diff --git a/debian.kvm/config/config.common.ubuntu b/debian.kvm/config/config.common.ubuntu
index b69d54e43965..1d4ac88b9db2 100644
--- a/debian.kvm/config/config.common.ubuntu
+++ b/debian.kvm/config/config.common.ubuntu
@@ -695,7 +695,7 @@ CONFIG_EFI_PARTITION=y
 # CONFIG_EFI_RCI2_TABLE is not set
 # CONFIG_EFI_RUNTIME_MAP is not set
 CONFIG_EFI_RUNTIME_WRAPPERS=y
-# CONFIG_EFI_STUB is not set
+CONFIG_EFI_STUB=y
 # CONFIG_EFI_TEST is not set
 CONFIG_EFI_VARS=y
 CONFIG_EFS_FS=m

and co-erced it onto the same image and was able to boot it successfully using:

 qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -hda focal-server-cloudimg-amd64-disk-kvm.img -m 1G -nographic