Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
Applies to SUSE OpenStack Cloud 8

10 Creating and Uploading a Glance Image Edit source

This guide will assist you in obtaining, creating, or modifying cloud images for your Image (Glance) repository and uploading them for use.

10.1 How to Curate Your Own Images Edit source

OpenStack has created a guide to show you how to obtain, create, and modify images that will be compatible with your SUSE OpenStack Cloud cloud:

OpenStack Virtual Machine Image Guide

10.2 Example: Uploading a Cirros Linux Image for Use Edit source

These steps assume you have a user account setup within Keystone that has access to upload images to the Glance repository. Contact your Administrator if you do not have these permissions or if you are unsure.

  1. Download the Cirros image from the internet:

    wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
  2. Upload that file to Glance using the GlanceClient CLI:

    glance \
      --os-username <username> \
      --os-password <password> \
      --os-tenant-name <project name> \
      --os-auth-url <identity endpoint> \
      --os-endpoint-type internalURL \
         --name cirros-0.3.3-x86_64 \
         --container-format bare \
         --disk-format qcow2 \
         --visibility public \
         --file <path to Cirros image file>

10.3 Using Horizon to Upload an Image Edit source

It is possible to use the Horizon UI to create images for use in your cloud. These steps will show you how.

To successfully create large images, select the image format first, then add image name, image source and visibility.

Performing the steps out of this order will cause OS image creation to fail.


By default, the HTTP upload option will not work when uploading images. To utilize this option you will need your cloud administrator to enable this option. See Section 15.5, “Troubleshooting the Image (Glance) Service” for more details.

  1. Log in to the Horizon UI.

  2. In the menu, select Project › Compute › Images and click the Create Image button:

  3. Fill in the details for your new image and then click the Create Image button:

Print this page