Repository navigation
Label local ISOs for this computer and give a joined ARM machine a USB controller. - #1276
Open
calledtoconstruct wants to merge 1 commit into
Open
calledtoconstruct wants to merge 1 commit into
calledtoconstruct wants to merge 1 commit into
Conversation
…B controller. A local ISO now uses this computer's architecture, so it shows up on Apple Silicon. A virtual machine on a joined ARM computer gets a USB controller for its tablet. Fixes MyOwnDataCenter#949. Co-Authored-By: Grok 4.7 <grok@x.ai>
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.
What this changes
A local ISO now uses this computer's architecture, so it shows up on Apple Silicon. A virtual machine on a joined ARM computer gets a USB controller for its tablet, the same way a virtual machine on this computer already does.
Fixes #949.
How you tested it
npm run typecheck,npm run buildandnpm testpasstest/machines.test.mjspassed (45 tests), including a local ISO labeledarm64on an ARM server andamd64on an x86 server.connector/test_vm_helper.pypassed for the ARM USB controller and the existing x86 domain, which stays withoutqemu-xhci. Fullnpm test, typecheck, and the production build were not run. Not tried on Apple Silicon.Anything to know
An x86 computer already has a USB controller, so its domain is unchanged. Version and What's New are unchanged.
Note
Low Risk
Targeted VM XML and ISO metadata fixes with clear arch gating; x86 behavior is explicitly preserved in tests.
Overview
Local ISOs discovered under Home are no longer always labeled
amd64; they use the machine module’sarch, so the same file shows asarm64on Apple Silicon and staysamd64on x86.On ARM
virtguests,domain_xmlnow injects aqemu-xhciUSB controller when a tablet or USB passthrough devices are requested, avoiding libvirt’s “USB is disabled for this domain.” q35 / amd64 domains are unchanged and still omitqemu-xhci.Tests cover ARM vs x86 USB XML, x86 define without
qemu-xhci, and local ISOarchon both architectures.Reviewed by Cursor Bugbot for commit 5e99b5f. Bugbot is set up for automated code reviews on this repo. Configure here.