How To Install Apache Cloud Stack Management Server On Ubuntu 18.048 min read
Now I want to share interesting post like open source cloud computing system. In this tutorial how to install Apache Cloud Stack Management server using Ubuntu 18.04. So let’s start this guide.
★ Private Cloud Setup Step By Step Using Apache Cloud Stack
★ How To Install Zabbix 5.0 On Ubuntu 20.04 Server
My server info:
Operating System: Ubuntu 18.04 LTS IP Address : 10.66.100.18 RAM : 2GB Disk : 50GB Service : Apache Cloud Stack v4.15 Mysql : v5.7 Java : 11 jdk Host Name : cloud.technologyrss.local
Step #01: Configure hostname ip address for prepare server.
[email protected]:~# lsb_release -a [email protected]:~# ip r
Check hosts file
[email protected]:~# cat /etc/hosts 127.0.0.1 localhost 10.66.100.18 cloud.technologyrss.local cloud
Check hostname file
[email protected]:~# cat /etc/hostname cloud
Check static ip address setup
[email protected]:~# cat /etc/netplan/00-installer-config.yaml network: ethernets: eth1: dhcp4: false addresses: [10.66.100.18/16] gateway4: 10.66.100.10 nameservers: addresses: [8.8.8.8,8.8.4.4] version: 2
Insert google dns server ip address into resolv.conf file.
nameserver 8.8.8.8
Step #02: Download required package for setup Apache Cloud Stack.
[email protected]:~# hostname --fqdn [email protected]:~# ping cloudstack.apache.org [email protected]:~# apt-get install -y openntpd openssh-server sudo vim htop tar intel-microcode bridge-utils mysql-server
Add Apache Cloud Stack 4.15 repo.
[email protected]:~# echo deb http://download.cloudstack.org/ubuntu bionic 4.15 > /etc/apt/sources.list.d/cloudstack.list [email protected]:~# sudo wget -O - http://download.cloudstack.org/release.asc|apt-key add - [email protected]:~# apt-get update -y
Install Apache Cloud Stack package.
[email protected]:~# apt-get install -y cloudstack-management cloudstack-usage
Open mysqld.cnf file for add some configuration.
[email protected]:~# vi /etc/mysql/mysql.conf.d/mysqld.cnf
Insert below all lines into mysqld.conf file.
server_id = 1
sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_ENGINE_SUBSTITUTION"
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=1000
log-bin=mysql-bin
binlog-format = 'ROW'
Then save and exit using Press Esc, type :wq then press Enter.
Create or open cloudstack.conf file.
[email protected]:~# vi /etc/mysql/mysql.conf.d/cloudstack.cnf
Insert below line into this file.
[mysqld]
Then save and exit using Press Esc, type :wq then press Enter.
Step #03: Configure Mysql database and create cloud database.
[email protected]:~# systemctl restart mysql [email protected]:~# mysql -u root -p // default root password is blank
Create root password and allow native password.
SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'passw0rd';
use mysql;
UPDATE user SET plugin="mysql_native_password" WHERE User='root';
flush privileges;
\q
Now run Apache Cloud Stack Management setup command with root password.
[email protected]:~# cloudstack-setup-databases cloud:[email protected] --deploy-as=root:passw0rd
Then check setup management command is ok.
[email protected]:~# cloudstack-setup-management
Now check management server log file
[email protected]:~# tail -f /var/log/cloudstack/management/management-server.log
Wait at least few min….when done import default database and run properly web gui. Then access using below UI.
Step #04: Edit some global configuration if your cloud is private.
Old UI : http://10.66.100.18:8080/client/legacy/
New UI : http://10.66.100.18:8080/client/#/user/login?redirect=%2F
Default login
User : admin Password : password
Now setup some 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 local downlead iso web server or public server.
Must be restart cloudstack management service or you can reboot.
[email protected]:~# /bin/systemctl stop cloudstack-management.service [email protected]:~# /bin/systemctl start cloudstack-management.service
Step #05: Add local domain name for every each server.
[email protected]:~# vi /etc/idmapd.conf
Insert below line.
Domain = technologyrss.local [ Both management and host server.
Then restart rpcbind and check port is ruuning.
[email protected]:~# service rpcbind start [email protected]:~# chkconfig rpcbind on [email protected]:~# rpcinfo -p
Step #06: Download systemvm template on secondary storage.
Create secondary storage folder.
[email protected]:~# mkdir -p /mnt/secondary
Then mount nfs share folder.
[email protected]:~# mount -t nfs 10.66.100.19:/home/secondary /mnt/secondary
Then run template download command from Apache Cloud Stack server.
[email protected]:~# /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloudstack.org/systemvm/4.15/systemvmtemplate-4.15.0-kvm.qcow2.bz2 -h kvm -F
When successfully done download and install then run below step.
[email protected]:~# umount /mnt/secondary [ If you use Apache Cloud Stack Management server as nfs server so don’t remove this directory.
Remove created directory.
[email protected]:~# rm -rf /mnt/secondary
Then restart Apache Cloud Stack service.
[email protected]:~# /bin/systemctl stop cloudstack-management.service [email protected]:~# /bin/systemctl start cloudstack-management.service
Then access using server ip address or your local dns name.
http://10.66.100.18:8080/client/legacy/
http://10.66.100.18:8080/client/#/user/login?redirect=%2F
If you needed more help so please see my YouTube channel.
- 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!