X

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

Sharing is caring!

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 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.

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.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.

View Comments (2)

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

    this step is unnecessary since you have updated the /etc/mysql/mysql.conf.d/mysqld.cnf already. open /etc/mysql/mysql.conf.d/cloudstack.cnf a new file doesn't make sense.

Leave a Comment