golden_get
Build a reusable golden VM image from a recipe so environments can be forked from it. Takes minutes and downloads ~500 MB; fails if image already exists.
Instructions
Build a golden image from a recipe so environments can be forked from it. Slow and bandwidth-heavy: downloads roughly 500 MB the first time, then imports the appliance, boots it once for cloud-init, shuts it down and snapshots it. Takes minutes, and a Windows image takes closer to an hour because it runs a real installer. A recipe with from instead builds on an existing golden: it forks the base, runs the recipe's setup commands in the fork, and flattens the result into the new golden. Use recipe_list for the names that work here. Fails if the golden already exists - rebuilding one is a decision for the human.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpus | No | CPUs for the golden image (default 2) | |
| image | Yes | image name from a recipe, for example ubuntu-24.04 or alma-9 | |
| memory_mb | No | memory in MB for the golden image (default 2048) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | ||
| golden | Yes |