http://rdoproject.org/install/packstack/
支持RHEL及Centos等同系列linux操作系统
安装一个干净的物理机或虚拟机,以避免不可预知的错误,选择最小化安装。
安装完成后,对系统进行升级,非常关键。
整个操作在root模式。
yum -y update
更新完毕,重启系统,使生效。
修改网卡配置文件,使网卡开机自启动。
vi /etc/sysconfig/network-scripts/ifcfg-enp0s25
修改最后项onboot=yes,其他可以不变。
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s25
UUID=b84c2e39-0b5a-462f-bf19-7d1ed970d3d5
DEVICE=enp0s25
ONBOOT=yes
~
修改hosts文件
vi /etc/hosts
127.0.0.1 control-node
#127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 control-node
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Hardware
Machine with at least 16GB RAM, processors with hardware virtualization extensions, and at least one network adapter.
8G内存也可安装,如果用虚机,需要给虚机分配至少6G以上内存,速度很慢。
如果计划有个外部网络接入和访问这个服务器或实例,最好配置各静态ip,禁用NetworkManager,启用Network服务。packstack使用这个。
systemctl disable firewalld
systemctl stop firewalld
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl enable network
systemctl start network
禁用selinux
[root@bogon ~]# getenforce
Enforcing
[root@bogon ~]# vi /etc/selinux/config
SELINUX=disabled
On RHEL, download and install the RDO repository RPM to set up the OpenStack repository:
$ sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm
On CentOS, the Extras repository provides the RPM that enables the OpenStack repository. Extras is enabled by default on CentOS 7, so you can simply install the RPM to set up the OpenStack repository.
$ sudo yum install -y centos-release-openstack-queens
Update your current packages:
$ sudo yum update -y
重启下系统
注意:如果系统安装后没有及时更新系统,则会报错,需要回退最近这个源的安装,yum update后再安装源,再yum update,这是个大坑,坑我不轻。
yum install -y openstack-packstack
Packstack takes the work out of manually setting up OpenStack. For a single node OpenStack deployment, run the following command:
packstack --allinone
对于没有安装完全的错误,譬如,某个包没有正常下载安装,可再执行一次安装。但要使用第一次安装时产生的应答文件来安装,否则会造成数据库由于密码改变而无法访问。
# packtack --answer-file=packstack-answers-20180529-075406.txt