Linux command
glance 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List images
openstack image list
Show image details
openstack image show [image-id]
Upload image
openstack image create --file [image.qcow2] --disk-format [qcow2] [image-name]
Download image
openstack image save --file [output.qcow2] [image-id]
Delete image
openstack image delete [image-id]
Set image property
openstack image set --property [key=value] [image-id]
说明
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.
参数
- 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.
FAQ
What is the glance command used for?
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.
How do I run a basic glance example?
Run `openstack image list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list do in glance?
List available images.