系統:centos7 x86_64
controller 2c+6g+40g 192.168.147.50 可以nat上網
compute 1c+4g+40g 192.168.147.60 可以nat上網
neutron 1c+2g+20g 192.168.147.70 可以nat上網
關閉selinux:
sudo setenforce 0 && sudo sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config && sestatus
關團防火牆
systemctl stop firewalld.service
systemctl disable firewalld.service
配置hostname:
vim /etc/hosts
192.168.72.50 openstack-controller openstack-controller.com
192.168.72.60 openstack-compute openstack-compute.com
192.168.72.70 openstack-neutron openstack-neutron.com
重啓並配置網關
reboot
echo "nameserver 192.168.72.2" > /etc/resolv.conf
安裝
所有節點 -基礎軟件包:
yum install openssl openssl-devel net-tools vim wget -y
時間同步:
Controller節點:
yum install chrony -y
vim /etc/chrony.conf
加入:
server time.windows.com iburst
allow 192.168.72.0/24
啓動服務:
systemctl enable chronyd.service
systemctl start chronyd.service
其他節點:
yum install chrony -y
vim /etc/chrony.conf
加入:
server time.windows.com iburst
server 192.168.72.50 iburst
啓動服務:
systemctl enable chronyd.service
systemctl start chronyd.service
所有節點:
同步時鐘:
chronyc sources
確保所以的時間都是同步的。
使用timedatectl status查看:
[root@openstack-compute ~]#
timedatectl status
Local time: 一 2018-03-12 23:14:13 CST
Universal time: 一 2018-03-12 15:14:13 UTC
RTC time: 一 2018-03-12 15:14:13
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
所有節點:安裝openstack的yum 源:
yum install centos-release-openstack-queens -y
yum upgrade -y
yum install python-openstackclient -y
如果系統關閉了selinux可以不用安裝這個包:
yum install openstack-selinux -y
未完待續