在内部,镜像服务(glance)以特定格式接收镜像的位,并将位存储在临时位置。镜像服务会触发插件将镜像转换为目标格式,并将镜像移到最终目的地。任务完成后,镜像服务会删除临时位置。镜像服务不会保留最初上传的格式。
glance image-create-via-import \
--disk-format qcow2 \
--container-format bare \
--name NAME \
--visibility public \
--import-method web-download \
--uri http://server/image.qcow2
$ glance image-create-via-import \
--disk-format qcow2 \
--container-format bare \
--name NAME \
--visibility public \
--import-method web-download \
--uri http://server/image.qcow2
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow