Skip to content

feat: add optional runc support and generic runtime configuration - #34

Merged
tianyuzhou95 merged 2 commits into
inclusionAI:mainfrom
tianyuzhou95:albert/runc
Aug 20, 2026
Merged

feat: add optional runc support and generic runtime configuration#34
tianyuzhou95 merged 2 commits into
inclusionAI:mainfrom
tianyuzhou95:albert/runc

Conversation

@tianyuzhou95

Copy link
Copy Markdown
Collaborator

Summary

This PR adds optional runc support to the AKernel all-in-one image and exposes a generic Sandbox(extra_config=...) extension for runtime-owned configuration.

Runc remains disabled and unadvertised by default. When enabled, its checksum-pinned binaries are included in the image and the setting is propagated through standalone, Helm, and supported Terraform deployments. The sandboxd submodule is updated to the merged runc backend revision.

extra_config accepts JSON-compatible values and is forwarded without interpretation through both openyuanrong-sandbox and openyuanrong-sdk. It is runtime-agnostic and does not expose fields such as enableKVM as dedicated SDK parameters.

Validation

  • Completed runc standalone e2e validation.
  • Completed lifecycle pressure and resource-leak checks.
  • Verified both SDK backend forwarding paths with unit coverage.
  • Verified the rebased changes with git diff --check.

Add a checksum-pinned runc payload and propagate its opt-in setting
through image builds, standalone, Helm, and supported Terraform paths.
Point the sandboxd submodule at the merged upstream backend revision so
clean builds contain the implementation that they configure.

Keep runc excluded and unadvertised by default because it shares the
host kernel and has a different isolation boundary from runsc.

Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
Add a runtime-agnostic, JSON-compatible extra_config argument to Sandbox
and forward it through both YuanRong backends without interpreting fields
owned by a runtime.

Validate and defensively copy nested values so callers cannot mutate
submitted options. Cover the public API and both wire paths with neutral
custom-runtime fixtures instead of exposing enableKVM as a test API.

Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
@tianyuzhou95
tianyuzhou95 merged commit 3816284 into inclusionAI:main Aug 20, 2026
8 checks passed
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