This gist contains the reproducible scripts used to create and boot a Windows 11 ARM64 VM on Apple Silicon macOS with QEMU, HVF, EDK2, TPM, NVMe storage, and VirtIO networking.
reinstall-win11-arm64-qcow2.sh: downloads the Windows 11 ARM64 ISO from Microsoft, verifies SHA256, downloads ARM64 VirtIO drivers, patches the installer withautounattend.xml, creates one 50 GiB qcow2 disk, installs Windows unattended, switches from installer media to disk-only boot when EDK2 stalls after the first Windows setup phase, and tests VirtIO networking by waiting for real RDP authentication on127.0.0.1:3390.run-win11.sh: boots the installed qcow2 with fresh EDK2 vars, QEMU/HVF, and host127.0.0.1:3390forwarded to guest RDP3389.