openstack 上传镜像怎么实现

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openstack 上传镜像怎么实现相关的知识,希望对你有一定的参考价值。

参考技术A 1、执行环境变量[root@qas-controller ~]# source admin-openrc.sh 2、查看openstack所以有的镜像[root@qas-controller ~]# glance image-list
+--------------------------------------+--------+
| ID | Name |
+--------------------------------------+--------+
| c2161609-843d-4878-ae37-cc9711126ce7 | cirros |
+--------------------------------------+--------+3、上传镜像[root@qas-controller ~]# glance image-create --name "centos7.1" --file CentOS-7-x86_64-GenericCloud-1503.qcow2 --disk-format qcow2 --container-format bare --visibility public --progress
[=============================>] 100%
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 9eca98f4b3ad7e6dd4390a9d181381c9 |
| container_format | bare |
| created_at | 2016-11-17T11:56:23Z |
| disk_format | qcow2 |
| id | 8c4f2a82-39b1-4f65-a59d-f0eecff96655 |
| min_disk | 0 |
| min_ram | 0 |
| name | centos7.1 |
| owner | 20b587bcfe564197bcdf48e25579fe4a |
| protected | False |
| size | 1004994560 |
| status | active |
| tags | [] |
| updated_at | 2016-11-17T11:56:38Z |
| virtual_size | None |
| visibility | public |
+------------------+--------------------------------------

4、查看上传结果

以上是关于openstack 上传镜像怎么实现的主要内容,如果未能解决你的问题,请参考以下文章

如何在openstack中创建镜像 for Juno

openstack 创建windows server 2008 镜像

openstack虚拟机内文件遭破坏的急救方案

openstack怎么制作centos7的镜像

Openstack liberty Glance上传镜像源码分析

openstack上传镜像