cloudstack安装部署与常见问题解决

本文详细介绍了CloudStack的安装过程,包括设置安全项Selinux、制作yum安装镜像、管理服务器安装、配置DNS服务、安装MySql数据库、部署NFS共享以及准备系统虚拟机模板。针对CloudStack在单一管理服务器和MySQL同一主机的情况进行了说明,同时也提到NFS服务器的配置选项。后续还将继续分享安装完成后的使用经验。
摘要由CSDN通过智能技术生成

CloudStack的安装<注意:在装系统Centos6.3的时候一定要选择最小化安装>

0.      设置安全项Selinux

[root@cloudstack yum.repos.d]# vi /etc/sysconfig/selinux

 

 

# 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

 

重启服务器

 

1.      制作yum安装镜像

[root@cloudstackms yum.repos.d]# pwd

/etc/yum.repos.d

[root@cloudstackms yum.repos.d]# vi cloudstack.repo

[cloudstack]

name=cloudstack

baseurl=http://cloudstack.apt-get.eu/rhel/4.0/

enabled=1

gpgcheck=0

2.      管理服务器的安装Management Server,我们的安装情况是管理服务器和mysql安装在同一台机子上面,且只安装一个管理服务节点。

2.1    安装之前的准备

1.       以root用户登录

2.       检查一个合格的主机名

Hostname –fqdn

应该是形如:management.lab.example.org形式的,如果不是请修改/etc/hosts文件,我的修改完之后的hostname为:cloudstackms.houqd.pub

3.       确保机器可以连上Internet,ping www.cloudstack.org

4.       安装时间同步的NTP服务器

Yum install ntp

 

 

2.2    安装Management Server

1.       Yum install cloud-client,回自动安装相应的依赖包

[root@coms-cluster etc]# yum install cloud-client

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package cloud-client.x86_64 0:4.0.2-1.el6 will be installed

--> Processing Dependency: cloud-client-ui = 4.0.2 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: cloud-server = 4.0.2 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: cloud-utils = 4.0.2 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: cloud-python = 4.0.2 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: cloud-setup = 4.0.2 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: cloud-deps = 4.0.2 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: cloud-aws-api = 4.0.2 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: cloud-scripts = 4.0.2 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: java >= 1.6.0 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: jpackage-utils for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: tomcat6 for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: python-paramiko for package: cloud-client-4.0.2-1.el6.x86_64

--> Processing Dependency: ws-commons-util for package: cloud-client-4.0.2-1.el6.x86_64

--> Running transaction check

---> Package cloud-aws-api.x86_64 0:4.0.2-1.el6 will be installed

--> Processing Dependency: jakarta-commons-lang for package: cloud-aws-api-4.0.2-1.el6.x86_64

---> Package cloud-client-ui.x86_64 0:4.0.2-1.el6 will be installed

---> Package cloud-deps.x86_64 0:4.0.2-1.el6 will be installed

--> Processing Dependency: mysql-connector-java for package: cloud-deps-4.0.2-1.el6.x86_64

---> Package cloud-python.x86_64 0:4.0.2-1.el6 will be installed

---> Package cloud-scripts.x86_64 0:4.0.2-1.el6 will be installed

---> Package cloud-server.x86_64 0:4.0.2-1.el6 will be installed

--> Processing Dependency: cloud-core = 4.0.2 for package: cloud-server-4.0.2-1.el6.x86_64

--> Processing Dependency: tomcat6-servlet-2.5-api for package: cloud-server-4.0.2-1.el6.x86_64

---> Package cloud-setup.x86_64 0:4.0.2-1.el6 will be installed

---> Package cloud-utils.x86_64 0:4.0.2-1.el6 will be installed

---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.45.1.11.1.el6 will be installed

--> Processing Dependency: tzdata-java for package: 1:java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64

--> Processing Dependency: rhino for package: 1:java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64

---> Package jpackage-utils.noarch 0:1.7.5-3.12.el6 will be installed

---> Package python-paramiko.noarch 0:1.7.5-2.1.el6 will be installed

--> Processing Dependency: python-crypto >= 1.9 for package: python-paramiko-1.7.5-2.1.el6.noarch

---> Package tomcat6.noarch 0:6.0.24-45.el6 will be installed

cloudstack/filelists                                     |  17 kB     00:00    

--> Processing Dependency: tomcat6-lib = 6.0.24-45.el6 for package: tomcat6-6.0.24-45.el6.noarch

--> Processing Dependency: mx4j for package: tomcat6-6.0.24-45.el6.noarch

--> Processing Dependency: log4j for package: tomcat6-6.0.24-45.el6.noarch

--> Processing Dependency: log4j for package: tomcat6-6.0.24-45.el6.noarch

--> Processing Dependency: jakarta-commons-pool for package: tomcat6-6.0.24-45.el6.noarch

--> Processing Dependency: jakarta-commons-logging for package: tomcat6-6.0.24-45.el6.noarch

--> Processing Dependency: jakarta-commons-dbcp for package: tomcat6-6.0.24-45.el6.noarch

--> Processing Dependency: jakarta-commons-daemon for package: tomcat6-6.0.24-45.el6.noarch

--> Processing Dependency: jakarta-commons-collections for package: tomcat6-6.0.24-45.el6.noarch

---> Package ws-commons-util.noarch 0:1.0.1-13.el6 will be installed

--> Running transaction check

---> Package cloud-core.x86_64 0:4.0.2-1.el6 will be installed

---> Package jakarta-commons-collections.noarch 0:3.2.1-3.4.el6 will be installed

---> Package jakarta-commons-daemon.x86_64 1:1.0.1-8.9.el6 will be installed

--> Processing Dependency: java-gcj-compat for package: 1:jakarta-commons-daemon-1.0.1-8.9.el6.x86_64

