Populate OpenStack Glance Image Catalog for VMware vSphere

There are two types of images supported with Platform9’s Managed OpenStack for VMware vSphere. You can use:

  1. VM Templates (automatically discovered from paired datastores)
  2. VMDK files (must be uploaded to the Glance image catalog using Glance API/CLI)

Using VM Templates

Using VMware templates for your images in Platform9 OpenStack image catalog is the easiest and most performant way of launching instances using Platform9, since templates are directly cloned at the vSphere layer, without involving overhead of extra copies via OpenStack Glance.

To achieve this:

  1. Copy over any existing vSphere templates to one of the datastores paired with Platform9 Managed OpenStack compute.
  2. Once you do this, Platform9 template discovery will run within next 10 minutes (periodic intervals), and will discover and report these templates to the Glance service for use as OpenStack images.
  3. The templates will then appear in your Glance image catalog and can be viewed in the Images menu of Platform9 UI/queries via Glance API.
  4. If you’d like to trigger the template discovery immediately after copying templates to the datastores, this can be done by going to the “Manage VMware Gateway” page, and clicking on the “Refresh” icon, as shown in the screenshot below:

RefreshVMW

NOTES:

  1. It is a good practice to clear out existing NICs and CD-ROM drives attached to the template before using it as an OpenStack image, since the instance provisioning flow will attach its own networks, and also drives to pass in cloud-init metadata.
  2. The configuration for the template in terms of CPU, memory, disk size will be overridden based on the flavor chosen during instance provisioning.
  3. It is also recommended that templates have only one disk attached to them – this will get resized as needed, based on the flavor chosen during provisioning.

Using VMDK Files

Unlike templates, Platform9 does not currently automatically discover VMDK files from the paired datastores. You need to upload vmdk files to the Glance Image catalog via the Glance APIs. More details can be found in the support article on VMware Glance datastore support:

VMware Glance Datastore Support

The browser you are using is outdated. For the best experience please download or update your browser to one of the following:

Leaving VMware? Get the VMware alternatives guideDownload Now