openstack中怎么导出image镜像

openstack中怎么导出image镜像

这篇文章给大家介绍 openstack中怎么导出image镜像,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

1、查询环境中的镜像

方法一:

[root@controller httpd]# glance image-list
openstack中怎么导出image镜像

环境中一个有两个镜像本次导出instance。

2、执行导出命令

方法一:

openstack中怎么导出image镜像

命令解释:/root/wuyeliang.img为导出后的镜像存放路径及名称,789eb102-031b-4559-a00e-eeeb3272c37c为需要导出镜像的ID

3、镜像上传

glance image-create --name  Ubuntu-Server-14.04.5-amd64-docker-php-image --file Ubuntu-Server-14.04.5-amd64-docker-php.img --disk-format qcow2 --container-format bare --progress

关于 openstack中怎么导出image镜像就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。