LinuxCommandLibrary

glance

TLDR

List images

$ openstack image list
copy
Show image details
$ openstack image show [image-id]
copy
Upload image
$ openstack image create --file [image.qcow2] --disk-format [qcow2] [image-name]
copy
Download image
$ openstack image save --file [output.qcow2] [image-id]
copy
Delete image
$ openstack image delete [image-id]
copy
Set image property
$ openstack image set --property [key=value] [image-id]
copy

SYNOPSIS

openstack image command [options]

DESCRIPTION

Glance is the OpenStack Image Service. It provides discovery, registration, and delivery of virtual machine images. The openstack image commands interface with Glance.
Glance stores images that can be used to boot instances. It supports multiple storage backends and formats, with images shareable across projects or kept private.

PARAMETERS

list

List available images.
show image
Show image details.
create
Create new image.
delete image
Delete image.
save image
Download image to file.
set image
Update image properties.
--file path
Image file path.
--disk-format format
Disk format (raw, qcow2, vmdk, vdi, iso, ami).
--container-format format
Container format (bare, ovf, aki, ari, ami).
--property key=value
Image property.
--public / --private
Image visibility.

CAVEATS

Requires OpenStack credentials. Large images take time to upload. Image format must match hypervisor expectations. Storage quotas may apply.

HISTORY

Glance was one of the original OpenStack services, launched with Nova in the 2010 Austin release. It was named after a quick "glance" at available images, following OpenStack's nature-themed naming.

SEE ALSO

openstack(1), nova(1), qemu-img(1)

Copied to clipboard