Hi,
> I've created Oracle Linux 8 OVA template using Kiwi-ng version 10.2.3.
> I'm able to build OVA template which are booting with Legacy BIOS boot
> in VSphere but failing to boot with UEFI (with & without secure boot).
> Getting the below messages once VM is powered on
I can't tell much about VSphere but we recently changed the way
how we build OVA images. For details see:
https://github.com/OSInside/kiwi/pull/2933
With this change we no longer use the proprietary ovftool but the open-vmdk
project to build OVA images. This is just a side information. You
can still build the OVA by converting the vmdk to an ova via the ovftool
after the kiwi build has finished
> Attempting to start up from:
> -> EFI Virtual disk (0.0)... No compatible bootloader found.
Regarding your boot image I believe the problem is that the actual
image blob (the vmdk inside the OVA) might not been built with EFI
support, even though I see firmware="uefi" in your type setup.
As such can you please try and check if the native .vmdk disk image
which is part of the kiwi build results can be booted in EFI mode?
You can do this as follows:
qemu-kvm -cpu Broadwell-v2 -m 4096 -bios /usr/share/qemu/ovmf-x86_64-ms.bin -hda image-file.vmdk
The virtual EFI firmware (OVMF) can be found in the qemu-ovmf package
just in case you haven't installed QEMU and its components. Alternatively
you should also be able to use the .vmdk blob in an EFI machine setup
in e.g virtualbox
So if the plain disk blob can boot in EFI mode, the problem is not on
the actual image itself but more on the OVA metadata and VSphere.
If it does not boot in EFI mode it would help if you can provide
the .vmdk binary blob
> Below is my config for VM profile
>
> <type image="oem" filesystem="xfs" initrd_system="dracut"
> firmware="uefi" format="ova" eficsm="false"
With this spec CSM mode is off, meaning no BIOS boot should
be possible at all and only EFI is in place
> Can you please review and suggest what can be wrong here? Let me know
> if any more details are required. Thank You!
Let's check first if the plain disk blob is EFI bootable as I wrote.
Hope this helps
Regards,
Marcus
--
Public Key available via:
https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer