<os>
    <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.secboot.fd</loader>
    <nvram template='/usr/share/OVMF/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/instance-00000206_VARS.fd</nvram>
    <boot dev='hd'/>
    <smbios mode='sysinfo'/>
  </os>
Here is the output from `virsh dumpxml XX`. As we can see uefi is properly setup.  But it seems a device is required.

On Fri, May 10, 2024 at 1:28 PM luckydog xf <luckydogxf@gmail.com> wrote:
I also set   hw_machine_type=q35 and   hw_machine_type=pc. Neither works.

Converting a volume to an image takes too much space and time because it's so large. 

Any alternative?

On Fri, May 10, 2024 at 1:25 PM luckydog xf <luckydogxf@gmail.com> wrote:
Hi, list,

I migrated a volume from VMware ESXI VMDK, and originally on VMware platform it's EFI boot mode and secure boot enabled. 

 I cloned the entire VMDK by clonzilla and restored on OpenStack as a volume.

I referred to this link https://docs.openstack.org/nova/latest/admin/secure-boot.html and uploaded that volume as an image. Then set properties.

Finally, I launched an instance with a target image, however, it cannot boot up with a blank and dark screen.

What's the right way to implement this?

 Thanks.