1) OpenStack command to upload image to glance
openstack image create --public --disk-format qcow2 --container-format bare \
--file <qcow2-file> <image-name>
openstack image create --public --disk-format qcow2 --container-format bare \
--file CentOS-7.7-x86_64-GenericCloud-1908.qcow2 \
CentOS-7.7-x86_64-GenericCloud-1908
2) OpenStack command to download image from glance registry.
openstack image save --file <file-name> <image-id>
openstack image save --file CentOS-7.9-custom.qcow2 f73ebc8f-cc4c-46a3-969e-f85c619fe73
3) OpenStack command to list tenant instance.
openstack server list
4) OpenStack command to list instances from all tenant (use admin RC file).
openstack server list --all5) OpenStack command to list instances ID from all tenant (use admin RC file).
openstack server list --all -c ID
No comments:
Post a Comment