glance上传镜像

本文介绍了如何使用Glance命令行工具上传不同操作系统的镜像到OpenStack环境中,并设置了镜像的各种属性,如可见性、操作系统类型等。
glance image-create --name "centos68-test" --file centos68.dsk \
--disk-format raw --container-format bare --visibility public --progress \
--property hw_qemu_guest_agent=yes  \
--property os_type="linux"  \
--property hw_vif_model='e1000'  \
--property hw_vif_multiqueue_enabled='true'
 
glance image-create --name "Ubuntu1404-Server" --file unubtu1404.raw \
--disk-format raw --container-format bare  --progress \
--property hw_qemu_guest_agent=yes --property os_type="linux"
 
glance image-create --name "Windows2008SP2" --file win2k8r2.qcow2 \
--disk-format raw --container-format bare --progress \
--property hw_qemu_guest_agent=yes --property os_type="windows"
 
glance image-update --name <NAME> <IMAGE_ID>
glance image-update f9955670-729c-4826-bc4f-40576443de68 --visibility public
glance image-update fd193241-4c31-4a03-a336-86d1814b7a1c --property hw_vif_model='virtio'

 

posted on 2018-08-21 15:30  gushiren 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/gushiren/p/9511622.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值