在CentOS下部署Openstack-前期环境准备

先打开BIOS虚拟化!!!

禁用NetworkManager服务

1
2
service NetworkManager stop
chkconfig NetworkManager off

关闭selinux

1
setenforce 0

或者

1
vim etc/selinux/config

修改SELINUX=disabled。

关闭防火墙

1
service iptables stop

安装NTP时间同步(集群需要)

1
yum install -y ntp

修改配置文件在# Hosts on local network are less restricted添加:
restrict 113.55.112.0 mask 255.255.255.0 nomodify notrap
并去掉以下两行前的注释:

1
2
server 127.127.1.0 
fudge 127.12.1.0 stratum 10

之后执行:

1
2
service ntpd start
chkconfig ntpd on

openstack

配置Icehouse和epel网络源

1
yum install –y http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-3.noarch.rpm http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

安装Openstack工具并更新系统

1
yum install -y openstack-utils openstack-selinux

配置hosts记录(确保可以互相ping通)

将计算机节点的ip地址和主机名加入到hosts文件中:

1
2
192.168.1.11 controlle
192.168.1.31 compute1

安装常用工具

1
yum install –y python-pip gcc gcc-c++ make libtool patch automake python-devel libxslt-devel MySQL-python openssl-devel libudev-devel git wget libvirt-python libvirt qemu-kvm gedit python-numdisplay device-mapper bridge-utils libffi-devel libffi lrzsz

本文作者:Qiu Qingyu
版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 CN许可协议。转载请注明出处!
本文永久链接:http://qiuqingyu.cn/2015/12/12/在CentOS下部署Openstack-前期环境准备/