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

 

  

转载于:https://www.cnblogs.com/xiongyoutom/p/9663607.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值