OpenStack导出镜像

  • 内容
  • 相关


glance导出
[root@controller ~]# glance image-list
+--------------------------------------+-------------+
| ID                                   | Name        |
+--------------------------------------+-------------+
| 37d42e31-9d2d-4500-ac56-4bc0a5155046 | CentOS-1810 |
| 28125d2b-b05a-4d10-ac10-0b0417303963 | cirros      |
+--------------------------------------+-------------+
[root@controller ~]# glance image-download --file /root/cirros.qcow2 28125d2b-b05a-4d10-ac10-0b0417303963
[root@controller ~]# ll /root/cirros.qcow2 
-rw-r--r-- 1 root root 12716032 Jun  8 23:16 cirros.qcow2


ceph存储rbd导出,找到images镜像池导出对应的镜像
[root@controller ~]# rbd export images/28125d2b-b05a-4d10-ac10-0b0417303963 /root/cirros-rbd.qcow2
Exporting image: 100% complete...done.         
[root@controller ~]# ll /root/cirros-rbd.qcow2 
-rw-r--r-- 1 root root 12716032 Jun  8 23:18 /root/cirros-rbd.qcow2



本文标签:

版权声明:若无特殊注明,本文皆为《技术张儿》原创,转载请保留文章出处。

本文链接:OpenStack导出镜像 - http://poweroff.cn/openstack/391.html