Foreword
Many data centers are looking for a way out of expensive virtualization licenses, and not every one of them wants to run OpenStack with its dozens of services right away. OpenNebula sits in between: a complete private cloud with a web UI, tenants, networks, backups, and APIs that fits on a single machine just as well as on hundreds of hosts.
This book does not explain OpenNebula from the outside. You install it, day by day, and build a small application on it as an appliance: notes-api with Postgres, first from two VMs, then as a service, then from code. Every output comes from a real run, and some chapters show what went wrong during testing: the database whose configuration disappears on a rebuild, the memory reservation that is silently ignored, the service that gets stuck while scaling.
Who this book is for
For admins who want to build a private cloud or migrate away from VMware, for platform teams, and for anyone who wants to understand how a cloud works under the hood. You should be comfortable with Linux on the command line and know what a VM, an IP address, and SSH are. Python and Terraform help on Day 12 and 13, but they are not a must.
How the book is structured
16 training days, each with the same structure:
- Goal and Briefing: what it is about, in a few paragraphs.
- Drills: step by step, every command with its expected output.
- Checkpoint: individual commands that show whether you have reached the goal.
- Challenge: a task with a hint and a solution.
- Enterprise Note: what is different in production compared to the lab.
Day 0 to 2 lay the foundation, Day 3 to 7 cover images, templates, networks, appliances, and the lifecycle. Day 8 to 11 bring tenants, OneFlow, your own images, OneGate, and hooks. Day 12 to 14 are automation and operations. Day 15 is a Competition made of five real incidents. At the end you will find a cheat sheet and a final exam.
What you need
- A Linux VM with Ubuntu 24.04, 2 CPUs, 4 GB RAM, a 30 GB disk, and nested virtualization, because it runs VMs of its own. Day 0 shows how to check this.
- Internet access for the VM.
- About 18 hours, spread over as many days as you like.
Versions
Tested with OpenNebula 7.4.1 (miniONE 7.4.2) on Ubuntu 24.04 with
KVM, Alpine Linux 3.20, Postgres 16, Podman 5.2, OpenTofu 1.13.9, and
the OpenNebula provider 1.5.0. Newer versions usually behave the same,
but the output may differ. When in doubt, --help and the
documentation at docs.opennebula.io will help.
Companion code
All templates, scripts, and solutions are on GitHub:
github.com/thomaszachmann/opennebula-zum-anfassen. In
loesung/tagNN you will find the files for each day, in
wettkampf/ the files for Day 15.
Enjoy your drills.
Thomas Zachmann