--> Processing Dependency: java-gcj-compat for package: 1:jakarta-commons-daemon-1.0.1-8.9.el6.x86_64

---> Package jakarta-commons-dbcp.noarch 0:1.2.1-13.8.el6 will be installed

---> Package jakarta-commons-lang.noarch 0:2.4-1.1.el6 will be installed

---> Package jakarta-commons-logging.noarch 0:1.0.4-10.el6 will be installed

---> Package jakarta-commons-pool.x86_64 0:1.3-12.7.el6 will be installed

---> Package log4j.x86_64 0:1.2.14-6.4.el6 will be installed

---> Package mx4j.noarch 1:3.0.1-9.13.el6 will be installed

--> Processing Dependency: javamail >= 1.2-5jpp for package: 1:mx4j-3.0.1-9.13.el6.noarch

--> Processing Dependency: bcel >= 5.0 for package: 1:mx4j-3.0.1-9.13.el6.noarch

--> Processing Dependency: axis >= 1.1 for package: 1:mx4j-3.0.1-9.13.el6.noarch

--> Processing Dependency: xml-commons-resolver for package: 1:mx4j-3.0.1-9.13.el6.noarch

--> Processing Dependency: xml-commons for package: 1:mx4j-3.0.1-9.13.el6.noarch

--> Processing Dependency: jaf for package: 1:mx4j-3.0.1-9.13.el6.noarch

---> Package mysql-connector-java.noarch 1:5.1.17-6.el6 will be installed

--> Processing Dependency: jta >= 1.0 for package: 1:mysql-connector-java-5.1.17-6.el6.noarch

--> Processing Dependency: slf4j for package: 1:mysql-connector-java-5.1.17-6.el6.noarch

---> Package python-crypto.x86_64 0:2.0.1-22.el6 will be installed

---> Package rhino.noarch 0:1.7-0.7.r2.2.el6 will be installed

--> Processing Dependency: jline for package: rhino-1.7-0.7.r2.2.el6.noarch

---> Package tomcat6-lib.noarch 0:6.0.24-45.el6 will be installed

--> Processing Dependency: tomcat6-jsp-2.1-api = 6.0.24-45.el6 for package: tomcat6-lib-6.0.24-45.el6.noarch

--> Processing Dependency: tomcat6-el-2.1-api = 6.0.24-45.el6 for package: tomcat6-lib-6.0.24-45.el6.noarch

--> Processing Dependency: ecj for package: tomcat6-lib-6.0.24-45.el6.noarch

---> Package tomcat6-servlet-2.5-api.noarch 0:6.0.24-45.el6 will be installed

---> Package tzdata-java.noarch 0:2012c-1.el6 will be installed

--> Running transaction check

---> Package axis.noarch 0:1.2.1-7.2.el6 will be installed

--> Processing Dependency: wsdl4j for package: axis-1.2.1-7.2.el6.noarch

--> Processing Dependency: jakarta-commons-httpclient for package: axis-1.2.1-7.2.el6.noarch

--> Processing Dependency: jakarta-commons-discovery for package: axis-1.2.1-7.2.el6.noarch

---> Package bcel.x86_64 0:5.2-7.2.el6 will be installed

--> Processing Dependency: regexp for package: bcel-5.2-7.2.el6.x86_64

---> Package classpathx-jaf.x86_64 0:1.0-15.4.el6 will be installed

---> Package classpathx-mail.noarch 0:1.1.1-9.4.el6 will be installed

---> Package ecj.x86_64 1:3.4.2-6.el6 will be installed

---> Package geronimo-specs-compat.noarch 0:1.0-3.4.M2.el6 will be installed

--> Processing Dependency: geronimo-specs = 1.0-3.4.M2.el6 for package: geronimo-specs-compat-1.0-3.4.M2.el6.noarch

---> Package java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 will be installed

--> Processing Dependency: sinjdoc for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64

---> Package jline.noarch 0:0.9.94-0.8.el6 will be installed

---> Package slf4j.noarch 0:1.5.8-7.el6 will be installed

---> Package tomcat6-el-2.1-api.noarch 0:6.0.24-45.el6 will be installed

---> Package tomcat6-jsp-2.1-api.noarch 0:6.0.24-45.el6 will be installed

---> Package xml-commons-apis.x86_64 0:1.3.04-3.6.el6 will be installed

---> Package xml-commons-resolver.x86_64 0:1.1-4.18.el6 will be installed

--> Running transaction check

---> Package geronimo-specs.noarch 0:1.0-3.4.M2.el6 will be installed

--> Processing Dependency: apache-tomcat-apis for package: geronimo-specs-1.0-3.4.M2.el6.noarch

---> Package jakarta-commons-discovery.noarch 1:0.4-5.4.el6 will be installed

---> Package jakarta-commons-httpclient.x86_64 1:3.1-0.6.el6 will be installed

---> Package regexp.x86_64 0:1.5-4.4.el6 will be installed

---> Package sinjdoc.x86_64 0:0.5-9.1.el6 will be installed

--> Processing Dependency: java_cup >= 0.10 for package: sinjdoc-0.5-9.1.el6.x86_64

---> Package wsdl4j.noarch 0:1.5.2-7.8.el6 will be installed

--> Running transaction check

---> Package apache-tomcat-apis.noarch 0:0.1-1.el6 will be installed

---> Package java_cup.x86_64 1:0.10k-5.el6 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

================================================================================

 Package                     Arch   Version                    Repository  Size

================================================================================

Installing:

 cloud-client                x86_64 4.0.2-1.el6                cloudstack 3.2 M

Installing for dependencies:

 apache-tomcat-apis          noarch 0.1-1.el6                  Rocks-6.0  164 k

 axis                        noar

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值