你好,游客 登录 注册 搜索
背景:
阅读新闻

CentOS 6.5 安装CloudStack 4.3

[日期:2014-06-05] 来源:Linux社区  作者:Linux [字体: ]

CentOS 部署CloudStack 4.3 其实在官方文档上有说明(http://www.imycloud.com/CSInstallation/index.html#document-qig),但是安装官方说明,发现有两个坑,整理了部署方式

CloudStack编译环境XenServer启动系统虚拟机失败 http://www.linuxidc.com/Linux/2013-08/88694.htm

CloudStack 4.0.2 vRouter导致重启后状态不正常 http://www.linuxidc.com/Linux/2013-08/88474.htm

CloudStack部署手册 PDF清晰版 http://www.linuxidc.com/Linux/2013-06/86114.htm

CloudStack 4.0 + KVM 安装详细指南 http://www.linuxidc.com/Linux/2013-06/85750.htm

安装部署CloudStack 4.0企业私有云平台 http://www.linuxidc.com/Linux/2013-06/85748.htm

CloudStack安装部署与常见问题解决 http://www.linuxidc.com/Linux/2013-06/85746.htm

 CloudStack Server 和KVM 主机都设置为静态Ip,这个不再描述

HostName
1、 hostname --fqdn

如果显示不正确,修改/etc/hosts文件 (修改主机名为cloudstack.test.cn)

SELinux
1、 setenforce 0

2、修改/etc/selinux/config 文件

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

NTP
1、

yum -y install ntp2、

# chkconfig ntpd on
# service ntpd start

配置CloudStack 源
1、增加文件/etc/yum.repos.d/cloudstack.repo

 

[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/rhel/4.3/
enabled=1
gpgcheck=0

NFS
1、

yum install nfs-utils

2、vi /etc/exports

 

/secondary *(rw,async,no_root_squash)
/primary *(rw,async,no_root_squash)3、

# mkdir /primary
# mkdir /secondary

4、CentOS 6.x releases use NFSv4 by default. NFSv4 requires that domain setting matches on all clients. In our case, thedomain is cloud.priv, so ensure that the domain setting in /etc/idmapd.conf is uncommented and set as follows:Domain = cloud.priv

5、vi /etc/sysconfig/nfs

LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=20206、关闭防火墙

service iptables stop

7、

# service rpcbind start
# service nfs start
# chkconfig rpcbind on
# chkconfig nfs on

安装配置CloudStack ManageMent

1、yum -y install mysql-server

2、vi /etc/my.cnf 在mysqld部分添加

innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'3、

# service mysqld start
# chkconfig mysqld on4、yum install cloudstack-management

5、初始化数据库

cloudstack-setup-databases cloud:password@localhost --deploy-as=root:password
6、cloudstack-setup-management7、准备系统模板

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m \
/secondary -u http://jenkins.buildacloud.org/view/4.3/job/cloudstack-4.3-systemvm/lastSuccessfulBuild/artifact/tools/appliance/dist/systemvmtemplate-2014-04-14-master-kvm.qcow2.bz2 \
-h kvm -F

CloudStack 的详细介绍请点这里
CloudStack 的下载地址请点这里

本文永久更新链接地址http://www.linuxidc.com/Linux/2014-06/102736.htm

linux
相关资讯       CloudStack 4.3 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款