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 #01: 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 #02 : 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 #03 : 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 #04 : 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

Join Canonical in Brazil at Dell Technologies Forum São Paulo

Canonical is excited to be a part of the Dell Technologies Forum in São Paulo…

5 days ago

6 facts for CentOS users who are holding on

In 2020, it was announced that CentOS 7 would reach end of life (EoL) by…

5 days ago

What is Ubuntu used for?

The launch of Ubuntu in 2004 was a step-change for everyday users and developers everywhere.…

6 days ago

Ubuntu Weekly Newsletter Issue 862

Welcome to the Ubuntu Weekly Newsletter, Issue 862 for the week of October 13 –…

6 days ago

New Ubuntu Community Council 2024

Merlijn writes: I’m happy to announce the new 2024 Ubuntu Community Council! Heather Ellsworth (~hellsworth1)…

1 week ago