Export a Red Hat Enterprise Virtualization Virtual Machine Disk to Red Hat Enterprise Linux OpenStack Platform
OVERVIEW
OpenStack Image Service (Glance) provides a selection of virtual machine images. These images can be imported into the Red Hat Enterprise Virtualization Manager and used as floating disks or attached to virtual machines and converted into templates. The current integration also allows you to export a virtual machine disk to the Image Service as a virtual machine disk image. The Image Service is added to the Red Hat Enterprise Virtualization Manager as an external provider. The Image Service appears in the Administration Portal as an Image domain under the Storage tab.
This procedure assumes that you have set up an Image Service in your OpenStack environment, and that you have added the Image Service as an external provider in your Red Hat Enterprise Virtualization environment. For instructions on adding an external provider, see Adding an OpenStack Image Service (Glance) Instance for Image Management in the Red Hat Enterprise Virtualization Administration Guide.
Note: Virtual machine disks can only be exported if they do not have multiple volumes, are not thinly provisioned, and do not have any snapshots.
EXPORT A VIRTUAL MACHINE DISK TO THE IMAGE SERVER
- Log in to the Administration Portal of the Red Hat Enterprise Virtualization Manager.
- Click the Disks tab and select a virtual machine disk.
- Click Export.
- In the Export Image(s) window, select the Image Server from the Domain Name list.
- Select a quota for the disk, if a quota is to be applied, from the Quota list.
- Click OK.
The virtual machine image appears in the Disks lists with a status of Image Locked while it is exported. Depending on the size of the virtual machine hard disk images and the storage hardware, the export process can take up to an hour. When the export is complete, select the Image Server from the Storage tab, and confirm that the virtual machine disk image appears on the Images sub-tab.
UPLOAD THE DISK IMAGE TO OPENSTACK
- Log in the OpenStack Dashboard.
- Click Project > Compute > Images.
- Select the virtual machine disk image from the list.
- Click Launch.
- In the Launch Instance window, set the appropriate values for the instance.
- Click Launch.
The new instance starts on a compute node. The Instances tab displays the instance's name, its private and public IP addresses, size, status, task, and power state. For detailed information on launching an instance from an image, including an explanation of values in the Launch Instance window, see Launch a Red Hat Enterprise Linux 7 instance in OpenStack.
Comments