Repository navigation
Start virtual machines on ARM: USB controller and virtio-gpu display - #1216
Merged
calledtoconstruct merged 2 commits intoDec 5, 2026
Merged
Conversation
…u display
The aarch64 virt machine has no USB controller of its own, so the tablet
made libvirt refuse the domain ("USB is disabled for this domain"). ARM
machines now get a qemu-xhci controller.
ARM machines use virtio video, but qemu-base leaves virtio-gpu out. The
installer now adds qemu-hw-display-virtio-gpu-pci and the base
qemu-hw-display-virtio-gpu, which the -pci module needs but does not
depend on: without it QEMU crashes while libvirt probes its devices.
Co-Authored-By: Grok 4.7 <grok@x.ai>
Collaborator
|
Thank you @tolixx. Brought this up to date with main and merged it. The M1 boot and the tests were exactly what this needed. |
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
Virtual machines start on ARM (Omarchy on Apple Silicon). Before this, every VM start on an M1 failed at
virsh define. Follow-up to #949.virtmachine has no USB controller of its own, so the tablet made libvirt refuse the domain with "USB is disabled for this domain, but USB devices are present in the domain XML". ARM machines now get<controller type='usb' model='qemu-xhci'/>(when they have the tablet or USB passthrough). x86 is unchanged, q35 brings its own controller.virtiovideo, butqemu-baseleaves virtio-gpu out, so libvirt said "domain configuration does not support video model 'virtio'". The installer now addsqemu-hw-display-virtio-gpu-pciandqemu-hw-display-virtio-gpuon aarch64. The base package matters: the-pcimodule needs it but doesn't depend on it, and with only-pciinstalled QEMU segfaults indevice-list-propertieswhile libvirt probes it, so no VM starts at all.How you tested it
test/machines.test.mjs: the ARM test now checks the controller sits before the tablet and passes; the x86 create test checks there is noqemu-xhci. On my Mac (arm64, macOS) 55 tests in this file fail onmaintoo, because the amd64 catalog images aren't offered on an arm64 host, so the x86 assertion needs CI.test/install-arch.test.mjspasses 3/3 on the M1 Air (Linux).npm run typecheckon macOS fails onmainas well (WallInk.tsvswallInk.tscasing on a case-insensitive disk). This change doesn't touchweb/.edk2-aarch64202608-1 and both virtio-gpu packages. Pressed Start on an Alpine 3.24.1 aarch64 VM from a local ISO in the web app: it boots through UEFI and GRUB to the login prompt, on the virtio-gpu screen (1280x800) and on the serial console. The generated domain has the qemu-xhci controller,virtio-gpuvideo and/usr/share/edk2/aarch64/QEMU_EFI.fd.Anything to know
Existing ARM installs get the two packages the next time the installer runs, since it installs whatever is missing from the list.
Still open from #949 and not in this PR: local ISOs are listed with
arch: 'amd64'(machines.mjs,localIsos), so an aarch64 ISO shows as emulated in the form even though it runs under KVM.