Creating virtual machines with UEFI boot

You can create virtual machines with UEFI boot from either templates (QCOW2 images) or ISO images.

Prerequisites

To create a virtual machine with UEFI boot from a template

  1. Find out the ID of the required template with UEFI. For example:

    # openstack --insecure image list | grep centos.qcow2
    | 007db63f-9b41-4918-b572-2c5eef4c8f4b | centos7.qcow2 | active |
    
  2. Specify the UEFI firmware for this template by using the hw_firmware_type property. For example:

    # openstack --insecure image set --property hw_firmware_type=uefi 007db63f-9b41-4918-b572-2c5eef4c8f4b
  3. Create a VM from this template in the command-line or user interface.

To create a virtual machine with UEFI boot from an ISO image

  1. Find out the ID of the required ISO image. For example:

    # openstack --insecure image list | grep centos.iso
    | c9d6f6e9-9c6d-4d1c-824f-c3542f70fdb0 | centos7.iso | active |
    
  2. Specify the UEFI firmware for this ISO image by using the hw_firmware_type property. For example:

    # openstack --insecure image set --property hw_firmware_type=uefi c9d6f6e9-9c6d-4d1c-824f-c3542f70fdb0
  3. Create a VM from this ISO image in the command-line or user interface.
  4. When the VM is launched, shut it down, and then specify the UEFI firmware for this VM's boot volume by using the hw_firmware_type property. For example, if the boot volume ID is 12d360f4-afe8-48c9-af24-7f048dcec0c9, run:

    # openstack --insecure volume set --image-property hw_firmware_type=uefi 12d360f4-afe8-48c9-af24-7f048dcec0c9
  5. Start the VM and continue the guest OS installation.