Skip to content

devvm v0.1.16

Choose a tag to compare

@github-actions github-actions released this 17 Oct 11:46
· 50 commits to master since this release

One config file, discovered VMs, templates

  • ~/.config/devvm/devvm.toml replaces machines/*.toml and config.toml: [templates.*] (how create/setup shape a box) and [machines.*] for remote boxes and hubs (backend = "remote" | "hub", managed = true|false, host + optional user). Hand-edited, comment-preserving, safe to keep in dotfiles.
  • Local smol VMs are discovered from smolvm and never configured. A VM devvm did not create is unmanaged: status, start, stop, shell and exec only, nothing installed, until you hand it over with devvm setup --adopt NAME (which asks you to type its name).
  • setup replaces bootstrap: user → prereqs (now including tmux, gh and mosh) → agent and shim → hook → repos → keys → harden → saved forwards. create makes smol VMs only; a remote box is devvm config add NAME --backend remote --host H --managed then devvm setup NAME, with root adoption and a bounded wait for ssh.
  • New devvm config {path,show,edit,check,add,rm}, the only thing that writes the file. delete of an entry is config rm.
  • status --plain gains a managed column and a verified= column; remote boxes show real reachability, probed on status and cached.
  • Host state moved to ~/.local/state/devvm: daemon sockets, caches, pinned known_hosts, saved forwards (ports/NAME) and managed markers. Saved forwards are per host, including for hub machines.
  • Menu bar app: copy and ports are hidden for unmanaged VMs; the dormant state is gone. These Swift changes were built blind on CI and have not yet been tried on a Mac.

After upgrading from v0.1.15

Run any command once: it moves state, seeds saved forwards and managed markers from the old tree, and prints a pointer. Then write devvm.toml by hand (docs/proposals/config.md §8), run devvm config check, and remove machines/ and config.toml. Daemons started by v0.1.15 keep working in place. Hubs must run v0.1.16 for create/setup HUB/NAME; listing, attach, forwards and cp work against v0.1.15 hubs.

Breaking

Removed: provision, deprovision, bootstrap, defaults, repos rm|clone, --no-clone, remote/hub create, delete of config entries (use config rm) and of unmanaged VMs. The old backend values remote-managed/remote-unmanaged/ssh are rejected with the fix named.