You can make images available for use in instances by importing images to the Image Service datastore.


  • Verify that you configured one or more Image Service datastores.

  • Obtain the image, for example, ubuntuLTS-sparse.vmdk.


  1. Using SSH, log into the OpenStack management cluster as a user with administrative privileges to upload the image to the Image Service component.
  2. Switch to root user.
    sudo su -
  3. Execute the cloudadmin.rc file.
    $ source ~/cloudadmin.rc
  4. Run the openstack image create command to obtain, define, and import the image.
    $ openstack image create \
      --disk-format vmdk \
      --container-format bare \
      --file ubuntuLTS-sparse.vmdk \
      --public \
      --property vmware_adaptertype="lsiLogicsas" \
      --property vmware_disktype="sparse" \
      --property vmware_ostype="ubuntu64Guest" \

    This example uses the following parameters and settings.

    Parameter or Setting



    The name of the source image, in this case, ubuntu-sparse.

    --disk-format vmdk

    The disk format of the source image. You can specify iso or vmdk.

    For images in other formats, including OVA, RAW, QCOW2, VDI, or VHD, use vmdk as the disk format.

    --container-format bare

    The container format string is not currently used by Glance. Specify bare for this parameter.

    --file ubuntuLTS-sparse.vmdk

    The image to upload.


    The privacy setting for the image in OpenStack. When set to --public, the image is available to all users. When set to --private, the image is available only to the current user.

    --property vmware_adaptertype="lsiLogicsas"

    During import, the VMDK disk is introspected to capture its adapter type property.

    You also have the option of using the vmware_adaptertype to specify adapter type.


    If you are using a disk with the paraVirtual or LSI Logic SAS adapter type, use this parameter. For example, vmware_adaptertype= lsiLogicsas or vmware_adaptertype= paraVirtual.

    --property vmware_disktype="sparse"

    During import, the VMDK disk type is introspected to capture its disk type property.

    You also have the option of specifying disk type using the vmware_disktype property.


    This disk type property applies to monolithic sparse disks.


    This disk type property applies to VMFS flat disks, including thick, zeroedthick, or eagerzeroedthick. Default property if none is specified.


    This disk type property applies to Monolithic Sparse disks, optimized for streaming. You can convert disks dynamically to and from this format with minimal computational costs.

    --property vmware_ostype="ubuntu64Guest"

    The name of the image file after it is imported to the Image Service. In the example above, the resulting name is ubuntuLTS-sparse.vmdk.

  5. (Optional) Confirm that the image was successfully imported.
    $ openstack image list

    The command returns a list of all images that are available in the Image Service.