Add Hyperlight containment backend (Hyperlight + Unikraft micro-VM)#276
Merged
Conversation
c2880f1 to
84de8c6
Compare
a2aeadb to
8390ee8
Compare
shschaefer
reviewed
May 12, 2026
shschaefer
reviewed
May 12, 2026
MGudgin
reviewed
May 12, 2026
MGudgin
approved these changes
May 12, 2026
627257d to
9419788
Compare
Add ContainmentBackend::Hyperlight enum variant and config_parser dispatch. Gate the hyperlight-unikraft-host dependency behind an optional 'hyperlight' Cargo feature (x86_64 only). Signed-off-by: danbugs <danilochiarlone@gmail.com>
Embedded Hyperlight+Unikraft micro-VM runner that executes Python code via snapshot restore. Supports --setup-hyperlight for eager GHCR pull, lazy auto-install on first use, and host filesystem mounts via Preopen. Signed-off-by: danbugs <danilochiarlone@gmail.com>
Signed-off-by: danbugs <danilochiarlone@gmail.com>
Signed-off-by: danbugs <danilochiarlone@gmail.com>
Signed-off-by: danbugs <danilochiarlone@gmail.com>
Signed-off-by: danbugs <danilochiarlone@gmail.com>
fffea2d to
5deda47
Compare
Add test_hyperlight_suite to wxc_e2e_tests with hello and pandas cases. Add hyperlight-e2e.yml workflow that builds with the hyperlight feature, sets up the snapshot, and runs the suite (gated on WHP). Signed-off-by: danbugs <danilochiarlone@gmail.com>
Signed-off-by: danbugs <danilochiarlone@gmail.com>
MGudgin
approved these changes
May 12, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
"containment": "hyperlight"backend that runs Python workloads inside Hyperlight micro-VMs powered by Unikraft unikernels. The guest boots from a pre-warmed CPython 3.12 snapshot (~30 ms on KVM, ~140 ms on WHP) with ~20 pre-imported packages (numpy, pandas, pydantic, etc.) and 17 MB per-VM memory.HyperlightScriptRunnerlinkshyperlight-unikraft-hostdirectly.readonlyPaths/readwritePathsmapped into the guest via Hyperlight preopens.--setup-hyperlightCLI flag on bothwxc-execandlxc-execto pull and warm the snapshot from GHCR.hyperlight-e2e.ymlworkflow with hello, pandas, and hostfs test cases (gated on WHP).--experimental.Changes
wxc_common: addContainmentBackend::Hyperlightvariant, config parser arm, andhyperlight_runnermodule (policy validation, home resolution, GHCR setup, runtime management, host mounts)wxc-exec/lxc-exec: Hyperlight dispatch arm +--setup-hyperlight/--forceflagshyperlight_hello.json,hyperlight_pandas.json,hyperlight_fs.jsontest_hyperlight_suitewith hello, pandas, and hostfs cases; CI workflow usingcranefor Docker-free GHCR image download--with-hyperlightflag forbuild.shandbuild.batdocs/hyperlight-integration-plan.md