1.通过复制,为Robert用户创建凭证文件。

$ cp overcloudrc Robertrc

2.编辑Robert凭证文件。
$ vim Robertrc
...
export OS_USERNAME=Robert
export OS_PASSWORD=redhat
export OS_TENANT_NAME=Engineering

3.通过source变成Robert用户。
$ source Robertrc

4.创建资源。
$ openstack flavor create --ram 1024 --public --project-domain Engineering m1

5.下载镜像文件。
$ wget http://172.25.254.254/materials/osp-small.qcow2

6.创建镜像。
$ openstack image create --disk-format qcow2 --public --file osp-small.qcow2 web

7.创建安全组ssh。
$ openstack security group create ssh

8.创建安全组规则。
$ openstack security group rule create --dst-port 22 ssh
$ openstack security group rule create --proto icmp ssh

9.创建安全组web。
$ openstack security group create web

10.创建安全规则。
$ openstack security group rule create --dst-port 80 web

11.创建**对。
$ openstack keypair create key1 > key1.pem

12.修改**对权限。
$ chmod 600 key1.pem

OPENSTACK-210-2-创建资源(Create resources)-命令行

OPENSTACK-210-2-创建资源(Create resources)-命令行

OPENSTACK-210-2-创建资源(Create resources)-命令行

OPENSTACK-210-2-创建资源(Create resources)-命令行

OPENSTACK-210-2-创建资源(Create resources)-命令行

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2022-01-17
  • 2021-08-24
  • 2021-08-19
  • 2021-08-14
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案