Changing a VM
A recipe gives a VM its starting size; hobo set changes it afterwards: CPUs, memory, disk size
and shared folders. The disk grows in place, and the guest’s filesystem grows into the new space on
its next boot. hobo provision runs a recipe’s steps again on a running VM, to try them out or to
bring an older VM up to date.
$ hobo set dev --cpus 6 --memory 8GB --disk 120GBGrowing the disk image to 120GBdev: 6 CPUs, 8 GB memory, 120 GB diskThe guest grows into the larger disk at the next hobo start dev.Resize
hobo set dev --cpus 8hobo set dev --memory 16GBhobo set dev --disk 200GB- The VM must be stopped (not suspended: its saved state fits only its old size).
- The disk only grows. Its image grows at once, and the guest’s filesystem grows into the space at
the next
hobo start, on macOS, Linux and Windows alike. - Settings combine:
hobo set dev --cpus 8 --memory 16GBdoes both.
Share folders
hobo set dev --share ~/src --share ~/data:rohobo set dev --unshare dataSee Getting inside for where shares appear in each guest.
Run a recipe’s steps again
hobo provision dev # ./Hobo.toml's [[provision]] stepshobo provision dev recipes/ci.tomlThe VM must be running. Every step runs again, in order; the rest of the recipe (source, size) is
ignored. Write steps to be safe to repeat, and iterate on them here instead of waiting for a full
hobo create.
Rename, keep, delete
hobo rename dev old-dev # stopped or suspended VMs onlyhobo set dev-6b62 --keep # an ephemeral VM stays when it stopshobo delete old-dev