在Mac上用UUP dump安装win11虚拟机。

下载

UTM镜像库 找到win11的链接点进去下载。
这里下载的是苹果ARM64的版本。
下载之后的zip文件解压之后会得到一系列的脚本文件,需要跑 uup_download_macos.sh下载和生成ISO文件。

brew

运行这个脚本需要一系列的应用,官方的readme推荐用brew安装。
我们先安装brew:

1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

等待时间是比较长的,中间需要输入密码,静待安装完成

安装脚本工具

用brew安装脚本工具:

1
2
brew tap sidneys/homebrew
brew install cabextract wimlib cdrtools sidneys/homebrew/chntpw

运行下载脚本

1
2
chmod -R 777 uup_download_macos.sh
./uup_download_macos.sh

完成下载大概4.7G。
脚本会自动开始合并生成ISO文件,这里报错了

1
2
3
**CAB -> ESD:** Microsoft-Windows-LanguageFeatures-Speech-zh-cn-Package-arm64

**Failed to extract Microsoft-Windows-LanguageFeatures-Speech-zh-cn-Package-arm64.cab**

网上检查了一下是cabextract有问题,用下面的方法解决了。

进入 files 文件夹,修改convert.sh的第426行。
加入 -k

1
cabextract -k -d "$extractDir" "$file" >/dev/null 2>/dev/null

回到file的上一级文件夹单独跑convert.sh脚本。

1
./files/convert.sh

合并完成,会得到一个ISO。22000.1_MULTI_ARM64_ZH-CN.ISO

创建虚拟机

打开UTM创建虚拟机(不用模拟环境),一路下去就好了,可以参考一下官方文档

中间会出现提示本机无法安装windows的提示,解决方案如下:

  1. Mac上fn+shit+f10弹出command
  2. 启动 regedit.exe
  3. 找到 HKEY_LOCAL_MACHINE>SYSTEM>SETUP
  4. 建立一个项LabConfig
  5. LabConfig里创建两个新的DWORD(32-bit)
    1. BypassTMPCheck 值为1
    2. BypassSecureBootCheck 值为1
      关闭之后继续安装就好了。

注意:这个过程中不能关闭虚拟机,关闭了重新启动,注册表就会恢复默认状态。

1
2
3
4
5
6
7
8
9
10
11
12
### “This PC can’t run Windows 11”

If you get this message trying to install Windows 11, you can bypass it with the following steps:

1. Press **Shift+F10** to open Command Prompt and type in `regedit.exe` to launch Registry Editor.
2. Navigate to **HKEY_LOCAL_MACHINE\SYSTEM\Setup**
3. Right click on the **Setup** key on the left size and choose New -> Key.
4. Create a key named `LabConfig`
5. Select the **LabConfig** key.
6. Create two new values: Choose New -> DWORD (32-bit) and create `BypassTPMCheck` and `BypassSecureBootCheck`. Set both values to 1.
7. Close out of Registry Editor and Command Prompt.
8. In setup, press the back button and then Next to continue installation.

解决没有网络的问题

安装和安装之后都无法联网,需要安装SPICE。
官方的方法有点问题,直接下载iso。
官方教程
ISO下载