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
相关推荐
csdn_aspnet10 分钟前
在 Windows 上安装和运行 Apache Kafka
windows·kafka
江山如画,佳人北望2 小时前
C#程序入门
开发语言·windows·c#
AustinCyy2 小时前
【环境配置】Neo4j Community Windows 安装教程
windows·neo4j
奇怪的杰哥3 小时前
Win11 加快软件开机自启动
windows
cpsvps3 小时前
Windows内核并发优化
windows
qq_393828228 小时前
电脑休眠设置
windows·电脑·软件需求
网安小白的进阶之路11 小时前
A模块 系统与网络安全 第三门课 网络通信原理-3
网络·windows·安全·web安全·系统安全
芳草萋萋鹦鹉洲哦18 小时前
【vue3+tauri+rust】如何实现下载文件mac+windows
windows·macos·rust
李洋-蛟龙腾飞公司18 小时前
HarmonyOS NEXT应用元服务常见列表操作多类型列表项场景
windows
new_zhou1 天前
Windows qt打包编译好的程序
开发语言·windows·qt·打包程序