Skip to content

Your cloud

Your own cloud, on your terms.

Start with the simplest layer that solves the job. Docker runs applications on one machine; Kubernetes coordinates container applications across machines; OpenStack turns hardware into a self-service platform for virtual machines, networks and projects. None requires a SaaS account.

Saphira Linux dragon mascot

First decide what you need to run

“Cloud” is not another name for somebody else’s computer. It is a useful arrangement of machines you own or control, plus the software and habits that make workloads repeatable. You do not earn points for using every layer: a well-run Docker host can be a better answer than a cluster, and a few virtual machines can be a better answer than OpenStack.

One application host

Start with Docker
Package one website, worker, database or development environment as a container and run it on one Saphira machine. You still decide its ports, storage, backups and updates, but you do not need to operate a cluster.

Several container hosts

Choose Kubernetes when it pays its way
Use a control plane to keep track of container applications across machines. It helps when placement, controlled changes and replacement after a worker failure solve a real problem, not merely because Kubernetes is fashionable.

A shared VM platform

Choose OpenStack deliberately
Give several people or teams projects, images, virtual networks and virtual machines through an API and dashboard. It manages infrastructure; it does not replace the applications and operating systems inside the VMs.

Docker: one machine, packaged applications

A container is an application packaged with the files it needs to run. Docker builds and starts those packages. It is a useful first stop for a web service, an internal tool, a reproducible development environment or several small services on one machine. It does not coordinate several machines by itself.

apk update
apk add docker-engine docker-cli docker-compose docker-buildx

# Saphira: OpenRC
rc-update add dockerd default
rc-service dockerd start

# SaphiraD: systemd
systemctl enable --now dockerd.service

docker run --rm hello-world

docker-engine provides the dockerd service, while the CLI, Compose and Buildx are separate packages. Both service definitions ship in the APK, but installing it does not enable either one. Docker depends on containerd; enable containerd too on a new host. Images, container write layers and named volumes live under /var/lib/docker. A named volume is where durable application data belongs; a container’s writable layer is not a backup strategy.

Record published ports and firewall rules before exposing a container, use named volumes for data that matters, keep registry credentials out of images and Compose files, and collect docker logs before deleting a failed container. Docker-daemon access is effectively administrator access to the host, so grant it deliberately.

Continue to the Saphira Docker guide →

Kubernetes: coordinate containers, not magic

Kubernetes is the organiser for container workloads on more than one machine. A control plane keeps the intended state; worker machines run the requested containers; a private Pod network carries container traffic; and a separate Service network gives applications stable internal destinations. It can replace a failed workload, but it cannot choose your addresses, storage or security policy for you.

apk update
apk add containerd cni-plugins kubernetes kubectl saphira-kubernetes

# Read the installed configuration contract and example before creating a cluster.
sed -n '1,240p' /usr/share/doc/saphira-kubernetes/CONFIG.md
sed -n '1,160p' /usr/share/doc/saphira-kubernetes/example-cluster.conf

Saphira publishes kubernetes (kubelet, kubeadm and kube-proxy),kubectl, containerd and CNI networking dependencies. Thesaphira-kubernetes helper reads the plan you write, checks the authorised machines, shows what it intends to do and requires explicit confirmation to apply it. Installing those packages starts no cluster and does not authorise a remote host.

Choose non-overlapping Pod and Service address ranges, decide which machine is the control plane, record every worker and plan persistent storage before usingkubeadm. Enable kubelet only after kubeadm has supplied its configuration: use rc-update add kubelet default andrc-service kubelet start on Saphira, orsystemctl enable --now kubelet.service on SaphiraD. Kubernetes uses containerd directly; Docker is not a prerequisite for a Kubernetes host.

A single carefully run Docker host remains the calmer choice when one machine meets the need. Move to Kubernetes when multi-machine coordination, controlled application updates and recovery from a worker failure are worth the additional operations work.

Read the configuration-led Kubernetes setup guide →

How the layers can work together

These are options, not a compulsory ladder. Docker can run directly on a Saphira host. Kubernetes can run container workloads on physical machines. OpenStack can create the virtual machines underneath either one. A VM may run Docker; several VMs may form a Kubernetes cluster. That does not mean every OpenStack installation needs Kubernetes, or every Kubernetes cluster needs OpenStack.

Keep it simple

One server and a few services: Docker with explicit volumes, ports and backups.

Spread applications

