CloudStack install

2019-08-15 17:11:00 浏览数 (1)

cloudstack 安装说明

架构

需要3 台机器

安装之前先准备

代码语言:txt复制
# 更新系统
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

网络配置

管理服务器安装

代码语言:txt复制
# 安装数据库连接器
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 安装

代码语言:txt复制
# cloud_stack
yum -y install cloudstack-agent

0 人点赞