open-standards/sandbox/sandbox-rs/crates/sandbox-exec-microvm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science c7929b1460 sandbox-exec-microvm: fix FirecrackerVmm API hang against a live server
The HTTP/1.1 unix-socket driver read the response with read_to_string
(read to EOF). Firecracker's API server keeps the connection open and
does not honor Connection: close, so the very first PUT (/boot-source)
blocked forever — the guest never received /drives or InstanceStart.
The driver had only ever been exercised against a mock Vmm; its first
run against a real Firecracker (on an AWS bare-metal KVM host) surfaced
the hang immediately.

Fix: read only the HTTP status line (these endpoints answer 204 No
Content, no body) and set a 10s read timeout as a wedged-server safety
net. The four-PUT boot sequence now completes against a live server.

Also: drop the unused Instant import on the non-macOS attribution path
(Linux build warning).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-06-11 17:56:45 -04:00
..
examples sandbox-exec-microvm: RAPL-via-MSR meter + real microVM boot example 2026-06-11 13:41:02 -04:00
src sandbox-exec-microvm: fix FirecrackerVmm API hang against a live server 2026-06-11 17:56:45 -04:00
Cargo.toml sandbox-exec-microvm: RAPL-via-MSR meter + real microVM boot example 2026-06-11 13:41:02 -04:00