1. When Traditional Virtualization Hits the Ceiling
If you have ever managed an infrastructure supporting more than 30 developers, you are likely familiar with the relentless morning barrage of tickets:
“Urgent: Provision 3 VMs with 4 vCPUs / 8GB RAM to test Project A this afternoon.”
“Please assign a static IP range and open port 443 for a client demo.”
At a scale of 20 to 30 virtual machines, everything runs smoothly. You simply log into the Proxmox or vSphere web console, click around for 5 minutes, and call it a day. But when the company scales to 50 teams and nearly 300 employees, this workflow turns into an operational nightmare.
Every single day, the infrastructure team drowns in dozens of provisioning requests, VM deletions, VLAN setups, and volume attachments. You effectively become a manual operator. Developers grow frustrated waiting half a day for approvals. Meanwhile, AWS or GCP bills surge by an extra $3,000 to $5,000 a month simply because sandbox VMs were spun up and forgotten.
2. The Line Between Virtualization and Cloud Platforms (IaaS)
Many people mistake a standalone VMware ESXi or Proxmox host for a cloud. In reality, it is not.
Pure virtualization merely carves up physical hardware resources. In contrast, a complete IaaS platform requires four core pillars: a self-service portal, multi-tenancy, metering mechanisms, and standardized RESTful APIs.
OpenStack was created to transform your fleet of bare-metal servers into an “on-premise AWS.” Developers can simply make an API call or click a button on a dashboard to have infrastructure ready in 30 seconds. However, historically, the biggest barrier to OpenStack adoption has been its staggering complexity.
A minimal OpenStack cluster requires seamless orchestration across dozens of services: Keystone (identity & authentication), Nova (compute), Neutron (SDN networking), Glance (OS image management), and Cinder (block storage). In the past, deploying directly onto the OS via deb/rpm packages often led to disaster:
- Python dependency conflicts made version upgrades nearly impossible.
- A failure in a single service could trigger a cascading failure across the entire server cluster.
- Engineers spent 3 to 5 days manually tweaking hundreds of
.conffiles.
3. Three Approaches to Deploying OpenStack
Faced with this challenge, DevOps engineers typically consider three main paths:
- Manual Installation (DevStack / Manual): Running every command and configuring every service file by hand. This approach is only suitable for learning. Configuration drift between nodes in a multi-server environment is almost guaranteed.
- OpenStack-Ansible (OSA): Uses Ansible combined with Linux Containers (LXC). This path provides excellent performance optimization. The downsides are significantly long source-build times, and troubleshooting LXC across multiple nodes requires deep Linux expertise.
- Containerization with Kolla-Ansible: Each OpenStack service is independently packaged inside a Docker container. This has become the gold standard preferred by most enterprises today.
4. Hands-On Deployment with Kolla-Ansible
Kolla-Ansible is an official OpenStack Foundation project. It pairs the automation power of Ansible with the isolation of Docker containers.
Every service is pre-built into standardized Docker images. When you need to upgrade from release 2023.2 to a newer version, you simply pull the new images and restart the containers. The underlying host operating system remains pristine.
In this guide, we will set up a 3-node cluster (1 Controller node handling management/networking and 2 Compute nodes running VMs). This is the standard baseline model suitable for a homelab or small-to-medium enterprise infrastructure.
Step 1: Host Preparation and Network Planning
Each node runs Ubuntu 22.04 LTS or Rocky Linux 9, equipped with at least 16GB RAM, 4 vCPUs, and 2 physical network interfaces:
- NIC 1 (eth0 – Management Network): Configured with a static IP (e.g., subnet
192.168.10.0/24). This interface is dedicated to Ansible management and internal communication between OpenStack services. - NIC 2 (eth1 – External / Provider Network): Do not assign an IP address. OpenStack Neutron utilizes this interface directly to bridge VM traffic out to the Internet.
On the deployment host (Controller), set up a Python virtual environment and install Kolla-Ansible:
sudo apt update && sudo apt install -y python3-dev libffi-dev gcc libssl-dev python3-venv git
python3 -m venv ~/kolla-env
source ~/kolla-env/bin/activate
pip install --upgrade pip
pip install ansible-core==2.15.* kolla-ansible==17.0.0
Step 2: Configuring the Inventory File
Create the system configuration directory and copy over the default templates:
sudo mkdir -p /etc/kolla
sudo chown -R $USER:$USER /etc/kolla
cp -r ~/kolla-env/share/kolla-ansible/etc_examples/kolla/* /etc/kolla/
cp ~/kolla-env/share/kolla-ansible/ansible/inventory/multinode ~/multinode
Edit the ~/multinode file to map server roles to their respective IP addresses:
[control]
192.168.10.11 ansible_user=ubuntu
[network]
192.168.10.11 ansible_user=ubuntu
[compute]
192.168.10.12 ansible_user=ubuntu
192.168.10.13 ansible_user=ubuntu
[storage]
192.168.10.12 ansible_user=ubuntu
192.168.10.13 ansible_user=ubuntu
Step 3: Automatically Generating Secure Passwords
OpenStack requires over 50 password strings across MariaDB databases, RabbitMQ message queues, and various service accounts. Avoid generating them manually. Simply run:
kolla-genpwd
Secure 256-bit passwords will be populated in /etc/kolla/passwords.yml. The web dashboard password for the admin account is also stored here (look for keystone_admin_password).
Step 4: Configuring Core Parameters in globals.yml
Open /etc/kolla/globals.yml and define the primary parameters:
---
kolla_base_distro: "ubuntu"
kolla_install_type: "binary"
openstack_release: "2023.2"
kolla_internal_vip_address: "192.168.10.10"
network_interface: "eth0"
neutron_external_interface: "eth1"
nova_compute_virt_type: "kvm"
enable_horizon: "yes"
enable_cinder: "yes"
The variable kolla_internal_vip_address must be an unallocated virtual IP (VIP) within your management subnet. HAProxy and Keepalived will bind to this IP to serve as the single, highly available entry point for all API services.
Step 5: Executing the Cluster Rollout
The deployment process follows three straightforward steps:
# 1. Automatically install Docker, tune kernel parameters, and configure firewalls across all 3 nodes
kolla-ansible -i ~/multinode bootstrap-servers
# 2. Scan and verify environment compatibility, occupied ports, and network configurations
kolla-ansible -i ~/multinode prechecks
# 3. Pull container images and launch services (takes about 15-25 minutes depending on network speed)
kolla-ansible -i ~/multinode deploy
Once the deployment finishes without errors, generate the authentication credentials to start using the OpenStack CLI:
kolla-ansible post-deploy
pip install python-openstackclient
source /etc/kolla/admin-openrc.sh
# Verify that compute nodes are up and ready
openstack hypervisor list
If both compute nodes return state: up and status: enabled, congratulations—your deployment succeeded. You can now access the Horizon dashboard at http://192.168.10.10. Your development teams can now independently spin up private networks, attach storage volumes, and boot VMs in 20 seconds without ever filing another manual ticket.
