Managing Images using the CLI
Tip
Reading Command Line Interface (CLI) is highly recommended before continuing on the following sections.
Uploading an Image
After configuring the environment variables using The OpenStack RC Script, run the following command:
openstack image create --file <file> --disk-format <format> <image-name>
Provide the path to and the name of your image file in your local file system as the value of the file parameter. Also, indicate the image format using the format switch, such as QCOW2. Finally, name your image via the image-name switch.
Downloading an Image
Downloading an image file to your local machine is only available via the CLI. You may find it useful when transferring images from one Chameleon site to another. To download an image file, run the following command:
openstack image save --file <filename> <image>
Use filename to indicate where you would like to save the image in your local file system. Also, replace image with either the name or the ID of the image on Chameleon.
Important
If you do not provide the --file parameter, it will print out the binary image data in your terminal.
Retrieving Images
You may list all images of your project by typing:
openstack image list
Optionally, you may add filters to the list, such as --shared to only display the images shared within your project. Use openstack image list --help to see all the available filters.
Viewing Image Details
You may view details of an image with the command:
openstack image show <image>
Replace image with either an image name or it’s UUID.
Editing an Image
You may edit an image using the command:
openstack image set <image> ...
Replace image with either an image name or it’s UUID. You must provide additional flags to update an image. Use openstack image set --help to see all the options.