you need to modify the image properties on the boot volume to set
hw_firmware_type=uefi
preferably with hw_machine_type=q35
you can do this with "openstack volume set --image-property <key=value> ..."
also in relation to your other therad you can also set the disk bus on the volume this way too
by setting hw_disk_bus=sata instead of using ide
ide would also work but its much much much slower.
On Fri, 2024-05-10 at 17:06 +0800, luckydog xf wrote:
> <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.
> > >
> > >
> > >
> > >