CentOS 7.7 环境下 PackStack 一键安装 OpenStack Train版本

CentOS 7.7 环境下 PackStack 一键安装 OpenStack Train版本

一、操作系统环境准备
#确认版本、CPU和内存
#uname -r
#grep “model name” /proc/cpuinfo
#grep “MemTotal” /proc/meminfo
#cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

#确认网卡名称
#ip addr

#设置网络信息
#nmcli connection mod ens33 connect.autoconnect yes
#nmcli connection mod ens33 ipv4.address 10.0.0.88/24
#nmcli connection mod ens33 ipv4.gateway 10.0.0.2
#nmcli connection mod ens33 ipv4.dns 10.0.0.2
#nmcli connection mod ens33 ipv4.method manual
#nmcli connection down ens33
#nmcli connection up ens33
#ip addr

#设置主机名
#hostnamectl set-hostname wdfstack
#echo “10.0.0.88 wdfstack” >> /etc/hosts

#关闭SELINUX
#setenforce 0
#vi /etc/selinux/config
SELINUX=disabled

#关闭防火墙和网络管理
#systemctl restart network
#systemctl stop firewalld.service
#systemctl disable firewalld.service
#systemctl stop NetworkManager
#systemctl disable NetworkManager

#重新启动机器
#sync
#reboot

#验证网络是否正常
#ping 10.0.0.88 -c5
#ping 10.0.0.2 -c5
#ping wdfstack -c5
#ping www.sina.com.cn -c5

#设置语言环境参数
#export LANG=en_US.utf-8
#export LC_ALL=en_US.utf-8

#刷新yum库
#yum clean all
#yum -y upgrade
#yum makecache
#yum list
#yum repolist

#安装必要常用软件包
#yum -y install vim wget ntp net-tools

#设置NTP
#vi /etc/ntp.conf
restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
server ntp5.aliyun.com iburst
#systemctl enable ntpd
#systemctl start ntpd
#date

#再次重启系统
#sync
#reboot

二、配置软件源安装软件
#cd /etc/yum.repos.d
#yum -y install epel-release
#yum -y install centos-release-openstack-train
#yum -y install python-pip
#yum -y install openstack-packstack
#sync
#reboot

三、降级leatherman版本
#yum list | grep leatherman
#yum -y downgrade leatherman
#yum list | grep leatherman

四、开始安装
#packstack --allinone
–os-neutron-ovs-bridge-mappings=extnet:br-ex
–os-neutron-ovs-bridge-interfaces=br-ex:ens33
–os-neutron-ml2-type-drivers=vxlan,flat

五、验证安装的版本
#packstack --version
packstack 15.0.0
#openstack --version
openstack 4.0.0

你可能感兴趣的:(OpenStack)