Skip to main content

Overview

The openstack image command group manages the full lifecycle of VM images — uploading, downloading, sharing across projects, and managing properties.
Prerequisites
  • CLI installed and authenticated — see CLI Setup
  • Python glanceclient installed: pip install python-glanceclient

List and Inspect

openstack image list
openstack image list --status active
openstack image list --public
openstack image list --private
openstack image list --shared

Upload Images

openstack image create \
  --container-format bare \
  --disk-format qcow2 \
  --file ubuntu-22.04.qcow2 \
  --public \
  Ubuntu-22.04

Download Images

Download image to file
openstack image save --file ubuntu-22.04.qcow2 <image>

Set Properties

openstack image set --public <image>
openstack image set --private <image>
openstack image set --shared <image>
openstack image set --community <image>

Share Images

openstack image add project <image> <project-id>

Delete

Delete image
openstack image delete <image>
Delete multiple images
openstack image delete <image1> <image2>

Next Steps

Upload Image Guide

Detailed guide for preparing and uploading images

Compute CLI

Launch instances from uploaded images