瀏覽器建議全程使用火狐或者谷歌,不然VNC可能會有問題
一、環境准備
系統:centos7.2 x86_64 controller 2c+8g+40g 10.1.80.110 可以nat上網 compute1 2c+8g+40g 10.1.80.111 可以nat上網 neutron 2c+8g+40g 10.1.80.112 可以nat上網 cinder 2c+8g+40g 10.1.80.114 可以nat上網
二、配置主機名及hosts和防火牆(只演示一台,其他機器配置方式一樣)
vim /etc/hosts加入
10.1.80.110 controller 10.1.80.111 compute1 10.1.80.112 neutron
修改主機名
hostnamectl set-hostname controller hostnamectl set-hostname compute1 hostnamectl set-hostname neutron
關閉防火牆
systemctl stop firewalld.service systemctl disable firewalld.service
關閉網絡管理NetworkManager
systemctl stop NetworkManager.service systemctl disable NetworkManager.service
關閉selinux
vim /etc/selinux/config
SELINUX=disabled
三、時間同步配置
在所有服務器安裝chrony
yum install chrony –y
配置服務端的chrony
vi /etc/chrony.conf allow 10.1.0.0/16
其他客戶端配置
vim /etc/chrony.conf server 10.1.80.110 iburst #只保留這一行
將所有服務器時間設置成對應時區(上海為例)
timedatectl set-timezone Asia/Shanghai
將所有chrony重啟和加入開機自啟動
systemctl enable chronyd.service systemctl start chronyd.service systemctl status chronyd.service
同步時鍾(所有節點)
chronyc sources
確保所以的時間都是同步的。
使用timedatectl status查看:
[root@openstack-compute ~]# timedatectl status
四、更新yum源(所有服務器)
下載新yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
更新yum源
yum clean all yum makecache
五、安裝openstack軟件倉庫(所有服務器)
yum安裝Q版倉庫
yum install centos-release-openstack-queens -y
更新所有節點軟件包
yum upgrade -y
安裝open stack client端
yum install python-openstackclient -y
安裝open stack的selinux(如果關閉了服務器selienx可以不安)
由於我提前關閉了,所以此處我沒有安裝
yum install openstack-selinux -y