Use Firecracker SDK in daemon

Replace the daemon's hand-rolled Firecracker process/socket client with the official firecracker-go-sdk while keeping the existing VM lifecycle and host-side disk and TAP setup intact.

Build machine configs through the SDK, launch Firecracker through a sudo process runner, resolve the real VM PID after startup, and use the SDK client for Ctrl-Alt-Del instead of raw REST calls. Drop the unused cached Firecracker state and add focused adapter tests for config and process-runner wiring.

Validated with go mod tidy, go test ./..., and make build. A live KVM/Firecracker smoke boot was not run in this environment.
This commit is contained in:
Thales Maciel 2026-03-16 13:26:41 -03:00
parent ea72ea26fe
commit 2539800f5c
No known key found for this signature in database
GPG key ID: 33112E6833C34679
6 changed files with 1393 additions and 179 deletions

1089
go.sum

File diff suppressed because it is too large Load diff