Several machines running one container platform: Kubernetes with a planned network, storage and recovery process.

Provide infrastructure

Several users needing self-service virtual machines and networks: OpenStack above QEMU/KVM, libvirt and the physical network.

The work every option still needs

Saphira packages both OpenRC and systemd service definitions. Saphira uses/etc/init.d/ with rc-service; SaphiraD uses/usr/lib/systemd/system/ with systemctl. The same package can support both editions, but do not mix their service commands. Installing a package does not enable its service automatically.

  • Networking: reserve addresses, record routes and DNS names, choose which ports are public, and review firewall rules before an application or control plane starts accepting traffic.
  • Storage: decide where durable data lives, how it is backed up, how a restore is tested and how much capacity remains. Containers, Pods and virtual machines do not make data durable merely by existing.
  • Credentials: keep registry logins, SSH keys, cluster certificates and OpenStack service passwords out of source trees and world-readable configuration. Know who is allowed to administer each layer.
  • Change and recovery: keep an inventory, choose maintenance windows, test upgrades on an appropriate smaller system when you can, and write down how to recover a host, a workload and its data separately.

If OpenStack is the right answer

A single server can run a virtual machine with QEMU, KVM or libvirt. That is useful, but it does not by itself provide a catalogue of images, self-service networks, projects, an API, a scheduler, or a clear record of who owns what. A cloud is the control system that makes those resources repeatable and manageable across one or more physical machines.

OpenStack is that control system. It does not replace Linux, switches, disks, backups or the hypervisor. It coordinates them. The Saphira role packages assemble a controller, compute and storage preparation role so that an operator does not have to begin with unrelated upstream guides and distribution-specific integration work.

For a small to medium private cloud or a serious lab, 16 or more CPU cores and 32 GB to 128 GB of RAM is a sensible planning range. It is guidance, not a guaranteed minimum: virtual machine sizes, storage, networking and the number of users determine the real need. A lab may combine roles; a production design should leave capacity for the control plane, backups, updates and a host failure.

Current Saphira status

The controller, compute, storage and documentation packages are now published. A published package is not proof that every optional OpenStack feature is complete: controller setup stops if noVNC web assets are absent, and Cinder storage still needs its first deployed create/attach/read-back/delete proof even though the iSCSI target chain is now published. Those gates are explained rather than hidden in the role guides.

Current Saphira status

The controller, compute, storage and documentation packages are now published. A published package is not proof that every optional OpenStack feature is complete: controller setup stops if noVNC web assets are absent, and Cinder storage still needs its first deployed create/attach/read-back/delete proof even though the iSCSI target chain is now published. Those gates are explained rather than hidden in the role guides.

Start with the OpenStack planning guide before selecting controller, compute or storage roles →

Cloud infrastructure is more than a virtual machine

QEMU emulates hardware. KVM is the Linux kernel interface that lets QEMU use compatible processor virtualisation instructions. Libvirt is the management layer that asks QEMU/KVM to create, stop and inspect guests. Together they are the execution layer: they make a virtual machine run on one host.

OpenStack sits above that layer. Nova records and schedules instances; Neutron creates and connects virtual ports; Glance supplies images; Keystone checks identity and permissions; Placement reports usable resource inventory. Its APIs and Horizon dashboard let several users request resources without each person manually signing in to a hypervisor.

Infrastructure means controllers, compute hosts, network switches and storage. A guest operating system lives inside an instance. Its website, database, family service, test environment or business application lives inside the guest. OpenStack manages the infrastructure boundary; it does not automatically patch, secure or back up an application simply because the application runs in a VM.

Architecture: who talks to whom

The roles configured by the Saphira packages. This is a service map, not a high-availability promise.

User and dashboard

Browser → Horizon → Keystone authentication → OpenStack APIs. Horizon is a web client of the cloud, not the cloud by itself.

Controller node

Keystone, Glance, Placement, Nova API/conductor/scheduler, Neutron API/RPC, Horizon, MariaDB, RabbitMQ and memcached.

Compute node

Nova Compute, libvirt, QEMU/KVM, Open vSwitch, Neutron OVS and DHCP agents, then the running guest VM.

Network path

Neutron records a network and port. The OVS agent binds that port to the configured provider bridge; the bridge reaches the selected physical NIC and physical network. DHCP can serve the subnet only when the Neutron DHCP agent, RPC path and network configuration all work.

Storage: dependencies published, proof pending

