Openstack-glance-neutron命令行操作
实验需求:
- 使用命令行上传cirros镜像,名称为cloud-test,镜像使用的根目录为1G,格式为qcow2,要求云平台所有用户均可以使用该镜像,使用web界面进行验证;
镜像下载地址为http://10.100.140.21/cirros.img - 给user1这个用户创建安全组,安全组的名字为security_group1,描述信息为Jx1802,该安全组允许所有人访问它的80端口,使用web界面进行验证
- 给user1这个用户创建两个网络,分别命名为Jx_private和Jx_public
- 创建一个名为flavor_Jx的规格,该规格可以使用1个CPU512MB内存
实验步骤:
- glance image-create --name test-cloud --disk-format qcow2 --min-disk 1 --file /root/Desktop/cirros.img --is-public True --container-format bare
- neutron security-group-create security_group1 --description JX1801
- neutron net-create JX_private
- neutron net-create JX_public
- nova flavor-create flavor_JX auto 512 1 1
实验结果: