openstack 部署(Q版)-----环境准备篇

一、环境准备

系统:centos7

cinder01    内网:192.168.10.51  外网:172.16.1.51

compute01     内网:192.168.10.52  外网:172.16.1.52

controller    内网:192.168.10.53  外网:172.16.1.53

二、配置主机名及hosts和防火墙(只演示一台,其他机器配置方式一样)

vim /etc/hostname加入(其他的注释或者删除)

cinder01

vim /etc/hosts加入

172.16.1.51 cinder01

172.16.1.52 compute01

172.16.1.53 controller01

192.168.10.51 cinder01

192.168.10.52 compute01

192.168.10.53 controller01

关闭防火墙

systemctl stop firewalls.service
systemctl disable firewalls.service

关闭selinux

 vim /etc/selinux/config

SELINUX=disabled

三、时间同步配置

在所有服务器安装chrony

yum install chrony –y

 

配置服务端的chrony

vim /etc/chrony.conf

server ntp1.aliyun.com iburst
server controlelr01 iburst
allow 192.168.0.0/16

其他客户端配置

vim /etc/chrony.conf

 server controlelr01 iburst

将所有服务器时间设置成对应时区(上海为例)

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 

将所有chrony重启和加入开机自启动

systemctl enable chronyd.service
systemctl start chronyd.service

四、更新yum源(所有服务器)

备份yum源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

下载新yum源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

更新yum源

yum clean all
yum makecache
yum update

五、安装openstack软件仓库(所有服务器)

yum安装Q版仓库

yum install centos-release-openstack-queens -y

更新所有节点软件包

yum upgrade -y

安装open stack client端

yum install python-openstackclient -y

 安装open stack的selinux

yum install openstack-selinux -y

  

猜你喜欢

转载自www.cnblogs.com/xiongyoutom/p/9663607.html