Skip to content

feat: Box-owned Linux KVM OCI owner ensure (qualification-only) - #336

Merged
ZhiXiao-Lin merged 4 commits into
mainfrom
feat/linux-kvm-oci-owner-ensure
Sep 13, 2026
Merged

ZhiXiao-Lin merged 4 commits into
mainfrom
feat/linux-kvm-oci-owner-ensure

Conversation

@ZhiXiao-Lin

@ZhiXiao-Lin ZhiXiao-Lin commented Sep 13, 2026 •

Copy link
Copy Markdown

Summary

  • Add identity-fenced Linux KVM OCI Host ensure/recovery (a3s.box.linux-kvm-oci-owner.v1), mirroring Native Sandbox owner fencing for box-kvm-qualification-service.
  • Opt-in via LinuxKvmOciMigrationConfig::with_box_owned_owner or A3S_BOX_KVM_OCI_BOX_OWNED=1 (+ service root/bin/shim/manifest); external operator-launched Hosts remain the default path.
  • Stopped-only and Live scripts support --box-owned: Host SIGKILL recovers through Box ensure (Live sets box_owned_ensure_proven; b2_process_session_recovery_closed stays false).

Explicit non-claims

  • No MicroVM production cutover / default omit→OCI
  • No B2 close, fixture Live, BX0.3/TEE, or B5 libkrun removal

Test plan

  • cargo test -p a3s-box-runtime --lib local_execution::oci_migration::tests
  • Format / Clippy on CI
  • Full CI including SDK Local Sandbox lanes
  • Optional KVM host: linux-kvm-oci-qualification.sh --box-owned and linux-kvm-live-session-qualification.sh --box-owned

ZhiXiao-Lin and others added 4 commits September 13, 2026 08:29
Mirror Native Sandbox owner identity fencing for box-kvm-qualification-service without claiming MicroVM production cutover or flipping default routing.

Co-authored-by: Cursor <[email protected]>
Make recovery builder crate-private and group KVM env parsing inputs to satisfy private_interfaces and too_many_arguments.

Co-authored-by: Cursor <[email protected]>
Phase 2 SIGKILL reads box-owner.json and lets connect/ensure respawn instead of example-local spawn that would leave an unowned socket.

Co-authored-by: Cursor <[email protected]>
Live --box-owned skips example-local Host respawn, recovers via retained-manager ensure, and reports box_owned_ensure_proven without flipping B2.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 26fcee6 into main Sep 13, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/linux-kvm-oci-owner-ensure branch September 13, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant