feat: add Apple container backend for patchbay-vm#7
Merged
Conversation
Add an alternative VM backend using Apple's Containerization framework (macOS 26 + Apple Silicon). The container backend provides sub-second boot times and native VirtioFS mounts, replacing QEMU's SSH-based interaction with `container exec`. - Split vm.rs into common.rs (shared types/helpers), qemu.rs (QEMU backend), and container.rs (Apple container backend) - Add --backend auto|qemu|container flag with auto-detection - Default to all host CPUs and 8GB RAM for both backends - Update docs/guide/vm.md with setup guides for both backends - Add .container-vm and .tmp to .gitignore
Member
|
Cool! Do you know if we can run this on CI? Not the full suite but just a smoke test so that we don't break it accidentally. |
- Add macos-check job on self-hosted macOS ARM64 runner - Move e2e to self-hosted Linux runner - Switch all jobs to sccache - Smoke test runs iperf sim via container backend when CLI is available
Contributor
Author
|
Bumped the CI work in general. macOS has provisions but this will need some more attention on the runners from my side, will file an issue to follow up at some point. |
Contributor
Author
|
Seems some of the tests are flaky. |
Member
Think we have to reduce concurrency. Or increase some ulimits or such, but I'm not yet sure which ones. The failure indicates some limits are being hit I think. |
Contributor
Author
|
I'll take a look at it trying to figure it out. This fine to merge now? |
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.
Add an alternative VM backend using Apple's Containerization framework (macOS 26 + Apple Silicon). The container backend provides sub-second boot times and native VirtioFS mounts, replacing QEMU's SSH-based interaction with
container exec.