openstack使用命令上传镜像

版权声明:转发请带出处 联系qq:1113997619 邮箱:[email protected] https://blog.csdn.net/hutiewei2008/article/details/87921936

openstack glance使用网页上传镜像,占用资源太高,这时候使用命令上传速度更快

openstack命令上传镜像:

openstack image create "cirros" \            --创建的镜像名

  --file cirros-0.3.5-x86_64-disk.img \      --创建镜像所需文件,当前目录,或带文件位置

  --disk-format qcow2 \                            --镜像格式 qcow2

  --container-format bare \                       --图片的容器格式 bare

  --public                                                  --共享此镜像,所有用户可见

命令:

openstack image create "cirros"   --file cirros-0.3.5-x86_64-disk.img  --disk-format qcow2 --container-format bare  --public

猜你喜欢

转载自blog.csdn.net/hutiewei2008/article/details/87921936
今日推荐