How To Install Apache Cloud Stack Management Server v4.16 + Mysql 8.0 On Centos 710 min read
In this tutorial how to install Apache Cloud Stack management server v4.16 and mysql 8.0 on centos 7. Apache Cloud Stack is an open source cloud computing system. You can use as private or public cloud as you want.
My server info: ###################################### IP address : 10.66.10.16 Operating System: Centos 7 RAM : 2 GB Disk : 25 GB vCPU : 2 CPU op-mode(s) : 64-bit Service : Apache Cloud Stack v4.16 Database : Mysql 8 Java : 11 jdk Hostname (FQDN) : cloud.technologyrss.local ######################################
Step #01: Check your server version and ip.
[[email protected] ~]# cat /etc/redhat-release && ip r
Add all hosts name and ip address on your server hosts file. like below.
[[email protected] ~]# vi /etc/hosts
As like below
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 10.66.10.16 cloud.technologyrss.local cloud 10.66.10.26 kvm.technologyrss.local kvm 10.66.10.36 acs-nfs.technologyrss.local acs-nfs
For save press Esc then type :wq then press Enter.
Step #02: Check ping status and disable firewall.
[[email protected] ~]# hostname --fqdn [[email protected] ~]# ping cloud.technologyrss.local [[email protected] ~]# ping cloudstack.apache.org [[email protected] ~]# systemctl stop firewalld [[email protected] ~]# systemctl disable firewalld
Disable selinux status
[[email protected] ~]# vi /etc/selinux/config
Then reboot your server using below command.
[[email protected] ~]# reboot
Step #03: Download latest epel release and update your server.
[[email protected] ~]# yum install -y epel-release [[email protected] ~]# yum update [[email protected] ~]# yum -y install wget chrony
Add Apache Cloud Stack repo. open this file via any editor.
[[email protected] ~]# vi /etc/yum.repos.d/cloudstack.repo
Add below all text into cloudstack.repo file.
[cloudstack] name=cloudstack baseurl=http://cloudstack.apt-get.eu/centos/$releasever/4.16/ enabled=1 gpgcheck=0
Step #04: Install mysql 8.0 on Apache Cloud Stack server 4.16
[[email protected] ~]# yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm [[email protected] ~]# vi /etc/yum.repos.d/mysql-community.repo
Add below line into mysql 8.0 community section
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
Then run mysql installation command as like below.
[[email protected] ~]# yum -y install mysql-server [[email protected] ~]# systemctl start mysqld [[email protected] ~]# systemctl enable mysqld
Find mysql root user temporary password using below command.
[[email protected] ~]# grep 'temporary password' /var/log/mysqld.log
Login mysql terminal using temporary password and then reset root password.
[[email protected] ~]# mysql -u root -p
Reset mysql root password using below command
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '[email protected]@123'; //mysql 8 reset password command Query OK, 0 rows affected (0.01 sec) \q
Step #05: Install mysql connector and Apache Cloud Stack service.
[[email protected] ~]# yum -y install mysql-connector-python
[[email protected] ~]# yum -y install cloudstack-management
[[email protected] ~]# alternatives –config java
Then create cloud database and user using below command.
[[email protected] ~]# cloudstack-setup-databases cloud:[email protected]@localhost --deploy-as=root:[email protected]@123
Output as like below:
Mysql user name:cloud [ OK ] Mysql user password:****** [ OK ] Mysql server ip:localhost [ OK ] Mysql server port:3306 [ OK ] Mysql root user name:root [ OK ] Mysql root user password:****** [ OK ] Checking Cloud database files ... [ OK ] Checking local machine hostname ... [ OK ] Checking SELinux setup ... [ OK ] Detected local IP address as 10.66.10.16, will use as cluster management server node IP[ OK ] Preparing /etc/cloudstack/management/db.properties [ OK ] Applying /usr/share/cloudstack-management/setup/create-database.sql [ OK ] Applying /usr/share/cloudstack-management/setup/create-schema.sql [ OK ] Applying /usr/share/cloudstack-management/setup/create-database-premium.sql [ OK ] Applying /usr/share/cloudstack-management/setup/create-schema-premium.sql [ OK ] Applying /usr/share/cloudstack-management/setup/server-setup.sql [ OK ] Applying /usr/share/cloudstack-management/setup/templates.sql [ OK ] Processing encryption ... [ OK ] Finalizing setup ... [ OK ]
Then run below command for check all status is ok.
[[email protected] ~]# cloudstack-setup-management
Step #06: Add iptables required port into Apache Cloud Stack server.
[[email protected] ~]# vi /etc/sysconfig/iptables
Add below all lines into iptables file.
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 8250 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 8443 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 9090 -j ACCEPT
iptables service restart using below command.
[[email protected] ~]# service iptables restart
Check ACS log using below command.
[[email protected] ~]# tail -f /var/log/cloudstack/management/management-server.log
Step #07: Add your local domain name into idmapd.conf
[[email protected] ~]# vi /etc/idmapd.conf
Add below line as your domain name
Domain = technologyrss.local
Restart some service from below command.
[[email protected] ~]# service rpcbind restart [[email protected] ~]# service nfs-utils restart [[email protected] ~]# systemctl enable nfs-utils [[email protected] ~]# chkconfig rpcbind on [[email protected] ~]# rpcinfo -p
Step #08: Download systemvm template into Apache Cloud Stack Server.
Create one folder for mound your storage share for secondary storage.
[[email protected] ~]# mkdir -p /mnt/secondary [[email protected] ~]# mount -t nfs 10.66.10.36:/mnt/secondary /mnt/secondary
Then run below command for download systemvm template.
[[email protected] ~]# /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloudstack.org/systemvm/4.16/systemvmtemplate-4.16.0-kvm.qcow2.bz2 -h kvm -F
When download and installation done then remove created directory.
[[email protected] ~]# umount /mnt/secondary [[email protected] ~]# rm -rf /mnt/secondary
Note: If you use Apache Cloud Stack management server as storage server so don’t remove this directory.
Default login details:
URL : http://10.66.10.16:8080/client/#/user/login?redirect=%2F User name : admin Password : password
Step #09: For private cloud computing Global configuration.
system.vm.use.local.storage [ set false to -> true ca.plugin.root.auth.strictness [ set true to -> false secstorage.allowed.internal.sites [set value = > 10.66.10.15 (local server ip using apache web server for download iso, http://10.66.10.15/centos.iso)]
Note : Please restart your management server(s) for your new settings to take effect.
Then restart Apache Cloud Stack management service using below command.
[[email protected] ~]# /bin/systemctl stop cloudstack-management.service [[email protected] ~]# /bin/systemctl start cloudstack-management.service [[email protected] ~]# tail -f /var/log/cloudstack/management/management-server.log
Time zone setup
[[email protected] ~]# timedatectl [[email protected] ~]# ls -l /etc/localtime [[email protected] ~]# timedatectl set-timezone Asia/Dhaka [[email protected] ~]# timedatectl
Any error first check server log file and find what is issue.
[[email protected] ~]# tail -f /var/log/cloudstack/management/management-server.log
If needed more help so please check my YouTube channel for more video. Don’t forget subscribe my channel and share to any social media.
- How To Install Odoo 16 on Ubuntu 22.04 - May 14, 2023
- 12 Steps to Organize Photos on Your Computer - March 20, 2023
- 9 Ways to Speed Up Your MacBook Yosemite - February 21, 2023
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!