一.1.1.6 Glance安装与使用
#答案←
[root@controller~]# openstack-controller-glance.sh
[root@controller~]# source /root/admin-openrc
[root@controller~]# openstack image create --container-format bare --disk-format qcow 2 --public --file cirros-0.3.4-x86_64-disk.img --min-disk 10 --min-ram 1024 cirros
返回
[root@controller ~]# source /root/admin-openrc && openstack-service status glance && openstack image show cirros | sed s/[[:space:]]//g
MainPID=30111 Id=openstack-glance-api.service ActiveState=active
MainPID=30112 Id=openstack-glance-registry.service ActiveState=active
+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|Field|Value|
+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|checksum|ee1eca47dc88f4879d8a229cc70a07c6|
|container_format|bare|
|created_at|2024-09-27T02:44:45Z|
|disk_format|qcow2|
|file|/v2/images/1d55d62f-035c-48b0-aee7-f76722ff2ca1/file|
|id|1d55d62f-035c-48b0-aee7-f76722ff2ca1|
|min_disk|10|
|min_ram|1024|
|name|cirros|
|owner|20bf3cdb7dd34d488e01571606bc66e9|
|properties|os_hash_algo='sha512',os_hash_value='1b03ca1bc3fafe448b90583c12f367949f8b0e665685979d95b004e48574b953316799e23240f4f739d1b5eb4c4ca24d38fdc6f4f9d8247a2bc64db25d6bbdb2',os_hidden='False'|
|protected|False|
|schema|/v2/schemas/image|
|size|13287936|
|status|active|
|tags||
|updated_at|2024-09-27T02:44:45Z|
|virtual_size|None|
|visibility|public|
+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- 点赞
- 收藏
- 关注作者
评论(0)