ubuntu22.04 qemu 安装windows on arm虚拟机

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

bash 复制代码
sudo apt update
sudo apt install qemu-system-arm qemu-system-aarch64 qemu-utils libvirt-daemon-system libvirt-clients bridge-utils

创建硬盘

bash 复制代码
qemu-img create -f qcow2 windows-arm64.qcow2 100G

安装

bash 复制代码
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 个新值:

bash 复制代码
BypassCPUCheck
BypassRAMCheck
BypassSecureBootCheck
BypassStorageCheck
BypassTPMCheck

全部设置为1

跳过联网更新 !!!非常重要!!!

注册表导航到以下路径:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE

1 如果 CurrentVersion 下没有 OOBE ,就创建这个OOBE文件夹

2 然后 选择 New → Dword (32-bit) Value(新建 Dword (32 位)值)。创建BypassNRO 设置为 1

然后关闭注册表:

点击 我没有序列号

然后会出现声明,点击勾选同意,下一步,选择Custom install 然后

设备驱动选择viostor

浏览选择驱动文件夹 viostor/w11/ARM64



然后等待完成,自动从硬盘重启

手动从硬盘启动:

bash 复制代码
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
相关推荐
海棠AI实验室19 分钟前
OpenClaw 落地指南:在 Windows 本地零基础部署 OpenClaw 与自动化强化学习 (RL) 系统
运维·windows·自动化·openclaw
lucky-billy20 分钟前
Windows 上本地部署 OpenClaw 保姆级教程
windows·openclaw
安当加密21 分钟前
指纹一按,安全上线:SLA指纹登录如何为生产线 Windows 电脑实现低成本防勒索?
windows·安全·电脑
猫头虎3 小时前
OpenClaw下载安装配置|Windows安装流程|macOS 安装流程|Telegram 集成使用|飞书集成使用|常见坑和注意事项保姆级教程
人工智能·windows·macos·开源·aigc·飞书·ai编程
LuDvei10 小时前
windows 中 vs code远程连接linux
linux·运维·服务器·windows
Mountain and sea10 小时前
爆肝实测|OpenClaw Windows配置全攻略(新手必看,99%避坑,附报错速解)
windows·openclaw
liulilittle12 小时前
CMD命令行将 .lua 文件扩展名改为 .txt
windows·shell·cmd
水月wwww13 小时前
Rust的安装与卸载 | windows
开发语言·windows·rust
不做超级小白13 小时前
执行docker命令时自动启动Docker Desktop?一个小工具让开发体验更丝滑
windows·docker
夫唯不争,故无尤也13 小时前
HTTP方法详解:GET、POST、PUT、DELETE
开发语言·windows·python