Repository navigation
Conversation
Attach distinct ext4 root disks to a running LinuxPod through a dedicated xHCI controller. Track host and guest device identities through attach, cancellation, unmount and detach, and allow an interrupted stop-before-start to be retried. Relates to apple#767.
MarlonJD
marked this pull request as ready for review
November 18, 2026 23:26
This branch has not been deployed
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.
Relates to #767. This builds on the USB mass-storage approach discussed in #881 and #890.
Append
VZUSBRootfsHotplug()toLinuxPod.Configuration.extensionsbefore boot to attach local ext4 root filesystems withaddContainer. The provider matches each attachment to a newly enumerated guest SCSI disk, rejects image aliases, and verifies unmount before detaching. If stopping an unstarted member fails partway, callers can retry the stop.The guest needs xHCI PCI, USB mass storage, and SCSI disk drivers. The new integration test passed on Apple silicon with macOS 27.2.1, vminit 0.57.0, and the Cage v0.3.4 hotplug kernel. It reported the expected skip with the project's default Kata 3.17.0 kernel. Cage kernel release
make containerization,make check, andmake testpassed. A separate live run covered concurrent additions, cancellation, rollback, and ane2fsck -fncheck after detach.