admin管理员组文章数量:1130349
$ . admin-openrc.sh
上传镜像
Linux镜像上传命令
glance image-create --disk-format=qcow2 --container-format=bare --visibility=public --file <镜像文件全路径> --name <镜像名称> --property hw_scsi_model=virtio-scsi --property hw_qemu_guest_agent=yes --property os_require_quiesce=yes --property os_admin_user=root
Windows镜像上传命令>glance image-create --disk-format=qcow2 --container-format=bare --visibility=public --file <镜像文件全路径> --name <镜像名称> --property hw_scsi_model=virtio-scsi --property hw_qemu_guest_agent=yes --property os_require_quiesce=yes --property os_admin_user=Administrator --property os_type=windows
[root@********]<font color=red># glance image-create --disk-format=qcow2 --container-format=bare --visibility=public --file /root/images/Windows-2012R2.qcow2 --name Windows-2012R2.qcow2 --property hw_qemu_guest_agent=yes --property os_require_quiesce=yes --property os_admin_user=Administrator --property os_type=windows
下载镜像 首先在control01的物理节点上获取用户操作权限,然后运行命令查询和下载镜像:
查询镜像命令
glance image-list
下载镜像命令
glance image-download --file <存放的文件路径和名称> <uuid>
[root@contrl01 msp]<font color=red>#glance image-download --file /root/images/Windows-2012R2.qcow2 1db854f6-88a9-4086-bd36-6ee083340665
$ . admin-openrc.sh
上传镜像
Linux镜像上传命令
glance image-create --disk-format=qcow2 --container-format=bare --visibility=public --file <镜像文件全路径> --name <镜像名称> --property hw_scsi_model=virtio-scsi --property hw_qemu_guest_agent=yes --property os_require_quiesce=yes --property os_admin_user=root
Windows镜像上传命令>glance image-create --disk-format=qcow2 --container-format=bare --visibility=public --file <镜像文件全路径> --name <镜像名称> --property hw_scsi_model=virtio-scsi --property hw_qemu_guest_agent=yes --property os_require_quiesce=yes --property os_admin_user=Administrator --property os_type=windows
[root@********]<font color=red># glance image-create --disk-format=qcow2 --container-format=bare --visibility=public --file /root/images/Windows-2012R2.qcow2 --name Windows-2012R2.qcow2 --property hw_qemu_guest_agent=yes --property os_require_quiesce=yes --property os_admin_user=Administrator --property os_type=windows
下载镜像 首先在control01的物理节点上获取用户操作权限,然后运行命令查询和下载镜像:
查询镜像命令
glance image-list
下载镜像命令
glance image-download --file <存放的文件路径和名称> <uuid>
[root@contrl01 msp]<font color=red>#glance image-download --file /root/images/Windows-2012R2.qcow2 1db854f6-88a9-4086-bd36-6ee083340665
版权声明:本文标题:openstack 镜像上传和下载 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754952801a2746529.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论