Guides / IaaS / Self-Hosted Cloud

How to Install & Set Up Apache CloudStack

Install the CloudStack management server for turnkey, AWS-API-compatible IaaS orchestration on Ubuntu.

Updated 20264-step setupDownload Apache CloudStack →

Prerequisites

  • ✓Ubuntu 22.04 LTS management host with a static IP
  • ✓MySQL/MariaDB (installed below) and NFS for primary/secondary storage
  • ✓A separate hypervisor host (KVM) for running instances in production

Add the CloudStack package repository

terminal
sudo mkdir -p /etc/apt/keyrings
wget -O- http://download.cloudstack.org/release.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/cloudstack.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/cloudstack.gpg] http://download.cloudstack.org/ubuntu jammy 4.19" | sudo tee /etc/apt/sources.list.d/cloudstack.list
sudo apt-get update

Install the management server and database

terminal
sudo apt-get install -y cloudstack-management mysql-server
sudo cloudstack-setup-databases cloud:password@localhost --deploy-as=root
sudo cloudstack-setup-management

Install on RHEL, CentOS Stream, or Rocky Linux

CloudStack publishes matching RPM packages alongside the APT ones — same management server, same setup commands, just yum/dnf driving the install.

terminal
sudo rpm --import http://download.cloudstack.org/RPM-GPG-KEY-cloudstack
cat <<EOF | sudo tee /etc/yum.repos.d/cloudstack.repo
[cloudstack]
name=cloudstack
baseurl=http://download.cloudstack.org/centos/9/4.19/
enabled=1
gpgcheck=1
EOF
sudo dnf install -y cloudstack-management mariadb-server
sudo cloudstack-setup-databases cloud:password@localhost --deploy-as=root
sudo cloudstack-setup-management

Verify the installation

Once the management server is up, open http://your-server-ip:8080/client and sign in with the default admin / password credentials, then complete the setup wizard.

terminal
sudo systemctl status cloudstack-management

Documentation & Knowledge Base

Official DocumentationCloudStack Installation Docs →Knowledge Base & CommunityCloudStack Mailing Lists & Wiki →
Download Apache CloudStack— all versions & official links→

Related Guides

OpenStackInstall guide →OpenNebulaInstall guide →ForemanInstall guide →

Need Apache CloudStack deployed and managed for you?

We're OpenStack Dev — we design, deploy, and operate production DevOps infrastructure.

Get in TouchAll Install Guides