This document provides an overview of the image management capabilities using the OpenStack CLI.

Available Images

To list all available images:

openstack image list

To see community images (older image versions):

openstack image list --community

Uploading a Custom Image

To upload a custom image (e.g., Ubuntu 24.04):

openstack image create "Ubuntu-24.04-Custom" \
  --file ubuntu-24.04.qcow2 \
  --disk-format qcow2 \
  --container-format bare \

Sharing Images

To share an image with another project:

  1. Get the project ID you want to share with.
  2. Add the project as a member of the image:
openstack image add project <image-id> <project-id>
  1. The receiving project needs to accept the image:
openstack image set --accept <image-id>

Creating a Snapshot

To create an image from an existing instance:

openstack server image create --name <snapshot-name> <server-name>

Image Lifecycle Management

To delete an image:

openstack image delete <image-id>