最近上课用到了,可惜没报错,做个备忘,防止忘记
使用centos7最终版镜像
https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso
配置看自己,2C以上4G以上,4G有可能报内存不足,这个看人,装好centos后
su -
切换到root用户,要加“-”,或者右上角,注销,重新使用root登录
右上角用图形化设置好IP地址、网关、DNS
修改网卡配置文件,协议静态,开机自启
ping外网确保网络没问题
yum -y update
修改hosts文件,原先两行用#号注释,再加上
127.0.0.1 node-a
::1 node-a
systemctl disable firewalld
systemctl stop firewalld
systemctl disable NetworkManager
systemctl stop NetworkManager
改SELINUX=disabled
vim /etc/selinux/config
一句一句复制,跑完再下一句,不要全复制
reboot
sudo yum install -y centos-release-openstack-queens
sudo yum update -y
reboot
yum install -y openstack-packstack
安装一次,会报错
packstack --allinone
换源
cd /etc/yum.repos.d
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
curl -O https://trunk.rdoproject.org/centos7/delorean-deps.repo
curl -O https://trunk.rdoproject.org/centos7/current-passed-ci/delorean.repo
最后
packstack --allinone
2*2C 8G的情况下,20分钟搞定