Running VMs on a few servers with KVM is not hard. But once there are dozens of servers and several teams ask every day for "one VM with 4 cores, please", handling each request by hand becomes difficult. That is where OpenStack comes in. It combines servers, networks and storage into a private cloud (IaaS) where users create and use VMs themselves, like AWS EC2.
For people seeing OpenStack for the first time, this post goes in the order virtualization and cloud basics → services → how a VM is created → node layout. It focuses on understanding the architecture rather than on installation. KVM itself is covered in KVM virtualization in practice.
How do virtualization methods differ?
OpenStack runs on top of a hypervisor, so let's start with virtualization methods.
| Method | How it works | Characteristics |
|---|---|---|
| Full virtualization | The hypervisor rewrites the guest OS's privileged instructions through binary translation | No need to modify the guest OS, but slow because of the translation |
| Paravirtualization | The guest OS is modified to call the hypervisor directly with hypercalls instead of privileged instructions | Fast, but requires modifying the guest OS (old Xen) |
| Hardware-assisted virtualization | The CPU's Intel VT-x/AMD-V provides a separate execution mode for guests, and the CPU hands privileged instructions straight to the hypervisor | Needs neither translation nor OS changes. KVM, Hyper-V and ESXi all work this way today |
Some material describes hardware-assisted virtualization as "the CPU doing the binary translation for you", but more precisely, translation is no longer needed at all. On top of that, disks and networks are attached with paravirtualized drivers such as virtio to push speed further.
Hypervisors are classified by where they sit.
- Type 1 (bare metal): runs directly on the hardware. VMware ESXi, Microsoft Hyper-V, Xen, and KVM, where the Linux kernel itself becomes the hypervisor
- Type 2 (hosted): runs as a program on an ordinary OS. VirtualBox, VMware Workstation/Fusion
OpenStack mostly uses KVM as its hypervisor.
Cloud service models
| Model | What it provides | Examples |
|---|---|---|
| IaaS | VMs, networks, disks (the OS and up are the user's job) | AWS EC2, OpenStack |
| PaaS | A runtime environment for apps (the OS and runtime are the provider's job) | Heroku, Google App Engine |
| SaaS | A finished service | Gmail, Slack |
By deployment, there are private clouds kept inside the company, public clouds such as AWS, and hybrid setups that use both. OpenStack is mainly used to build private clouds.
What services make up OpenStack?
OpenStack is not one program but a collection of services, each with its own role. Each service has a name, and they all call each other through REST APIs.

Core services
| Service | What it handles | AWS equivalent |
|---|---|---|
| Keystone | Authentication and authorization. Checks users, projects and roles and issues tokens | IAM |
| Nova | Creating, deleting and moving VMs (instances). Drives the hypervisor to actually start VMs | EC2 |
| Neutron | Virtual networks, subnets, routers, floating IPs, security groups | VPC |
| Glance | Registering and storing VM images (qcow2, raw and so on) | AMI |
| Cinder | Persistent block volumes attached to and detached from VMs, and snapshots | EBS |
| Placement | Tracks how much CPU, memory and disk each compute node has left | (internal) |
Services often used alongside
| Service | What it handles | AWS equivalent |
|---|---|---|
| Horizon | Web dashboard | Console |
| Swift | Object storage where files go in and out over HTTP, replicated across nodes | S3 |
| Manila | File shares mounted by several VMs together (NFS, CephFS and so on) | EFS |
| Heat | Creates VMs, networks and volumes in one go from YAML templates (HOT, CloudFormation-compatible) | CloudFormation |
| Ironic | Lends out physical servers, not VMs, the same way | Bare metal instances |
| Octavia | Load balancers | ELB |
| Ceilometer/Gnocchi/Aodh | Usage collection, metric storage, usage-based alarms | CloudWatch |
💡 Cinder is not "where the OS is stored". With default settings, a VM's root disk is an ephemeral disk that Nova creates on the compute node's local disk, and it disappears when the VM is deleted. To keep data, attach a separate Cinder volume, or set the VM to boot from a volume from the start. Without knowing this difference, it is easy to lose data by deleting a VM.
Sahara, for big data, is a retired project whose development stopped, so there is no reason to adopt it now. Glance's glance-registry is also long gone. Filter out parts like these when reading material from a few years ago.
How one VM gets created
When you run openstack server create, this happens behind the scenes.
- Keystone: the CLI gets a token with the user name and password.
- nova-api: receives the request, with the token, for "one VM with this image, this size (flavor) and this network".
- nova-scheduler + Placement: picks a compute node with resources to spare.
- nova-conductor → message queue (RabbitMQ): hands the job to nova-compute on the chosen node.
- nova-compute: gets the image from Glance, asks Neutron to create a network port, and attaches Cinder volumes if needed.
- libvirt/KVM: actually starts the VM. Users connect over SSH or the browser VNC console (
nova-novncproxy).
Here is the same thing done from scratch with the CLI. Seeing which service each line calls makes the architecture clear.
source admin-openrc.sh # credentials as environment variables (Keystone)
# register an image (Glance)
openstack image create --disk-format qcow2 --container-format bare \
--file Rocky-9-GenericCloud.qcow2 rocky9
# define a VM size (Nova)
openstack flavor create --vcpus 4 --ram 8192 --disk 40 m1.sim
# network, subnet and router (Neutron)
openstack network create net1
openstack subnet create --network net1 --subnet-range 10.0.0.0/24 sub1
openstack router create r1
openstack router set --external-gateway public r1
openstack router add subnet r1 sub1
# allow SSH, register a key
openstack security group rule create --protocol tcp --dst-port 22 default
openstack keypair create --public-key ~/.ssh/id_ed25519.pub mykey
# create the VM (Nova)
openstack server create --image rocky9 --flavor m1.sim \
--network net1 --key-name mykey vm1
# attach an address reachable from outside (Neutron floating IP)
openstack floating ip create public
openstack server add floating ip vm1 <IP you received>
A floating IP maps an outside address 1:1 to the VM's private address (10.0.0.x). Even if you recreate the VM, you can move the same floating IP to it.
How are services laid out across nodes?
OpenStack services are installed on servers (nodes) according to their roles.

| Node | What goes on it |
|---|---|
| Controller | Every service's API, the schedulers, Keystone, Horizon, the database (MariaDB) and the message queue (RabbitMQ) |
| Network | The Neutron L3 agent (virtual routers, floating IPs), DHCP, the metadata service |
| Compute | nova-compute, the hypervisor (KVM), Neutron agents (OVN/OVS) |
| Storage | Cinder volume backends, Swift, or a Ceph cluster |
Common layouts by scale:
- All-in-one on 1 server: for development and learning. DevStack installs it this way. Not for production.
- 2 nodes (controller + compute): the controller doubles as the network node. Easy to grow by adding compute nodes.
- 3 nodes (+ network): split out a network node when outside traffic grows.
- 4 or more nodes (+ storage): move volume and object storage to separate nodes or Ceph.
With only one controller, the whole cloud stops when that server stops. In production it is typical to run 3 controllers with HAProxy and Keepalived distributing the APIs, a Galera cluster for the DB, and a RabbitMQ cluster. Active/passive setups with Pacemaker used to be common.
Rather than installing everything by hand, use a deployment tool: Kolla-Ansible, which runs services in containers, the Ansible-based OpenStack-Ansible, Canonical's Sunbeam and others. If Ansible is new to you, read Getting started with Ansible first.
Availability zones and host aggregates
- Host aggregate: a grouping of compute nodes made by administrators. Group them as "nodes with GPUs" or "NVMe nodes", attach metadata, and you can make VMs of a particular flavor start only in that group. It is not visible to users.
- Availability zone: a grouping visible to users. Create zones by separating power and racks, and if you start two important VMs in different zones, the service survives even if one side stops.
Live migration
This moves a VM to another compute node without shutting it down, for node maintenance or load balancing.
openstack server migrate --live-migration vm1 # the scheduler picks the target
openstack server migrate --live-migration --host compute02 vm1
There are conditions. The CPU features of the two nodes must match (Nova's cpu_mode and cpu_models settings), and disks must be on shared storage (Ceph, NFS) or copied along with block migration. While it moves, memory copying slows the VM briefly, and a VM that changes memory very rapidly may never finish.
Is OpenStack still used?
Some say OpenStack has faded since Kubernetes took off, but it is still widely used where organizations must run a large cloud in their own data centers: telecoms, public institutions, research labs and large portals. Kubernetes is a platform for running containers, while OpenStack is the layer below that hands out VMs, networks and storage, so the two are often used together. For Kubernetes, see Getting started with Kubernetes.
The project was originally run by the OpenStack Foundation, which renamed itself the OpenInfra Foundation in 2021 and joined the Linux Foundation in 2025. Releases come out every six months, and since 2023 they have been named in a year.number format such as 2023.1 (Antelope). Between SLURP releases, which come once a year, you can upgrade directly and skip the release in between.
Summary
- OpenStack is open source for building a private IaaS cloud from servers, networks and storage. The hypervisor is mostly KVM.
- The core services are Keystone (auth), Nova (VMs), Neutron (network), Glance (images) and Cinder (block volumes), with Swift, Manila, Heat and Horizon added as needed.
- A VM's default root disk is ephemeral. Keep data you need in Cinder volumes.
- Split nodes into controller, network, compute and storage, and run 3 controllers for redundancy in production. Install with a deployment tool such as Kolla-Ansible.
Further reading
- KVM virtualization in practice: installation, bridged networking and disk management
- Getting started with Kubernetes: architecture, objects and kubeadm installation
- Getting started with Ansible: keeping dozens of servers in the same state
- OpenStack documentation
- OpenStack installation guide: conceptual architecture
- Kolla-Ansible documentation
OpenStack (2 posts)
- Getting Started with OpenStack: Architecture, Core Services and Node Layout Reading now
- All-in-One Install with Kolla-Ansible
Leave a Reply