coreapp-vm command, uninstall.sh, stale-system check

- bin/coreapp-vm replaces scripts/create-coreserver-vm.sh: create (downloads
  and checks the CoreServer image when it's missing, resumes an interrupted
  download), list, ip, ssh (own known_hosts), start, stop, delete (asks for
  the name). update.sh symlinks it into ~/.local/bin.
- uninstall.sh removes coreapp-vm, the coreapp network, its hook and ufw
  rules; asks before deleting VMs, the image and keys.
- install.sh runs CoreDesktop's update first when the system wasn't
  upgraded in the last day, as `sibling add` does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 11:40:04 -07:00
co-authored by Claude Opus 5.5
parent b405e35ea8
commit 0654d4c712
9 changed files with 443 additions and 143 deletions
-13
View File
@@ -57,17 +57,4 @@ What we learned provisioning (2026-12-02/03):
## SDK packaging
- [ ] `install.sh`: check when the system was last upgraded, as `sibling`
does (`upgrade_if_stale`), so running it by hand doesn't hit stale-mirror
404s
- [ ] Add coreapp-dev's `uninstall.sh`: the hook, the `coreapp` network,
the ufw rules
- [ ] Make the VM script a command in `~/.local/bin` with a `coreapp-` prefix
(e.g. `coreapp-vm create`). Never use CoreDesktop's names: configure,
update, refresh, sibling, version, audit, report, webapp
- [ ] Have that command download the CoreServer image into
`~/.local/share/coreapp-dev/images/` when it's missing. Image:
`https://nginx.core-x86builder.federatedcomputer.cloud/coreserver-enterprise-x86-26-05-12.qcow2`
(no published checksum; our download's SHA-256 is
`8c3a64e9be12121b71e1a3ad3dd7c6de686734b83ee77f3852d80cee1b6dd4a4`)
- [ ] Tag the first release once install and VM creation work end to end