Commit graph

46 commits

Author SHA1 Message Date
0e5e989192 revert: undo 4 racing/reconcile fix commits 2026-04-11 18:11:25 +00:00
637036b8c8 fix: remove reconcile from ListMachines to prevent race with concurrent operations 2026-04-11 17:40:39 +00:00
00f0795cb9 fix: treat personalization as best-effort during startup reconcile 2026-04-11 17:32:21 +00:00
44bd0ff089 fix: seed mmds data via --metadata flag at boot, eliminates race with guest init 2026-04-11 15:38:05 +00:00
9dd606f26a fix: use absolute path for e2fsck on host 2026-04-11 15:23:57 +00:00
a1e8eb758a fix: put mmds data after config-file boot for guest personalization 2026-04-11 14:57:15 +00:00
73cdf2eb74 fix: run e2fsck before restart boot, set panic=0 to prevent reboot loops 2026-04-11 14:41:02 +00:00
2cef6aace5 feat: config-file boot for firecracker, eliminates 10 api round-trips 2026-04-11 14:13:05 +00:00
2ded10a67a feat: simplify snapshot restore to disk boot 2026-04-11 14:04:12 +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
1e7829a974 feat: snapshot upload async allows restore 2026-04-10 22:48:58 +00:00
30282928f5 feat: local first snapshot implementation end to end 2026-04-10 21:32:19 +00:00
fc21e897ea fix(firecracker-host): validate snapshot reflinks on deploy 2026-04-10 19:46:36 +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
54a4c423a6 feat: firecracker best path 2026-04-10 03:17:57 +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
59d3290bb9 feat: ci and review fixes 2026-04-09 15:06:58 +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
501ae2abd5 chore: readme 2026-04-09 04:31:31 +00:00
791268fb33 chore: update readme 2026-04-09 03:07:37 +00:00
25b9f74553 chore: readme 2026-04-09 03:05:41 +00:00
7839befad8 chore: add go.mod, issue templates, and contributing guide 2026-04-09 02:45:24 +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
Hari
9382de7eba feat: update pure prompt zsh naming nad other guest os files (#6) 2026-04-08 18:19:41 -04:00
9acbf232eb feat: add host-managed backend ssh key injection 2026-04-08 19:45:28 +00:00
a12f54ba5d feat: add guest config injection and host nat wiring 2026-04-08 19:43:20 +00:00
28ca0219d9 chore: termination cleanup tighten + test 2026-04-08 18:54:37 +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
4028bb5a1d feat: freeze ssh and vnc port contracts
Define the minimum machine networking surface for the next host slice and
limit exposed guest ports to SSH and VNC.
2026-04-08 02:47:27 +00:00
04575d111c feat: deepen machine and storage contracts 2026-04-08 02:32:48 +00:00
6f0f0643fe feat: initial contracts 2026-04-08 01:52:39 +00:00
Hari
58f95324f4 feat: remove go sdk and write thin firecracker wrapper (#1)
* feat: remove go sdk and write thin firecracker wrapper

* chore: gitignore
2026-04-07 20:56:37 -04:00
3585531d30 fix: cgroup version 2026-04-07 18:55:26 -04:00
47e806a705 feat: smoke main.go 2026-04-07 20:52:15 +00:00
634356acd6 chore: move vsock into runtime for entropy per VM 2026-04-07 20:48:17 +00:00
e21c50f331 feat: init service and config for firecracker-host 2026-04-07 20:36:23 +00:00
caeb9dfaa7 chore: clean types and align 2026-04-07 15:49:26 -04:00
3a256dc6e2 feat: init firecracker 2026-04-07 19:29:17 +00:00