Creating virtual machines with UEFI boot
You can create virtual machines with UEFI boot from either templates (QCOW2 images) or ISO images.
Prerequisites
- You have an image uploaded to the compute cluster, as described in Preparing boot media for virtual machines.
- To create a VM with UEFI boot from a template, ensure that your QCOW2 image has UEFI boot already enabled.
- To authorize further OpenStack commands, the OpenStack command-line client must be configured, as outlined in Connecting to OpenStack command-line interface.
To create a virtual machine with UEFI boot from a template
-
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 |
-
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
- 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
-
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 |
-
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
- Create a VM from this ISO image in the command-line or user interface.
-
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
- Start the VM and continue the guest OS installation.