51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

CentOS 7.9安装OpenStack(Shell)

1、查看OpenStack部署脚本安装提示

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh install

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh create

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh add

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh del

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh mount

2、安装OpenStack

Tips:这里选择的网络模式Self-Service

1)安装Controller

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh install controller 192.168.3.201 192.168.3.202 selfservice

2)安装Compute1

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh install compute1 192.168.3.202 192.168.3.199 selfservice

3)安装Compute2

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh install compute2 192.168.3.201 192.168.3.199 selfservice

4)安装Cinder-Node存储节点

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh install cinder 192.168.3.199 /dev/sdb

5)查看安装结果

[root@localhost ~]# source /etc/profile.d/openstack-admin.sh

查看计算节点

[root@localhost ~]# openstack compute service list

查看存储节点

[root@localhost ~]# openstack volume service list

6)登录Dashboard

7)创建实例

创建实例

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh create m1.nano cirros provider-net selfservice-net selfservice-group ssh-key selfservice-instance-vm1

查看实例列表

[root@localhost ~]# openstack server list

访问实例

8)添加实例

创建实例(Provider网络)

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh add m1.nano cirros provider-net provider-group ssh-key provider-instance-vm1

创建实例指定分配IP(Provider网络)

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh add m1.nano cirros provider-net,192.168.3.188 provider-group ssh-key provider-instance-vm2

查看实例列表

[root@localhost ~]# openstack server list

创建实例(Self-Service网络)

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh add m1.nano cirros selfservice-net selfservice-group ssh-key selfservice-instance-vm2

创建实例指定分配IP(Self-Service网络)

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh add m1.nano cirros selfservice-net,172.16.1.188 selfservice-group ssh-key selfservice-instance-vm3

查看实例列表

[root@localhost ~]# openstack server list

9)访问实例

provider-instance-vm1

provider-instance-vm2

selfservice-instance-vm1

selfservice-instance-vm2

selfservice-instance-vm3

10)挂载卷

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh mount volume1 5 provider-instance-vm1

[root@localhost ~]# openstack volume list

挂载使用卷

[root@localhost ~]# ssh cirros@192.168.3.12

$ sudo su -

fdisk -l

mkdir -p /data/volume

mkfs.ext4 /dev/vdb

mount /dev/vdb /data/volume/

df -Th

11)删除实例

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh del selfservice-instance-vm1

[root@localhost ~]# openstack server list

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh del selfservice-instance-vm2 selfservice-instance-vm3

[root@localhost ~]# openstack server list

[root@localhost ~]# bash manage_openstack_rocky_for_centos7.sh del provider-instance-vm1 provider-instance-vm2

[root@localhost ~]# openstack server list

CentOS 7.9安装OpenStack(Shell)
继续阅读

历史上的今天

1 月
18

赞(0)
未经允许不得转载:工具盒子 » CentOS 7.9安装OpenStack(Shell)