OpenStack: Introduction, Test-drive and Basic Operations
OpenStack is open-source software for building a cloud. It joins servers, storage and networks into a system that users can request resources from.
You can use its web dashboard, Horizon, or type commands. Different OpenStack services handle identity, virtual machines, images, storage and networks. This lesson follows how they work together.
Using AWS is like eating at a big restaurant chain. OpenStack is like getting the full recipe book and kitchen equipment for free so you can run the same kind of restaurant in your own building – but you must run the kitchen yourself.
OpenStack is open-source software for managing cloud computing, storage and networks. Users request resources through APIs (Application Programming Interfaces), commands or the Horizon web dashboard. It can be used to build private or public clouds.
History in brief
| Year | Event |
|---|---|
| 2010 | Started by Rackspace (it gave Swift object storage) and NASA (it gave Nova compute). First release: Austin. |
| 2012 | The OpenStack Foundation was formed. |
| Releases | Named in alphabetical order: Austin, Bexar, Cactus, … Queens, Rocky … Zed. Since 2023 they use the year: 2023.1 Antelope, 2023.2 Bobcat, 2024.1 Caracal, 2024.2 Dalmatian, 2025.1 Epoxy … |
| How often | A new release every six months. |
| Today | Managed by the OpenInfra Foundation, with thousands of contributors. |
OpenStack core services
OpenStack is not one program – it is a set of services, each with its own project name:
| Service | Project | What it does | AWS equivalent |
|---|---|---|---|
| Compute | Nova | Creates and manages virtual machines (KVM (Kernel-based Virtual Machine) by default) | EC2 (Elastic Compute Cloud) |
| Networking | Neutron | Networks, subnets, routers, floating IPs (Internet Protocols), security groups (software-defined networking) | VPC (Virtual Private Cloud) |
| Block storage | Cinder | Disks (volumes) that you attach to VMs; data stays even if the VM is deleted | EBS (Elastic Block Store) |
| Image service | Glance | Stores VM images (qcow2, raw, ISO) to start VMs from | AMI (Amazon Machine Image) |
| Identity | Keystone | Login, permissions, the list of services (catalogue), projects/users/roles | IAM (Identity and Access Management) |
| Object storage | Swift | Large, safe storage for files (objects) | S3 (Simple Storage Service) |
| Dashboard | Horizon | The website for users and admins | Management Console |
| Orchestration | Heat | Templates that create a whole set of resources at once | CloudFormation |
| Placement | Placement | Keeps track of how much CPU (Central Processing Unit)/RAM (Random Access Memory)/disk each server has and uses, for scheduling | – |
| Telemetry | Ceilometer / Gnocchi | Measuring usage and metrics | CloudWatch |
| Shared file systems | Manila | Shared folders (NFS (Network File System)/CIFS) | EFS (Elastic File System) |
| Load balancer | Octavia | Load balancing as a service | ELB (Elastic Load Balancing) |
| Containers | Magnum / Zun | Kubernetes clusters / containers | EKS (Elastic Kubernetes Service)/ECS (Elastic Container Service) |
| Bare metal | Ironic | Provides whole physical servers | EC2 bare metal |
Nova = new star → creates new VMs. Neutron = a particle → network. Cinder (block of burnt coal) → block storage. Glance (a quick look) → images. Keystone (the stone that holds an arch) → identity, it holds everything together. Swift (fast bird) → object storage. Horizon → the view, the dashboard. Heat → orchestration (heats things up, builds stacks).
Nova (compute), Neutron (network), Cinder (block), Glance (image), Keystone (identity), Swift (object) – plus Horizon (dashboard) and Heat (orchestration).
How the services work together
When a user launches a VM, many services cooperate:
sequenceDiagram
participant U as User (Horizon / CLI)
participant K as Keystone
participant N as Nova API
participant S as Nova scheduler
participant G as Glance
participant Nt as Neutron
participant C as Nova compute (KVM host)
U->>K: Authenticate (user, password, project)
K-->>U: Token + service catalogue
U->>N: POST /servers (image, flavor, network, key)
N->>K: Validate token
N->>S: Pick a host (filters & weights)
S-->>N: compute-03
N->>C: Build instance
C->>G: Download image
C->>Nt: Create port, get IP
C->>C: libvirt/KVM boots VM
C-->>U: Instance ACTIVE
VM creation:
- Keystone checks the user and issues a token, which is proof of login.
- Nova receives the VM request and chooses a host.
- Glance supplies the image used to start the guest system.
- Neutron supplies the network connection and IP address.
- KVM/libvirt starts the VM. Its state becomes ACTIVE.
Conceptual architecture
flowchart TB
H[Horizon dashboard] & CLI[openstack CLI / SDK] --> APIs
subgraph APIs[REST APIs]
KS[Keystone] --- NV[Nova] --- NT[Neutron] --- CI[Cinder] --- GL[Glance] --- SW[Swift] --- HT[Heat]
end
NV --> HV[Hypervisors – KVM / QEMU]
NT --> OVS[Open vSwitch / OVN]
CI --> ST[(LVM / Ceph / SAN)]
GL --> ST2[(Image store – file / Swift / Ceph)]
APIs --- MQ[[Message queue – RabbitMQ]]
APIs --- DB[(MariaDB / MySQL)]
Every service:
- offers a REST (Representational State Transfer) API (so Horizon, the CLI (Command-Line Interface) and programs can all use it),
- stores its information in a SQL (Structured Query Language) database (MariaDB/MySQL),
- and its internal parts talk to each other through a message queue (RabbitMQ) – like a shared notice board where parts leave messages for each other.
Key OpenStack terms
| Term | Meaning |
|---|---|
| Project (tenant) | A separate box of resources and users – like one department's own space. Limits (quotas) apply per project. |
| User / role | A person/program and what it may do in a project (admin, member, reader). |
| Domain | A group of projects and users – used when one cloud serves several organisations. |
| Instance | A running virtual machine. |
| Image | A ready disk to start a VM from (for example cirros-0.6.2-x86_64-disk.img, an Ubuntu cloud image). |
| Flavor | The size of a VM – vCPUs, RAM, root disk (m1.tiny, m1.small …), like T-shirt sizes. |
| Key pair | An SSH (Secure Shell) key placed into the VM so you can log in securely without a password. |
| Security group | Firewall rules for VMs – which ports are open. |
| Network / subnet / router | Virtual networks that users create themselves (self-service networking). |
| Floating IP | A public IP address connected to a VM through a router (NAT (Network Address Translation)), so the outside world can reach it. |
| Volume | A permanent disk attached to a VM. |
| Availability zone / region | A group of servers inside one cloud / a separate cloud installation in another place. |
Default flavors
| Flavor | vCPUs | RAM | Root disk |
|---|---|---|---|
| m1.tiny | 1 | 512 MB | 1 GB |
| m1.small | 1 | 2 GB | 20 GB |
| m1.medium | 2 | 4 GB | 40 GB |
| m1.large | 4 | 8 GB | 80 GB |
| m1.xlarge | 8 | 16 GB | 160 GB |
OpenStack test-drive with DevStack
DevStack is a set of scripts that installs a complete OpenStack on one machine from source code – great for learning, never for production.
Requirements
- A fresh Ubuntu 22.04/24.04 VM (or Rocky Linux) with at least 4 vCPUs, 8 GB RAM, 40 GB disk, and Internet access.
- Hardware virtualization enabled (or nested virtualization) so KVM can be used; otherwise slower QEMU (Quick Emulator) is used.
Installation
# 1. Create the 'stack' user with sudo rights
sudo useradd -s /bin/bash -d /opt/stack -m stack
sudo chmod +x /opt/stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo -u stack -i
# 2. Download DevStack
git clone https://opendev.org/openstack/devstack
cd devstack
# 3. Minimal configuration
cat > local.conf <<'EOF'
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=192.168.56.10
EOF
# 4. Install (20–40 minutes)
./stack.sh
What each step does:
- Creates a special user called
stackthat DevStack runs as, with permission to usesudo. - Downloads DevStack from the official OpenStack code site.
- Writes a small settings file
local.confwith passwords and this machine's IP address. - Runs the installer – it downloads and sets up all the services.
DevStack prints the dashboard address and test account details when setup finishes. In this example, the address is http://192.168.56.10/dashboard. Use the accounts and password set in the lab configuration.
Basic OpenStack operations (Horizon)
Log in as demo to the project demo. The Project tab has everything a cloud user needs:
| Operation | Where in Horizon |
|---|---|
| See usage and quota | Project → Compute → Overview |
| Upload an image | Project → Compute → Images → Create Image |
| Create a key pair | Project → Compute → Key Pairs → Create Key Pair |
| Create a network | Project → Network → Networks → Create Network (name, subnet range (CIDR (Classless Inter-Domain Routing)), gateway, DHCP (Dynamic Host Configuration Protocol)) |
| Create a router | Project → Network → Routers → Create Router → set the external gateway → add an interface to the private subnet |
| Open firewall ports | Project → Network → Security Groups → Manage Rules → add SSH (22) and ICMP (Internet Control Message Protocol) (ping) |
| Launch an instance | Project → Compute → Instances → Launch Instance: Details → Source (image) → Flavor → Networks → Security Groups → Key Pair → Launch |
| Give it a public IP | Instance actions → Associate Floating IP |
| Create & attach a disk | Project → Volumes → Create Volume → Manage Attachments |
| Console / boot log | Instance → Console / Log tabs |
| Instance actions | Pause, suspend, shut off, soft/hard reboot, resize, snapshot, delete |
| See the network picture | Project → Network → Network Topology |
Instance states
BUILD (being created) → ACTIVE (running) → (SHUTOFF, PAUSED, SUSPENDED, RESIZE/VERIFY_RESIZE, SHELVED) → DELETED.
ERROR appears if scheduling or booting fails – for example "No valid host was found" when the quota or the cloud's capacity is used up.
Virtual lab · OpenStack · 30 min
Launch and access an instance in the OpenStack Horizon dashboard
Test-drive a DevStack cloud as the demo user: create a key pair and security group, launch a CirrOS instance with the Launch Instance wizard, give it a floating IP and attach a persistent Cinder volume.
Summary
- OpenStack is a free, open-source cloud operating system for building private/public IaaS (Infrastructure as a Service), with a new release every six months.
- Core services: Nova, Neutron, Cinder, Glance, Keystone, Swift, plus Horizon and Heat.
- Services talk through REST APIs, a message queue and SQL databases; Keystone checks every request.
- DevStack gives a single-machine test-drive; Horizon's Project tab does the basic operations: images, key pairs, networks, routers, security groups, instances, floating IPs and volumes.
Practice questions
- What is OpenStack? List its core services and their functions.
- Map OpenStack services to their AWS equivalents.
- Explain, with a sequence diagram, what happens when a user launches an instance.
- Explain the OpenStack terms project, flavor, image, key pair, security group and floating IP.
- Write the steps to install OpenStack using DevStack.
- List the basic operations performed in the Horizon dashboard.
Practise this topic
Hands-on virtual lab
Apply what you just read in a realistic, guided simulation. Free with a verified account.
Create a free account to track your progress and unlock virtual labs.