Recipes
A recipe is a TOML file, conventionally Hobo.toml, that says what a VM is built from and how
it’s set up. hobo init writes a starter that’s already pinned to an exact macOS build or Ubuntu
release, and hobo validate checks a recipe without building anything. Every VM gets the same
conventions (user hobo, password hobo, passwordless sudo, SSH); [[provision]] steps add
the rest.
hobo images # macOS builds this Mac can runhobo init 26B123 # a Hobo.toml pinned to that buildhobo validateStart a recipe
hobo init writes Hobo.toml in the current directory. --os picks the guest:
| Command | Guest |
|---|---|
hobo init |
The newest macOS this Mac supports, unpinned (ipsw = "latest") |
hobo init 26B123 |
That macOS build, pinned |
hobo init --os linux |
The newest Ubuntu LTS, pinned, with a desktop |
hobo init --os linux 26.04 --server |
Ubuntu 26.04 without a desktop |
hobo init --os windows ~/Downloads/Win11_Arm64.iso |
Windows 11 on Arm, from an ISO you downloaded |
-o writes a different file, so one directory can hold several recipes, and hobo create takes
the file to build from:
$ hobo init --os linux -o linux.toml$ hobo init --os windows ~/Downloads/Win11_Arm64.iso -o windows.toml$ hobo create ubuntu linux.toml--force overwrites an existing recipe file.
Pick an image
hobo images lists what you can pin to. macOS builds come from ipsw.me, Ubuntu images from
cloud-images.ubuntu.com:
$ hobo imagesNAME VERSION BUILD RELEASED SIZEmacOS 27 Golden Gate 27.2 26B123 2026-10-26 25.6 GBmacOS Tahoe 26.6.2 25G83 2026-08-17 19.77 GBmacOS Sequoia 15.6.1 24G90 2025-08-20 16.81 GB
$ hobo images --os linuxNAME VERSION CODENAME RELEASE SUPPORT ENDS SIZEUbuntu 26.10 26.10 Stonking Stingray 20261105 2027-07-15 977.8 MBUbuntu 26.04 LTS 26.04 Resolute Raccoon 20261016 2031-05-29 940.4 MBUbuntu 24.04 LTS 24.04 Noble Numbat 20261017 2029-05-31 616.5 MBOnly the newest build of each version is listed; --all lists every one. macOS before 15 isn’t
listed, and create refuses it. hobo images 26B123
shows one build’s URL, SHA-256 and size. There’s no catalog for Windows: bring a Windows on Arm
ISO from Microsoft.
Downloads land in ~/Downloads under the vendor’s filename, where you can see and delete them,
and are checked against the recipe’s SHA-256 before use.
What a recipe holds
cpus = 4 # macOS defaults: 4 CPUs, 8GB memory, 80GB diskmemory = "8GB"disk = "80GB"
[source]ipsw = "https://updates.cdn-apple.com/…/UniversalMac_27.2_26B123_Restore.ipsw"sha256 = "…"
[[provision]] # run once each, in order, over SSHtype = "shell"inline = "softwareupdate --install-rosetta --agree-to-license"
[[provision]]type = "file"source = "files/zshrc" # relative to the recipedestination = "/Users/hobo/.zshrc"[source]holds exactly one ofipsw(macOS),image(a Linux cloud image) oriso(a Windows installer), with itssha256. The key decides the guest OS.ipsw = "latest"is the only unpinned source:hobo createwarns and prints the lines to pin it with.cpus,memory,diskare the VM’s starting size.hobo setchanges them later.[[provision]]steps run once each, in order, at the end ofhobo create:type = "shell"withinlineorpath(a script next to the recipe), plusprivileged(run as root; the default) andenv(a table of environment variables).type = "file"copiessourcefrom the host todestinationin the guest.- On Windows, scripts are PowerShell.
[security](macOS only) turns off SIP and AMFI. Turning SIP off needs one command typed in recoveryOS, socreatestops and opens the VM’s window for it.[gui_testing](macOS only) lets SSH sessions drive the guest’s UI. See Screenshots and GUI testing.[windows](Windows only):resizable_display = truegives a 1920×1200 display that follows the window. See Guest operating systems.
Check a recipe
$ hobo validateHobo.toml: Linux, 4 CPUs, 4GB memory, 32GB disk, 1 provision step(s)It parses the recipe and checks that the files its steps name exist, and warns about an unpinned
source. Give it a path to check another recipe: hobo validate recipes/ci.toml.
Try steps without rebuilding
A full macOS build takes a while, so hobo provision dev runs a recipe’s steps again on a running
VM, in order, without rebuilding. Steps run again in full, so write them to be safe to repeat.
A recipe is an input to hobo create, not the VM’s record: share it, and someone else builds the
same VM. The VM keeps a copy of the recipe it was built from.