Leanpub Header

Skip to main content

Apache CloudStack — baking a PI

A sovereign Raspberry Pi 5 edge cloud: a four-node CloudStack 4.22 cluster on ARM64, plus a standalone Hailo-10H AI host

Five Raspberry Pi 5 boards, one bench, a real cloud. Build a genuine Apache CloudStack 4.22 cluster on ARM64 — management plane, storage, KVM compute, guest VMs — plus a standalone Hailo-10H AI host with n8n, MQTT and ESP32 at the edge. Automated with Ansible and OpenTofu, monitored end to end, rebuildable from a Git commit, and honest about every limit. Own the whole stack.

Interested in this book? Show your support by saying what you'd like to pay for it!

$
PDF
EPUB
WEB
APP
About

About

About the Book

There is a rack on the bench in front of me: five Raspberry Pi 5 boards, sixteen gigabytes a piece, bolted into a stack the size of a hardback book, fed power and packets over a single PoE lead each. The whole thing draws less than a kettle. By the final chapter it is a genuine, working private cloud — and every layer of it is yours.

Most cloud computing happens somewhere you will never see, on hardware you will never touch, behind an invoice you cannot question. This book takes the opposite path. Over sixteen chapters, four of those boards become a real Apache CloudStack 4.22 cloud on ARM64 — management plane, NFS shared storage, two KVM compute modules, system VMs, guest networks, the lot — while the fifth stands apart as a local AI host carrying a Hailo-10H accelerator, an n8n orchestration engine, and an MQTT bus for ESP32 edge devices. By the end, the lab can sense its surroundings, decide what to do, act on the physical world, watch its own health, and rebuild itself from a Git commit.

What you build, in order:

  • The foundations — an honest bill of materials, NVMe imaging and boot, a properly segmented VLAN design, and hosts prepared as code with Ansible
  • The cloud itself — CloudStack 4.22 and MySQL on one board, NFS storage, the manual ARM64 system VM template (a step x86 users never see — you'll do it yourself and understand it), compute modules joined, and your first aarch64 guests behind a virtual router
  • Infrastructure as code — the whole resource layer declared with OpenTofu, secrets in OpenBao, proved with a destroy-and-reapply round trip
  • The edge and the AI — n8n workflows, MQTT and ESP32 sensors with a device-side safety interlock, and the silicon fork made explicit: which models run accelerated on the Hailo-10H and which run honestly, slowly, on the CPU
  • Making it earn its keep — Prometheus/Grafana monitoring, the power and thermal budget, and ten tiered real-world uses from a whole-house DNS sinkhole to a GitOps self-service cloud where a commit provisions a VM.

The house style is honest framing. This lab is not highly available, not an x86 cloud, and not a benchmark champion — and the text says so every time it matters, because the gap between a working lab and a production cloud is mostly made of redundancy, and pretending otherwise would be the worst thing this book could do. What it is: one of the most honest ways to learn CloudStack there is, at one-hundredth the scale of an enterprise estate and none of the licence cost. Own it down to the last packet and the last watt. 

Share this book

Author

About the Author

Michael Hinsley

Mike Hinsley has spent more than three decades with his hands on real infrastructure — from electronics and engineering through operations, security, cloud and SaaS — and has never lost the habit of wanting to understand the machine all the way down. He is the founder of a UK infrastructure consultancy that helps organisations escape per‑core licensing lock‑in by migrating from VMware/Broadcom to sovereign, self‑owned platforms built on Apache CloudStack, with documented client savings of up to 94%. His guiding principle is one he calls GYOCYO — Grow Your Own, Cook Your Own: own the means of a capability rather than rent it as a finished product. He lives it literally. From a smallholding in rural Cheshire he runs large‑scale aquaponics, IoT‑monitored beehives, and a 28.8 kW solar array backed by 90 kWh of battery storage — the same instrument‑everything, owe‑nothing‑to‑anyone thinking he brings to enterprise clients, proven first on his own land. His HIVE‑DC concept — a data centre in a beehive — grew directly out of that overlap. Mike previously presented "Aquaponics, Apiculture, and Advanced Networking with Apache CloudStack" at the CloudStack European User Group in London. He publishes under the Leaf Spine Books imprint, and is preparing to establish a sustainable‑technology education centre uniting aquaponics, beekeeping and cloud infrastructure under one roof.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub