//生效环境变量
[root@xiandian~]#source /etc/keystone/admin-openrc.sh
//创建用户
[root@xiandian~]#openstack user create --domain xiandian --password password testuser
//修改用户状态为down
[root@xiandian~]#openstack user set --disable testuser
//查看用户的详细信息
[root@xiandian~]#openstack user show testuser
//用glance命令上传镜像
[root@xiandian~]#glance image-create --name "examimage" --disk-format "qcow2" --container-format bare --progress </opt/Centos_6.5_x86_64_XD.qcow2
//查看镜像列表
[root@xiandian~]#openstack image list
//给镜像打上标签lastone
[root@xiandian~]#openstack image set examimage --tag lastone
//查看镜像详细情况
[root@xiandian~]#openstack image show examimage
//nova命令查询默认实际配额数 instances为实际配额
[root@xiandian~]#nova quota-class-show default
//更新实际配额数为20
[root@xiandian~]#nova quota-class-update --instances 20 default
//cinder命令创建云硬盘
[root@xiandian~]#cinder create --name volumel 2
//设置云硬盘为只读模式
[root@xiandian~]#cinder readonly-mode-update volume1 True
//查看云硬盘
[root@xiandian~]#cinder show volume1
//云硬盘扩容
[root@xiandian~]#cinder extend blockvolume 5
//查看云硬盘详细信息
[root@xiandian~]#lvdisplay
```+
镜像&云硬盘
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
相关阅读更多精彩内容
- 参考文章:https://blog.csdn.net/smartdt/article/details/771973...
- grub添加Deepin ISO镜像启动菜单/etc/grub.d/40_custom 更新grub配置文件 ge...
- 最近想在Mac上装个KaliLinux,无奈虚拟机中的Windows制作启动盘实在太慢,于是想着Mac中有没有烧录...
- 转眼又是一周末尾了,我厘了一下思路,回顾本周的工作和生活,感觉还是乏善可陈,收获不多...... 周六至周二我全天...