How to enable UEFI support

39 views
Skip to first unread message

M.S. Varadharajan Nadar

unread,
Sep 10, 2024, 4:07:43 PM9/10/24
to kiwi
Hi Team,

I am trying to build an Ova image with secure UEFI support, I can build and run an Ova image but am not able to switch from "Legacy BIOS" to UEFI

Every time I change from "Legacy BIOS" to "UEFI" the VM fails to boot, I removed the signed grubx86.efi from the root folder but I am still not able to boot the VM

Error: EFI VMware SCSI Hard Drive (0.0) ... No compatible bootloader found.

Thank you
Varadharajan Nadar

Marcus Schäfer

unread,
Sep 11, 2024, 6:58:57 AM9/11/24
to kiwi-...@googlegroups.com
Hi,
In kiwi speak a secure boot enabled image needs the following
setting in your <type> section:

<type ... firmware="uefi" .../>

The uefi firmware setting triggers the required bits in a kiwi build
to setup the image for secure boot. This means the disk layout is
EFI based, the partition table is GPT, the shim EFI binary signed
by Microsoft and provided by the distribution is used.

Hope this helps

Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
signature.asc

M.S. Varadharajan Nadar

unread,
Sep 11, 2024, 7:42:22 AM9/11/24
to kiwi
Thanks a lot, Marcus for your time
Please review the below configuration for Ova Image, I hope it is correct 

        <preferences profiles="Ova">
                <type image="oem" eficsm="false" bootpartition="true" filesystem="ext4" kernelcmdline="console=ttyS0" firmware="uefi" format="ova">
                        <bootloader name="grub2" console="serial" timeout="10"/>
                        <oemconfig>
                                <oem-resize>false</oem-resize>
                        </oemconfig>
                        <size unit="G" additive="true" unpartitioned="5">50</size>
                        <machine memory="8192" guestOS="ubuntu" HWversion="18" ovftype="vmware" arch="x86_64">
                                <vmdisk id="0" controller="pvscsi"/>
                                <vmdvd id="0" controller="sata"/>
                                <vmnic driver="e1000" interface="0" mode="bridged"/>
                        </machine>
                </type>
        </preferences>

M.S. Varadharajan Nadar

unread,
Sep 11, 2024, 7:55:52 AM9/11/24
to kiwi
My apologies, I did a mistake in the above configuration, changed sata to scsi in the vmdvd controller

<vmdvd id="0" controller="scsi"/>

M.S. Varadharajan Nadar

unread,
Sep 11, 2024, 5:49:12 PM9/11/24
to kiwi
My apologies again, many thanks for your support
I made a mistake with guestOS on the below, I got it changed and I am able to boot the VM
wrong
guestOS="ubuntu"

correct
guestOS="ubuntu-64"
Reply all
Reply to author
Forward
0 new messages