Windows UEFI VM Fails to Boot After Image Migration Due to Secure Boot Mismatch
Problem
A Windows UEFI VM image exported from one Private Cloud Director environment and imported into another (for example - image captured from an active VM in QA and uploaded to Prod) fails to boot. The VM console displays OVMF (UEFI firmware) denying access to the boot disk with Access Denied errors, followed by No bootable option or device was found.
In some cases, if image metadata is not preserved during the migration, the VM falls back to legacy BIOS (SeaBIOS) and displays No bootable device instead.
Environment
Private Cloud Director Virtualization - v2025.10 and Higher
Self-Hosted Private Cloud Director Virtualization - v2025.10 and Higher
Component: Image Library Service
Cause
The source VM was configured with UEFI boot and Secure Boot enabled (os_secure_boot=required). When the image was captured and uploaded to the destination environment, the os_secure_boot=required property was carried over.
Secure Boot works by verifying that the bootloader on disk is signed by a certificate trusted by the UEFI firmware (OVMF) running on the hypervisor. The OVMF Secure Boot certificate database (db, KEK, PK) on the destination hypervisors may differ from the source environment. When the bootloader signature cannot be validated against the destination certificate database, OVMF denies access to the boot disk and blocks the EFI shell, resulting in a non-bootable VM.
Diagnostics
Verify image properties
Check the image metadata in the destination environment for Secure Boot and firmware configuration.
$ openstack image show <IMAGE_ID> --fit+------------------+------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------+
| properties | hw_firmware_type='uefi', |
| | hw_machine_type='q35', |
| | hw_disk_bus='scsi', |
| | hw_scsi_model='virtio-scsi', |
| | os_secure_boot='required' |
+------------------+------------------------------------------------------+Confirm the following in the properties field:
hw_firmware_type— must beuefios_secure_boot— if set torequired, this is the cause of the boot failurehw_machine_type— must beq35for UEFIhw_disk_bus— typicallyscsiwithhw_scsi_model=virtio-scsi
Verify boot volume metadata
If the VM boots from a volume, confirm that the volume also carries the correct image metadata. Missing metadata causes the VM to default to BIOS boot.
$ openstack volume show <VOLUME_ID>+------------------------+----------------------------------------------+
| Field | Value |
+------------------------+----------------------------------------------+
| volume_image_metadata | {hw_firmware_type: uefi, |
| | hw_machine_type: q35, |
| | os_secure_boot: required} |
+------------------------+----------------------------------------------+If hw_firmware_type is absent from volume_image_metadata, the VM will boot via BIOS (SeaBIOS) instead of UEFI. If os_secure_boot=required is present, the Secure Boot mismatch applies to the volume as well.
Compare source and destination image properties
If access to the source environment is available, compare image properties between both environments to identify any metadata discrepancies.
# Source environment
$ openstack image show <SOURCE_IMAGE_ID> --fit
# Destination environment
$ openstack image show <DEST_IMAGE_ID> --fitVerify that all hw_* properties match between environments. Pay particular attention to os_secure_boot.
If all checks above match, proceed to Resolution.
Resolution
Disable Secure Boot on the destination image and create a new boot volume that inherits the updated metadata.
Validation
Last updated
