banger/internal/daemon
Thales Maciel 60294e8c90
Fix VM lifecycle issues behind verify.sh
Make the Firecracker and bangerd processes outlive short-lived CLI request contexts so vm create no longer kills the VMM or daemon as soon as the RPC returns.

Fix fresh-VM SSH by flattening the seeded /root work disk when the copied home tree lands under a nested root/ directory, and write a guest sshd override to keep root pubkey auth explicit while debugging.

Harden teardown and smoke diagnostics: verify.sh now reports early Firecracker exit and delete failures directly, while dm snapshot cleanup tolerates already-gone handles and retries busy mapper removal long enough for Firecracker to release the device.

Validation: go test ./..., make build, bash -n verify.sh, direct SSH against a fresh VM, and a live ./verify.sh run that now completes with [verify] ok.
2026-03-17 14:43:09 -03:00
..
daemon.go Propagate RPC cancellation to daemon requests 2026-03-16 18:28:33 -03:00
daemon_test.go Propagate RPC cancellation to daemon requests 2026-03-16 18:28:33 -03:00
images.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
logger.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
logger_test.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
nat.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
nat_test.go Manage NAT directly from VM records 2026-03-16 13:50:54 -03:00
preflight.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
snapshot.go Fix VM lifecycle issues behind verify.sh 2026-03-17 14:43:09 -03:00
snapshot_test.go Rollback partial dm snapshot startup 2026-03-16 14:06:17 -03:00
vm.go Fix VM lifecycle issues behind verify.sh 2026-03-17 14:43:09 -03:00
vm_test.go Reject invalid VM CPU and memory values 2026-03-16 16:28:17 -03:00