Creating virtual machines with UEFI boot

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

Creating a virtual machine with UEFI boot from a template

To create a VM with UEFI boot from a template, your QCOW2 image must have UEFI boot already enabled.

  1. Connect to the OpenStack command-line interface to authorize further openstack commands (refer to Connecting to OpenStack command-line interface):

    # kolla-ansible post-deploy
    # source /etc/kolla/admin-openrc.sh
    
  2. 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 |
    
  3. 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
  4. Create a VM from this template in the command-line or user interface.

Creating a virtual machine with UEFI boot from an ISO image

  1. Connect to the OpenStack command-line interface to authorize further openstack commands (refer to Connecting to OpenStack command-line interface):

    # kolla-ansible post-deploy
    # source /etc/kolla/admin-openrc.sh
    
  2. 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 |
    
  3. 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
  4. Create a VM from this ISO image in the command-line or user interface.
  5. 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
  6. Start the VM and continue the guest OS installation.