2.2. 上传镜像
将镜像上传到 Red Hat OpenStack Platform (RHOSP)镜像服务(glance)。
流程
使用
glance image-create命令和property选项上传镜像。例如:
glance image-create --name <NAME> \ --is-public true --disk-format qcow2 \ --container-format bare \ --file <IMAGE_FILE> \ --property <IMAGE_METADATA>$ glance image-create --name <NAME> \ --is-public true --disk-format qcow2 \ --container-format bare \ --file <IMAGE_FILE> \ --property <IMAGE_METADATA>Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
有关
glance image-create命令选项列表,请参阅 镜像服务(glance)命令选项。 - 有关属性键的列表,请参阅 镜像配置参数。
-
有关