Leanpub Header

Skip to main content

Apache CloudStack — AI Factory Edition

Building and running a flexible, small-scale yet powerful local AI factory on commodity enterprise hardware

A model you rent can be repriced, throttled or revoked. A model you own cannot. Build a sovereign local AI factory on commodity enterprise hardware: Apache CloudStack, frontier-class open models in 768GB of RAM, GPU passthrough, RAG, fine-tuning, and a multi-agent support desk — with nothing leaving the building. You don't need to be a hyperscaler. Grow your own, cook your own.

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 particular kind of letter that changes how an engineer thinks. For some it is a licensing renewal. Lately, for a growing number of us, it has been the notice that a model you had built into your product is being withdrawn, repriced, or placed behind an export control you cannot satisfy. A model you rent can be revoked by someone else's decision. A model you own cannot.

This book builds, on hardware you can buy today and rack this week, a local AI factory: a small, owned, sovereign platform that runs frontier-class open-weight models on your own iron, serves them to multiple users and tenants, and puts them to work earning their keep. No per-token meter. No revocation risk. Nothing leaves the building.

The platform is Apache CloudStack bent to a new purpose, across four tiers of mostly refurbished commodity iron:

  • The Flex — the chapter that sells the book: two Dell R7525 servers redeployed from saved templates into a four-node inference cluster, a two-node aggregated cluster, or four isolated single-tenant boxes. Three machines from one pair of servers; the templates double as the backups. A sovereignty story you can hand to an auditor
  • The quality brain — a frontier-class open model (roughly 744 billion parameters, mixture-of-experts) held in 768GB of system RAM via llama.cpp, with its honest tokens-per-second envelope on real DDR4
  • An ARM model farm on an Ampere workstation, and a 100Gb RDMA inference fabric reality-checked rather than oversold — cross-host pairs, not a mythical clean mesh
  • The brains put to work — retrieval over your own documents, fine-tuning small models with LoRA/QLoRA on a single 16GB consumer GPU, an n8n multi-agent support desk that triages, answers, guardrails and escalates, and an AI-first web front-end built by your own local coding model
  • The regulated-firm case made concrete — multi-tenant isolation, data governance, and operating the whole estate by the Mars test: if this node were on Mars, could you still recover it?

The reader I have most in mind is the engineer inside an organisation whose data legally cannot leave its walls — finance, legal, healthcare, government. But it is equally for anyone who has watched rented infrastructure become a leash and decided to take it back. You do not need to be an AI researcher; you need a Linux command line, a lab to break things in, and the discipline to measure rather than assume.

The book's contract is honesty: every figure is measured, dated, labelled a vendor's claim, or flagged VERIFY for your own build. You do not need to be a hyperscaler to own a capable AI factory — and you should not pretend to be one.

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