Commit graph

17 commits

Author SHA1 Message Date
73cdf2eb74 fix: run e2fsck before restart boot, set panic=0 to prevent reboot loops 2026-04-11 14:41:02 +00:00
149bc2985a fix: address CI failures and review feedback 2026-04-11 02:08:58 +00:00
15ad7e6632 feat: add toys to guest image 2026-04-11 01:54:21 +00:00
99ad3b4cf8 fix: xfce session crash, 10gb disk with resize on boot 2026-04-10 15:07:39 +00:00
eb9d2a76df feat: nvme disk on m6 2026-04-10 04:05:14 +00:00
74e54d4c36 fix: bump VM to 3GB RAM / 2 vCPUs, disable XFCE session saving 2026-04-10 03:03:17 +00:00
07975fb459 feat: vsock mmds snapshot 2026-04-10 02:26:56 +00:00
39f8882c30 chore: zsh prompt alignment 2026-04-10 00:58:05 +00:00
3eb610b703 feat: firecracker mmds identity 2026-04-10 00:53:59 +00:00
500354cd9b fix: address gateway review findings 2026-04-09 17:52:15 +00:00
2db57d0507 fix: fix code review issues 2026-04-09 14:42:46 +00:00
26b5d2966d feat(contracts): add published ports, snapshot request, and storage report types 2026-04-09 14:06:00 +00:00
Hari
b5c97aef07 host api alignment (#7)
* feat: add Firecracker API client methods for VM pause/resume and snapshots

Add PatchVm, GetVm, PutSnapshotCreate, and PutSnapshotLoad methods to the
API client, along with supporting types (VmState, SnapshotCreateParams,
SnapshotLoadParams, MemBackend).

* feat: add snapshot data layer - contract types, model, store, config

Add SnapshotID and snapshot contract types, SnapshotRecord model,
store interface CRUD methods with file store implementation,
snapshot paths helper, SnapshotsDir config, and directory creation.

* feat: add runtime methods for VM pause, resume, snapshot, and restore

Implement Pause, Resume, CreateSnapshot, and RestoreBoot on the
firecracker Runtime. RestoreBoot launches a jailer, stages snapshot
files into the chroot, loads the snapshot, and resumes the VM.

* feat: add daemon snapshot create, restore, and reconciliation logic

Implement CreateSnapshot (pause, snapshot, COW-copy disk, resume),
RestoreSnapshot (COW-copy disk, RestoreBoot, wait for guest),
GetSnapshot, ListSnapshots, DeleteSnapshotByID, and crash recovery
reconciliation for snapshot and restore operations.

* feat: add HTTP endpoints for snapshot create, get, list, delete, restore

Wire 5 snapshot routes: POST /machines/{id}/snapshots (create),
GET /machines/{id}/snapshots (list), GET /snapshots/{id} (get),
DELETE /snapshots/{id} (delete), POST /snapshots/{id}/restore (restore).

* fix: cross-device rename, restore network, and snapshot cleanup

- Replace os.Rename with copy+remove for moving snapshot files out of
  /proc/<pid>/root/ (cross-device link error on Linux)
- Reconfigure network interface after snapshot load so the restored VM
  uses its own tap device instead of the source VM's
- Clean partial snapshot dirs immediately on failure instead of only
  via reconcile
- Reject snapshot requests while a machine operation is already pending

* fix: test and modify snapshot runtime

* feat: snapshot lifecycle update, align runtime issues between host image
and daemon
2026-04-08 22:21:46 -04:00
9acbf232eb feat: add host-managed backend ssh key injection 2026-04-08 19:45:28 +00:00
Hari
592df1e1df host daemon touches (#4)
* feat: launch config tests

* feat: readiness probe port alignment
2026-04-08 12:56:07 -04:00
Hari
e2f9e54970 host daemon (#2)
* feat: host daemon api scaffold

* fix: use sparse writes

* fix: unix socket length (<108 bytes)
2026-04-08 11:23:19 -04:00
6f0f0643fe feat: initial contracts 2026-04-08 01:52:39 +00:00