GEIcloudstack
一.背景说明
GEI 私有云环境采用apache开源项目cloudstack4.0.1在centos6.3上进行搭建 和使用。现有三台戴尔机器作为云环境的服务器,三台机器的登陆用户名和密码均为root/geikrp .
IP为192.168.7.33的机器作为cloudstack的管理服务器,IP地址为192.168.7.31和192.168.7.32作为计算资源结点,Hypervisor选择为KVM。
二.Installation
(一)管理服务器上的安装步骤
1.hostname –fqdn hostname --fqdn 确定检查主机名是否符合格式要求
eg:managament1.lab.example.org 否则就操作如下
设置方法:vi /etc/hosts 最面一行添加 IP hostname 即可保存退出
2. 设置SElinux
查看selinux的值 cat /etc/selinux/enforce 会显示1
Setenforce 0 (系统重启之后该设置无效)
通过vi /etc/selinux/config --à 设置SELINUX=permissive
3.安装机器同步时钟ntp服务
yum install ntp
vi /etc/ntp.conf --à 更改Server 127.0.0.1 # local clock 去掉#
service ntpd restart
4.配置防火墙(暂且讨论禁用还是开放为好)
service iptables stop
chkconfig iptables off(永久关闭防火墙)
5.安装NFS server
yum install ntf-utils
mkdir -p /export/secondary
vi /etc/exports
添加下面的下面的一行
/export*(rw,async,no_root_squash)
exportfs -a
更改nfs的文件配置
vi /etc/sysconfig/nfs
Un-comment thefollowing lines :
MOUNTD_NFS_V3=”yes”
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020
然后设置为开机启动这些服务
chkconfig rpcbind on
chkconfig nfs on
service rpcbind start
service nfs start
7 将你下载好的cloudstack4.0.1(下载地址