Windows 11 ARM64 qemu test script... / was: Re: Cygwin AArch64 testing with Windows AArch64 on qemu?
Roland Mainz
roland.mainz@nrubsig.org
Tue Jun 17 12:27:10 GMT 2025
On Tue, Jun 17, 2025 at 9:57 AM Sebastian Feld via Cygwin
<cygwin@cygwin.com> wrote:
> Now that Microsoft is porting Cygwin to Aarch64:
>> Do you know how to run Windows Aarch64 in qemu, so people can test
> Cygwin Aarch64 changes?
I use this script for Windows 11 experiments (same as
https://nrubsig.kpaste.net/3ac000fd09):
---- snip ----
#
# run_win11arm64qemu.ksh93 - Run Windows 11/ARM64 in QEMU
#
#
# building qemu 10.0.2:
# - required Debian packages:
# ninja-build
# python3-venv
# python3-tomli
# rpm2cpio
# libslirp-dev
# - build:
# $ wget 'https://download.qemu.org/qemu-10.0.2.tar.xz'
# $ tar -xf qemu-10.0.2.tar.xz
# $ cd qemu-10.0.2
# $ ./configure --target-list=aarch64-softmmu --enable-lto
# $ time nice make -j4
#
# download
# # wget 'https://drive.massgrave.dev/SW_DVD9_Win_Pro_11_23H2.2_Arm64_German_Pro_Ent_EDU_N_MLF_X23-68028.ISO'
# # wget 'https://drive.massgrave.dev/SW_DVD9_Win_Pro_11_23H2.2_Arm64_English_Pro_Ent_EDU_N_MLF_X23-68023.ISO'
# wget 'https://drive.massgrave.dev/SW_DVD9_Win_Pro_10_22H2.15_Arm64_English_Pro_Ent_EDU_N_MLF_X23-67223.ISO'
# wget 'http://ftp.debian.org/debian/pool/main/e/edk2/qemu-efi-aarch64_2024.05-2_all.deb'
# wget 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.262-2/virtio-win.iso'
#
# ar p qemu-efi-aarch64_2024.05-2_all.deb data.tar.xz | tar xvJf -
./usr/share/qemu-efi-aarch64/QEMU_EFI.fd
# mv ./usr/share/qemu-efi-aarch64/QEMU_EFI.fd .
# rm -Rf usr
#
# qemu-img create win11-arm64.img 120G
#
/home/rmainz/work/qemu/qemu-10.0.2/build/qemu-system-aarch64 \
-M virt,virtualization=true -cpu cortex-a72 -smp 4,cores=4,threads=1,sockets=1 \
-m 4G \
--accel tcg,thread=multi \
-bios $PWD/QEMU_EFI.fd \
-device ramfb \
-vnc derfwpc5131_ipv4:2 \
-device nec-usb-xhci -device usb-kbd -device usb-tablet \
-device usb-storage,drive=install \
-drive if=none,id=install,format=raw,media=cdrom,file=$PWD/SW_DVD9_Win_Pro_10_22H2.15_Arm64_English_Pro_Ent_EDU_N_MLF_X23-67223.ISO
\
-device usb-storage,drive=virtio-drivers \
-drive if=none,id=virtio-drivers,format=raw,media=cdrom,file=$PWD/virtio-win.iso
\
-drive if=virtio,id=system,format=raw,file=$PWD/win11-arm64.img \
-nic user,model=virtio-net-pci,mac=52:54:98:76:54:32
# EOF.
---- snip ----
Problem is that this is very slow (easily factor >= 20), the Windows
setup crashes trying to configure the keyboard and network.
Technically I can get a cmd.exe shell with Shift-F10, but that doesn't
help a lot without network access.
Basically this is the reason why ms-nfs41-client has no Release
binaries for ARM64 - the sources build for ARM64, but there is no way
for me to test them... ;-(
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz@nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
More information about the Cygwin
mailing list