Cinder, LVM and the iSCSI target chain are published. Persistent Cinder export and attachment are not yet a completed role: the deployed volume lifecycle has not been proven end to end.

ComponentWhy it existsHow it communicates
KeystoneIdentity, tokens, projects, users, roles and service catalogue.Every API request presents a token; services also use service credentials and tokens to call each other.
Nova and PlacementInstance API, scheduling and resource inventory.Nova uses Keystone, Glance, Neutron, Placement and RabbitMQ to choose and direct a compute host.
NeutronNetworks, subnets, ports, DHCP and virtual-network agents.HTTP API plus RabbitMQ RPC to OVS and DHCP agents; the API answering alone is not enough.
GlanceImage catalogue and delivery.Nova asks for the boot image selected for an instance.
HorizonWeb dashboard.Uses Keystone and the service APIs; it needs collected static files to render and operate correctly.
CinderPersistent block volumes.Coordinates a volume service, LVM backend and iSCSI target. The packages are published; the Saphira deployment and volume lifecycle proof are still outstanding.
MariaDB, RabbitMQ, memcachedDurable service data, asynchronous RPC and token/cache support.They are supporting infrastructure on which the APIs and agents depend.

From Launch Instance to a booted guest

  1. The user signs in to Horizon. Horizon gets a Keystone token scoped to the user’s project and sends API requests on the user’s behalf.
  2. The user chooses an image, flavor and network. Nova validates the request and consults Keystone, Glance, Neutron and Placement.
  3. Placement and Nova scheduling find a compute host reporting suitable capacity. The host must already have been discovered into Nova’s cell.
  4. Nova sends work through RabbitMQ to Nova Compute. Neutron’s control services and agents prepare the virtual port and its bridge binding.
  5. Nova Compute asks libvirt to start QEMU. With /dev/kvm, the guest uses hardware virtualisation; without it, QEMU emulates the CPU in software and is much slower.
  6. The guest boots from the selected image. ACTIVE means Nova considers the build successful; it does not independently prove that the guest received DHCP, finished booting, has a route, or accepts your connection.

Terms you will use

Hypervisor
The host software that starts and supervises virtual machines. Saphira compute nodes use libvirt to control QEMU, with KVM acceleration when the host exposes /dev/kvm.
Virtual machine / instance
A guest operating system running on virtual hardware. OpenStack calls its managed record an instance; the guest still needs its own users, updates, backup plan and applications.
Image
A reusable boot-disk template, such as a cloud-ready Linux QCOW2 image. Glance stores and supplies images.
Flavor
A named requested size: virtual CPU, RAM and disk. A flavor is not a reservation; a suitable compute host must still have capacity.
Project
An ownership and permission boundary for users, networks, instances and volumes. Projects are useful for teams, customers, labs or separate private services.
Network
A virtual Layer-2 network. Neutron records it, and agents on the compute host bind its ports to the configured virtual and physical network path.
Volume
A persistent block disk managed by Cinder and attached to an instance. It is different from local compute storage and the instance's ephemeral disk.

Useful shapes for a private cloud

Testing and learning

Create isolated instances and networks for upgrades, experiments and training without repurposing the host that runs a live service.

Separate projects

Give different teams, customers or household services distinct projects, credentials and resource ownership.

Private services

Run a website, development tool or internal application in a guest while keeping host and guest administration separate.

Business infrastructure

Standardise how machines and networks are created. Capacity planning, patching, backups and recovery drills still belong to the operator.

Plan before installing

Choose stable controller and compute addresses, decide which physical network and NIC carry provider traffic, record the controller’s public console hostname, and keep service credentials separate from the administrator password. A dedicated provider NIC is less disruptive than bridging the only interface carrying SSH.

The recipes do not establish a supported minimum CPU, RAM or disk specification, and they do not validate a combined controller-and-compute machine. Size from your measured workload and treat single-host roles as unverified until you have tested them yourself.

# Read-only planning and inventory tool: it does not deploy services.
apk add saphira-openstack
saphira-openstack init
saphira-openstack inventory --file /etc/saphira-openstack/inventory.ini --check

The wizard may inspect local interfaces, bridges, routes and storage read-only, then writes an inventory only after confirmation. Use it to record intent; use the role guides to configure roles.

Continue with a role

For concepts beyond Saphira packaging, use the official OpenStack documentation for Keystone, Nova, Neutron, Glance, and Cinder. Upstream capability is not evidence that a Saphira role currently configures it.