技术张儿

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

还没有评论,来说两句吧。

发表评论

邮箱仅用于显示头像,不会公开。