How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04

Now I will show how to private cloud setup step by step using open source could computing Apache Cloud Stack. Apache Cloud Stack is a strong cloud computing at this time. This has various environments like small private cloud and large cloud system using Cloud Stack.

In this guide, full private cloud system using Apache Cloud Stack. Minimum requirements one management server, one host for kvm. This management server using mysql, and nfs server is separate server. Another option If you want to use management server as nfs server.

Installation process:
👉🏻 Apache Cloud

Sponsored
Stack management server install.
👉🏻 Storage server install (NFS).
👉🏻 KVM server install.
👉🏻 NFS connection and systemvm download with create basic zone.
👉🏻 Firewall setup for all servers.
👉🏻 NTP install for all servers.
👉🏻 Apache Cloud Stack Upload iso.
👉🏻 Create Instance on Apache Cloud Stack.

Server ip list: 

  • Cloud Stack : 10.66.10.17
  • Host (kvm node): 10.66.10.18
  • Storage : 10.66.10.19

Step : This step is Cloud Stack management server installation process.

System requirements:

  • Operating system : Ubuntu22.04.
  • RAM : Minimum 2 GB for more best performance.
  • Disk : 50 GB.
  • CPU : 2 for more best performance.
  • NIC : 1 Ethernet.
  • IP address : Static setup.

Just showing all config details using cat command. So you can edit your server details like my server. First connect Cloud Stack server via ssh root access using putty or MobaxTreem.

Step : Ready host name for setup Apache Cloud Stack.

Must be your server update and upgrade using below command.

apt update && apt upgrade -y

Then add all host name into hosts file.

cat /etc/hosts

Insert all below lines into hosts file.

127.0.0.1 localhost
10.66.10.17     cloud.technologyrss.local       cloud
10.66.10.18     kvm.technologyrss.local       kvm
10.66.10.19     nas.technologyrss.local      nas

Check hostname file using cat command.

cat /etc/hostname

Output as like below

cloud

Step : Static ip address setup on Apache Cloud Stack MGMT server.

cat /etc/netplan/00-installer-config.yaml

See as like below

network:
    ethernets:
        enp0s3:
            addresses:
            - 10.66.10.17/16
            dhcp4: false
            routes:
              - to: default
                via: 10.66.10.1
            nameservers:
                addresses:
                - 8.8.8.8
                - 8.8.4.4
                search:
                - workgroup
    version: 2

Then run netplan command for check if any error.

netplan apply

Also add google public dns server ip address on resolv.conf file.

cat /etc/resolv.conf

output as like below:

nameserver 8.8.8.8

Step : Install mysql and add apache cloud stack repo.

hostname --fqdn
 ping cloudstack.apache.org
 apt-get install -y openntpd openssh-server sudo vim htop tar intel-microcode bridge-utils mysql-server
 echo deb http://download.cloudstack.org/ubuntu jammy 4.17  > /etc/apt/sources.list.d/cloudstack.list
 sudo wget -O - http://download.cloudstack.org/release.asc|apt-key add -
 apt-get update -y
 apt-get install -y cloudstack-management cloudstack-usage

Config mysql settings.

vi /etc/mysql/mysql.conf.d/mysqld.cnf

Insert below all lines into mysqld.cnf file.

Sponsored
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 it using press Esc type :wq then press Enter.

Also open another cloudstack.cnf file.

vi /etc/mysql/mysql.conf.d/cloudstack.cnf

Restart mysql service using below command.

systemctl restart mysql

Login mysql terminal using default password is blank.

mysql -u root -p

Then press Enter.

SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'passw0rd@123';
use mysql;
UPDATE user SET plugin="mysql_native_password" WHERE User='root';
flush privileges;
q

Now Setup Cloud using below command.

cloudstack-setup-databases cloud:passw0rd@123@localhost --deploy-as=root:passw0rd@123

Check cloud setup status using below command.

cloudstack-setup-management

Check cloudstack management server log file using below command for see any error.

tail -f /var/log/cloudstack/management/management-server.log

Wait at least few minutes….

Login default cloud management system using ip address.

http://10.66.10.17:8080/client/

Default admin login.

Default login
User  : admin
Password : password

Note: Next tutorial how to download systemvm template on nfs storage.

The post How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 appeared first on TechnologyRSS.

Ubuntu Server Admin

Recent Posts

AI in 2025: is it an agentic year?

2024 was the GenAI year. With new and more performant LLMs and a higher number…

12 hours ago

Canonical announces 12 year Kubernetes LTS

Canonical’s Kubernetes LTS (Long Term Support) will support FedRAMP compliance and receive at least 12…

2 days ago

Ubuntu Weekly Newsletter Issue 878

Welcome to the Ubuntu Weekly Newsletter, Issue 878 for the week of February 2 –…

2 days ago

How your feedback shapes the way we support open source software

At Canonical, we firmly believe that delivering an outstanding, customer-centric support experience is impossible without…

3 days ago

How To Install osTicket v1.14 On Ubuntu 20.04

I want to share how to install osTicket v1.14 for Ubuntu 20.04 server. osTicket written…

4 days ago

How To Install WordPress On Ubuntu 20.04

Now I want to share how to install WordPress on ubuntu 20.04 server. WordPress is…

4 days ago