On this page
Managing Images with CLI
This document provides an overview of the image management capabilities using the OpenStack CLI.
Available Images
To list all available images:
openstack image listTo see community images (older image versions):
openstack image list --communityUploading 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:
- Get the project ID you want to share with.
- Add the project as a member of the image:
openstack image add project <image-id> <project-id>- 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>