ubuntu22.04 qemu 安装windows on arm虚拟机
iso:
https://uupdump.net/
https://massgrave.dev/windows_arm_links
vivo driver:
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.262-2/
qemu
sudo apt update
sudo apt install qemu-system-arm qemu-system-aarch64 qemu-utils libvirt-daemon-system libvirt-clients bridge-utils
创建硬盘
qemu-img create -f qcow2 windows-arm64.qcow2 100G
安装
qemu-system-aarch64 \
-M virt,virtualization=true -m 8G -cpu max,pauth-impdef=on -smp 8 \
-bios ./QEMU_EFI.fd\
--accel tcg,thread=multi\
-device ramfb \
-device qemu-xhci -device usb-kbd -device usb-tablet \
-device usb-storage,drive=install \
-drive if=none,id=install,format=raw,media=cdrom,file=./22621.1_PROFESSIONAL_ARM64_ZH-CN.ISO \
-device usb-storage,drive=virtio-drivers \
-drive if=none,id=virtio-drivers,format=raw,media=cdrom,file=./virtio-win-0.1.262.iso \
-drive if=virtio,id=system,format=raw,file=./win11-arm64.img
跳过ISO序列号key的输入:
-
使用
Shift + F10
打开 cmd 提示符,然后键入regedit
打开注册表编辑器 -
导航到
HKEY_LOCAL_MACHINE\SYSTEM\Setup
-
右键单击“Setup”文件夹,然后新建 LabConfig 文件夹
-
右键单击 LabConfig,然后选择 New → Dword (32-bit) Value(新建 Dword (32 位)值)。创建以下 5 个新值:
BypassCPUCheck
BypassRAMCheck
BypassSecureBootCheck
BypassStorageCheck
BypassTPMCheck
全部设置为1
安装设备选择
选择Custom install
然后浏览选择驱动文件夹 viostor/w11/ARM64
等了很久时间… 精度条100% 中途qemu还黑屏了
不慌,到这里已经安装到硬盘 windows-arm64.qcow2 了
关闭 qemu ,再次启动
从硬盘启动:
qemu-system-aarch64 \
-M virt,virtualization=true -m 8G -cpu max,pauth-impdef=on -smp 8 \
-bios ./QEMU_EFI.fd \
--accel tcg,thread=multi \
-device ramfb \
-device qemu-xhci -device usb-kbd -device usb-tablet \
-drive if=virtio,id=system,format=raw,file=./win11-arm64.img