You can add virtual machine templates to your VMware Integrated OpenStack deployment as Glance images.

Prerequisites

  • Verify that the virtual machine template is located in the same vCenter Server instance as your VMware Integrated OpenStack deployment.
  • Verify that the virtual machine template does not have multiple disks, a CD-ROM drive, or a floppy drive.

Procedure

  1. Log in to the Integrated OpenStack Manager as the root user.
    ssh root@mgmt-server-ip
  2. Open the toolbox and set the password for the admin account.
    toolbox
    export OS_PASSWORD=admin-account-password
  3. Create an empty Glance image in VMDK format.
    glance image-create --name image-name --disk-format vmdk --container-format bare
  4. Add the location of the virtual machine template to the image.
    glance location-add image-uuid --url vi://vcserver-ip/datacenter-name/vm/folder-name/template-name

    You can check the VM and Templates View in the vSphere Client to confirm the location of the template.

Results

The specified virtual machine template is imported as an image. You can launch OpenStack instances from the image or configure additional settings, such as image metadata.