Base
虚拟机的网卡配置:(连接互联网,下载需要的rpm包)
eth0:桥接网络 192.168.0.10/根据自己的电脑的实际情况进行设置
ip:192.168.0.110
netmask:255.255.255.0
gateway:192.168.0.1
nds1:211.167.230.200
nds2:211.167.230.100
eth1:10.0.0.1/24 management network
eth2:10.0.1.1/24 tunnel network
eth3:192.168.0.1/24 external network
controller:
eth0:192.168.0.10
eth1:10.0.0.10/management network
eth2:不启用
eth3不启用
network :
eth0:192.168.0.20
eth1:10.0.0.20/management network
eht2:10.0.1.20 /tunnel network
eth3:不启用 //用于连接网桥
compute
eth0:192.168.0.30
eth1:10.0.0.30/management network
eth2:10.0.1.30/tunnel network
eth3 不
其中 virtualbox net1:桥接
net2:host-only
net3:host-only
net4:host-only
这里遇到的问题,可能ping不同外网
route -n 查看默认网关 若不是第一个net1的网关,删除重新加入net1的默认网关即可。
iptables 和selinux都关掉
或者是清空iptables 规则 重启iptables 服务;关闭window防火墙
准备克隆三台虚拟机:
前提准备:
删除每个网卡的UUID和HWADDR
克隆完成后无法进项网络启动?在科隆的虚拟机中,删除 /etc/udev/rules/ 70-persistent-net.rules
重新启动各台虚拟机,各个网卡就会正常启动。
安装ntp服务
controller:
yum install -y ntp
vim /etc/ntp.conf
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server 127.127.1.0
fudge 127.127.1.0 stratum 10
service ntpd restart
chkconfig ntpd on
network和compute节点
yum install -y ntp
vim /etc/ntp.conf
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server 10.0.0.10
fudge 10.0.0.10 stratum 10
service ntpd restart
ntpdate -u 10.0.0.10
ntpq -p
chkconfig ntpd on
MySQL的安装:
controller:
yum install mysql mysql-server MySQL-python
vim /etc/my.cnf
[mysqld]
bind-address = 10.0.0.10
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = ‘SET NAMES utf8‘
character-set-server = utf8
service mysqld restart
chkconfig mysqld on
mysql_secure_installation(如果这个命令不能执行成功,首先执行mysql_install_db)
设置root密码:openstack
删除匿名用户
允许root用户远程登录
不删除test数据库
重新加载权限列表
完成.
network and compute:
yum install -y MySQL_python
配置openstack的rdo源和centos扩展的epel源
controller、network、compute:
yum install yum-plugin-priorities -y
yum install http://repos.fedorapeople.org/repos/openstack/openstack-\
icehouse/rdo-release-icehouse-3.noarch.rpm -y
验证可以使用rdo源
yum install -y openstack-utils
yum install -y openstack-selinux
yum upgrade
reboot
安装message-server
controller:
yum install -y qpid-cpp-server
vim /etc/qpidd.conf
auth=no
service qpidd restart
chkconfig qpidd on
到此基本环境安装完成,开始安装openstack组件。
本文出自 “gaogaozi” 博客,请务必保留此出处http://hangtiangazi.blog.51cto.com/8584103/1671817
原文地址:http://hangtiangazi.blog.51cto.com/8584103/1671817