Using a vSphere Datastore as Backing for OpenStack Glance Image Catalog

This Tutorial describes steps required for setting up a vSphere Datastore as a backing for your OpenStack Glance Image Catalog in Platform9 Managed OpenStack.

Set Up OpenStack Glance:


glance setup vmware

How it Works:

Once the initial setup is complete, all Glance operations will use the VMware datastore as the backend.

Using OpenStack Glance Command Line:

Glance command line client can be used to perform image operations to datastores. Below are few examples.

glance image-create \
[--os-region-name <region name>] \
--name cirros \
--file /path/to/image/filename.vmdk \
--container-format=bare \
--disk-format=vmdk \
--property vmware_disktype="preallocated" \
--property vmware_adaptertype="ide" \
--property pf9_virtual_size="40894464" \
--property vmware_ostype="otherGuest64" \
--property pf9_description="glance cmdline image upload"

List Images:

glance image-list

Display properties of an image:

glance image-show <image-id>

Delete image:

glance image-delete <image-id>


November 16, 2015