CloudStack install

cloudstack 安装说明

架构

需要3 台机器

安装之前先准备

# 更新系统
yum update -y

# 修改 SELiunx
vim /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


# 配置CloudStack软件包存储库
vim /etc/yum.repos.d/cloudstack.repo

[cloudstack]
name=cloudstack
baseurl=http://download.cloudstack.org/centos/7/4.11/
enabled=1
gpgcheck=0


# 配置 nfs
yum -y install nfs-utils

# mkdir -p /export/primary
# mkdir /export/secondary

/export/secondary *(rw,async,no_root_squash,no_subtree_check)
/export/primary *(rw,async,no_root_squash,no_subtree_check)

# 编辑配置文件
vim /etc/sysconfig/nfs
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020

网络配置

管理服务器安装

# 安装数据库连接器
vim /etc/yum.repos.d/mysql.repo
[mysql-connectors-community]
name=MySQL Community connectors
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/$releasever/$basearch/
enabled=1
gpgcheck=1

# 导入 公钥
rpm --import http://repo.mysql.com/RPM-GPG-KEY-mysql

# 安装 
yum install mysql-connector-python

# 安装maraidb
yum install mariadb-server

# 配置mariadb
mysql_secure_installation

# 安装管理服务器
yum -y install cloudstack-management

# 部署脚本
cloudstack-setup-databases cloud:password@localhost --deploy-as=root

# 初始化管理服务器
cloudstack-setup-management

# 下载KVM 模板
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /export/secondary -u http://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.2-kvm.qcow2.bz2 -h kvm -F

KVM agent 安装

# cloud_stack
yum -y install cloudstack-agent

原创声明,本文系作者授权云+社区发表,未经许可,不得转载。

如有侵权,请联系 yunjia_community@tencent.com 删除。

编辑于

我来说两句

0 条评论
登录 后参与评论

扫码关注云+社区

领取腾讯云代金券

年度创作总结 领取年终奖励