注:基于系统版本CentOS 7.2.1511部署
修改主机名/IP地址/hosts解析
hostnamectl set-hostname centos1
hostnamectl set-hostname centos2
vi /etc/hosts
#添加一行
192.168.80.30 centos1、192.168.80.31 centos2
安装常用软件
yum -y install epel*
yum -y install wget net-tools vim lrzsz tree screen lsof tcpdump
yum clean all&& yum makecache
关闭防火墙与selinux
systemctl disable firewalld && systemctl stop firewalld
systemctl disable NetworkManager && systemctl stop NetworkManager
vi /etc/selinux/config
#添加一行
SELINUX=disabled
部署管理节点
下载CloudStack
wget http://download.cloudstack.org/centos/7/4.11/cloudstack-common-4.11.1.0-1.el7.centos.x86_64.rpm
wget http://download.cloudstack.org/centos/7/4.11/cloudstack-management-4.11.1.0-1.el7.centos.x86_64.rpm
安装CloudStack
yum localinstall cloudstack-management-4.11.1.0-1.el7.centos.x86_64.rpm cloudstack-common-4.11.1.0-1.el7.centos.x86_64.rpm
安装数据库MariaDB
yum install -y mariadb mariadb-server
systemctl start mariadb
systemctl status mariadb
初始化数据库MariaDB
mysql_secure_installation #按照提示设置数据库密码
cloudstack-setup-databases cloud:cloud@localhost --deploy-as=root:123456
启动CloudStack服务
cloudstack-setup-management
netstat -antlp |grep 8080
登录CloudStack Web
#URL
https://192.168.80.30:8080/
#默认账号密码
admin/password
部署计算节点
下载CloudStack agent
wget http://download.cloudstack.org/centos/7/4.11/cloudstack-agent-4.11.1.0-1.el7.centos.x86_64.rpm
安装CloudStack agent
yum localinstall cloudstack-agent-4.11.1.0-1.el7.centos.x86_64.rpm
标签:
留言评论