Skip to content

Windows aarch64 support #1123

Open
Open

Description

@bbqsrc

Windows has supported the aarch64 architecture for a while now. Is there anything on the roadmap to support Windows images?

Activity

  1. edigaryev commented on Sep 15, 2025

    @edigaryev
    Contributor

    Since Tart is using Apple's Virtualization.Framework under the hood, we're limited to the devices already implemented by that framework.

    As a result, support for Windows can only happen when either (1) Virtualization.Framework implements/emulates devices needed for proper Windows functioning, or (2) Windows implements drivers needed to run in virtualized Apple Silicon environments.

  2. bbqsrc commented on Sep 15, 2025

    @bbqsrc
    Author

    But, it is possible! I have been using aarch64 Windows on macOS using hvf with qemu:

    qemu-system-aarch64 \
      -M virt \
      -cpu host \
      -accel hvf \
      -m 6G \
      -smp 2 \
      -device ramfb \
      -bios /opt/homebrew/opt/qemu/share/qemu/edk2-aarch64-code.fd \
      -device qemu-xhci,id=xhci \
      -device usb-kbd \
      -device usb-tablet \
      -drive file=win11-aarch64.iso,media=cdrom,if=none,id=inst \
      -device usb-storage,drive=inst,bus=xhci.0 \
      -drive file=./Win11.qcow2,id=root,format=qcow2,if=none \
      -device usb-storage,drive=root,bus=xhci.0 \
      -nic user,model=virtio-net-pci,mac=2A:50:A7:4E:D9:C4 \
      -audiodev coreaudio,id=coreaudio,out.frequency=48000 \
      -audio coreaudio \
      -device usb-audio
    
  3. edigaryev commented on Sep 15, 2025

    @edigaryev
    Contributor

    But, it is possible!

    It is possible with Hypervisor.Framework (which QEMU uses on Darwin), yes.

    However, using Hypervisor.Framework in Tart means we have to implement all the Virtual I/O and other devices ourselves. This is a relatively big task.

    Also, there's no feature parity between Virtualization.Framework and Hypervisor.Framework: you cannot run macOS guests using Hypervisor.Framework. Same if we were to simply invoke QEMU commands from Tart.

    It's possible to combine more than one framework/program invocation in Tart indeed, but a more in-depth investigation is needed on how the overall UX of Tart will be affected and whether the additional complexity will be worth it.

  4. bbqsrc commented on Sep 15, 2025

    @bbqsrc
    Author

    Oh, I'm sorry! I did not even notice that Hypervisor.framework and Virtualization.framework are different frameworks.

    This makes sense then.

  5. mustafaakin commented on Oct 1, 2026

    @mustafaakin

    I got Windows 11 and Windows Server 2025 (ARM64) booting under tart while staying on Virtualization.framework, with no switch to Hypervisor.framework and no custom devices. It takes three pieces:

    • private switches on VZGenericPlatformConfiguration: PMU emulation is the one that matters, and Windows doesn't boot without it. The fork also sets fine-grained traps emulation, which turned out not to be needed, and I'll drop it
    • a 7 KB UEFI driver that gives Boot Manager a framebuffer
    • an unattended installer that applies the image with WinPE and DISM, because Windows Setup itself fails here

    virtio-win provides the drivers for disk, network, display and virtio-fs, and I ported tart-guest-agent so tart exec and the clipboard work.

    The main risk is that private switch: it's undocumented, and Apple could rename or remove it in any macOS release. The fork checks for it at runtime and refuses Windows VMs if it's missing, but I'm not sure how comfortable you'd be shipping something that depends on it. Maybe behind an experimental flag, or not at all.

    Write-up: https://mustafaakin.dev/blog/windows-on-tart/
    Fork: https://github.com/mustafaakin/tart/tree/windows-guest-extras
    Preview build: https://github.com/mustafaakin/tart/releases/tag/windows-preview-0.1.0

    Happy to discuss further before opening a PR, and to split it up if only some parts are useful upstream, e.g. the guest agent port.

  6. fkorotkov commented on Oct 2, 2026

    @fkorotkov
    Contributor

    Wow! We need to investigate! Awesome work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions