Commit graph

29 commits

Author SHA1 Message Date
ea72ea26fe
Add Go daemon-driven VM control plane
Replace the shell-only user workflow with `banger` and `bangerd`: Cobra commands, XDG/SQLite-backed state, managed VM and image lifecycle, and a Bubble Tea TUI for browsing and operating VMs.\n\nKeep Firecracker orchestration behind the daemon so VM specs become persistent objects, and add repo entrypoints for building, installing, and documenting the new flow while still delegating rootfs customization to the existing shell tooling.\n\nHarden the control plane around real usage by reclaiming Firecracker API sockets for the user, restarting stale daemons after rebuilds, and returning the correct `vm.create` payload so the CLI and TUI creation flow work reliably.\n\nValidation: `go test ./...`, `make build`, and a host-side smoke test with `./banger vm create --name codex-smoke`.
2026-03-16 12:52:54 -03:00
3cf33d1e0a
Streamline VM overlays and rootfs packages
Move the default guest package list into a repo manifest and record a hash beside built rootfs images so run/make-rootfs can warn when the docker-ready image is stale.

Switch the Firecracker launch path to a single sparse root overlay per VM instead of separate /home and /var disks, so many VMs can share the same base image while still installing packages under /var and working from /root.

Keep older images bootable by masking stale home.mount and var.mount units at boot, and scrub those obsolete fstab entries when customize.sh rebuilds an image. Verified with bash -n on the updated scripts; no live VM boot was run in this environment.
2026-03-15 19:36:54 -03:00
9191b7e370
Improve VM lifecycle tooling
Make spawned VMs easier to use and restore from the host.

Add shared DNS and runtime helpers, publish <vm-name>.vm records through mapdns, and teach run/customize/interactive/restore to persist the metadata needed for SSH, DNS cleanup, and clean restores.

Seed per-VM /home and /var disks from the rootfs snapshot so package state is present on first boot, add an interactive customization entrypoint plus ssh.sh and human-friendly list output, and let stop/kill/rm operate on multiple VM identifiers.

Tear down stale TAP, dm, and loop state when VMs stop so restore can recreate them safely, and validate the updated scripts with bash -n plus targeted dry-run harnesses for teardown and restore paths.
2026-03-15 17:48:47 -03:00
a8078f2393 customize base rootfs arg 2026-02-05 14:37:03 -03:00
01517dd902 document kernel artifacts 2026-02-05 13:50:11 -03:00
93c3d1a67b docker rootfs defaults 2026-02-05 02:13:14 -03:00
5f3d60ef0f Fix restore config parsing 2026-02-01 15:37:24 -03:00
7af04b7535
Store VM metadata as JSON 2026-01-31 23:17:12 -03:00
bbd57d8dd2
Use hostname-safe VM names 2026-01-30 12:13:35 -03:00
306412c995
Add rootfs/kernel overrides 2026-01-30 11:08:10 -03:00
f7e372d8db
Customize rootfs without home disk 2026-01-30 10:55:24 -03:00
092700b241
Use shared rootfs with per-VM home 2026-01-29 21:41:33 -03:00
dee329cf39
Add customize workflow 2026-01-29 19:29:13 -03:00
e10a51558e
Harden kill script and DNS config 2026-01-29 16:49:54 -03:00
68cf5f2cbb
Add per-VM NAT and DNS config 2026-01-29 16:22:28 -03:00
60b1865ece
Add logs helper 2026-01-29 15:33:27 -03:00
68a223c463
Store API sockets in runtime dir 2026-01-29 14:59:57 -03:00
f8e7aedeb2
Move VM dirs under state/vms 2026-01-29 14:47:09 -03:00
75f03aeb04
Add vm control scripts 2026-01-29 14:36:16 -03:00
6aa191663a
Rename vm_id field and add list helpers 2026-01-29 13:25:23 -03:00
eedc1fe1d8
Add runtime options and schema 2026-01-29 01:14:29 -03:00
e4039ca7e9
Add VM metadata and naming 2026-01-29 00:09:25 -03:00
5b1de19cf5
Add repo guidelines and verify script 2026-01-27 16:44:44 -03:00
dba2f327f5
lol 2026-01-26 18:05:54 -03:00
87a04e4076
ignore 2026-01-26 18:01:50 -03:00
33b7e2ea1a
Document expected log noise
Explain the benign PCI/SELinux log entries and ignore local log files in git.
2026-01-21 19:30:33 -03:00
f07b2da0af
Ignore transient VM artifacts
Prevent state directories, sockets, and scratch rootfs files from being tracked.
2026-01-21 19:09:21 -03:00
a0c298d9b0
Add Firecracker runtime artifacts
Store the microVM binary, kernel, rootfs, and SSH key so the local launcher can boot without external downloads.
2026-01-21 18:55:34 -03:00
50c851cf07
init 2026-01-21 18:45:45 -03:00