cloudstack 3.0X 安装简单记录
配置 IP:#vi /etc/sysconfig/network#vi
DEVICE="eth0"
HWADDR="F6:09:F4:D2:25:DE"
NM_CONTROLLED="yes"
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.3.105
NETMASK=255.255.255.0
GATEWAY=192.168.3.1
#service network restart
#ifconfig eth0
配置主机名:
#echo “CloudManager.cloud.com” > /etc/sysconfig/network
#hostname
# echo “192.168.3.105
#hostname --fqdn
关闭 selinux
#getenforce //查看当前selinux状态
#setenforce 0 //临时设置 selinux 状态
#vi /etc/selinux/config
修改 SELINUX=disabled//修改selinux配
重启reboot
修改ntp
改成
server 0.xenserver.pool.ntp.org
server 1.xenserver.pool.ntp.org
server 2.xenserver.pool.ntp.org
# service ntpd restart ;chkconfig on//重启ntp 并设置开机启动
修改 SELINUX=disabled//修改selinux配
重启reboot
安装 CloudStack软件包
在home 中放入 安装包
CloudStack-oss-3.0.2-1-rhel6.2.tar.gz
tar -xvf CloudStack-oss-3.0.2-1-rhel6.2.tar.gz //解压
cdCloudStack-oss-3.0.2-1-rhel6.2
./install.sh //安装
选择 M
开始安装 并提示安装两次资源包选Y
安装 Mysql 数据库
./install.sh //安装
选择 D
开始安装 并提示安装两次资源包选Y
vi etc/my.cnf
加入
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'
server mysqld restart//重启
设置root 密码
mysql -uroot
set PASSWORD=PASSWORD('123456');
QUIT
# cloud-setup-databases cloud:pass1111@localhost --deploy-as=root:123456 -e file -m pass1111 -k pass1111
#mysql -uroot-p123456//检查是否修改成功 检查是否修改成功 检查是否修改成功
在 mysql数据库上面创建名为cloud的用户
格式如下: 格式如下: 格式如下:
cloud-setup-databases cloud:<dbpassword>@localhost -- deploy -as=root:<password> -e <encryption_type> -m <management_server_key> -k <database_key>
其中 cloud表示需要被创建的用户,<dbpassword> 是其密码
-- deploy -as表明通过哪种用户部署云数据库以及创建 cloud用户
<encryption_type>:可选参数,通常有两种类型 :file以及 web ,都是 用于传递数据库中的加密密码,默认为file
<management_server_key>:可选参数,替换默认密钥用于CloudStack属性文件中的机密参数。默认为 参数。默认为 参数。默认为password。 强烈建议您更换一个安全的价值
<database_key> :可选参数,跟 <management_server_key>类似,默认为 password
启动服务
# cloud-setup-management
出现” CloudStack Management Server setup is done. 表明启动成功。
默认的登录 地址为http://ip:8080/client
请注意防火墙问题。
页:
[1]