使用PackStack安装Victoria版本的OpenStack
1. 机器配置
CPU | 内存 | 硬盘 | 操作系统 |
---|---|---|---|
8 Cores | 8G | 50G | CentOS 8.4 |
2.准备工作
设置主机名和解析
[root@localhost ~]# hostnamectl set-hostname openstack
[root@openstack ~]# echo "192.168.100.5 openstack" >> /etc/hosts
设置网络服务
CentOS8默认使用network-manager来管理网络,由于OpenStack无法和network-manager一起工作,因此需要禁用它,并安装原来的network-scripts服务
[root@openstack ~]# systemctl disable NetworkManager
[root@openstack ~]# systemctl stop NetworkManager
[root@openstack ~]# dnf install network-scripts -y # 安装后可以修改网卡配置,然后启动network服务
[root@openstack ~]# systemctl start network
[root@openstack ~]# systemctl enable network
由于我用的是CentOS 8,而现在的源是CentOS 8-Stream,导致用不了,所以我的源全部是自己重新做的:
[root@openstack ~]# cat /etc/yum.repos.d/all.repo
[baseos]
name=baseos
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/BaseOS/x86_64/os/
enable=1
gpgcheck=0
[appstream]
name=appstream
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/AppStream/x86_64/os/
enable=1
gpgcheck=0
[devel]
name=devel
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/Devel/x86_64/os/
enable=1
gpgcheck=0
[ha]
name=ha
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/HighAvailability/x86_64/os/
enable=1
gpgcheck=0
[nfv]
name=nfv
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/NFV/x86_64/os/
enable=1
gpgcheck=0
[pt]
name=powertools
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/PowerTools/x86_64/os/
enable=1
gpgcheck=0
[rt]
name=rt
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/RT/x86_64/os/
enable=1
gpgcheck=0
[extra]
name=extra
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/extras/x86_64/os/
ena