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

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值