# 3.3 基于 Apple M1 和 Parallels Desktop 20 安装 FreeBSD

基于 macOS 14.7 与 Parallels Desktop 20.1.3 环境，FreeBSD 15.0 的图形界面、键盘和鼠标均可正常运作。

## 安装

环境准备完成后，安装 FreeBSD。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/zDTAj8meAgX6xUBljxHK)

选择“通过映像文件安装 Windows、Linux 或 macOS”，然后点击“继续”。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/Iw8553xXuvPZ3EA9P2ys)

点击“手动选择”，然后继续。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/I68XC4asBWS1OqBaR2Aq)

点击“选择文件……”。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/gTI9UAy7nohilvudQMMd)

选中 FreeBSD 镜像。

> **警告**
>
> 本节基于 Apple M1，故选择的 FreeBSD 架构应为 aarch64。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/vvydY3MEM1X8s6IjX8jQ)

界面会提示“未能检测操作系统”，可忽略此提示，直接点击“继续”。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/H1PoZjtxFHuf1Kk9oINS)

在操作系统类型中选择“其他”。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/SPYFxfKpz1eLSKtsyr3g)

> **技巧**
>
> Parallels Desktop 20 的默认设置通常已足够，且默认使用 UEFI 引导，无需调整硬件配置。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/PQwemlyaNYd8SH3bwM2A)

开始安装 FreeBSD 系统。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/uGUOPfhsnIyVfFwWgnWQ)

开机后进入 FreeBSD。

![Parallels Desktop 20 安装 FreeBSD 15.0](/files/3MZb1ILQrpQ9FNh35CnV)

手动安装桌面环境后，桌面环境即可正常运行。

## 鼠标无法移动

若在 Parallels Desktop 中遇到 FreeBSD 鼠标无法移动的问题，可在 **/boot/loader.conf.local**（推荐使用本地配置扩展文件，避免直接修改系统默认配置 **/boot/loader.conf**）中添加如下配置：

```sh
ums_load="YES"
```

### 参考文献

* FreeBSD Forums. Issue(s) booting FreeBSD 12.2 aarch64 on Parallels Desktop on Apple Silicon\[EB/OL]. (2021-01-30)\[2026-03-26]. <https://forums.freebsd.org/threads/issue-s-booting-freebsd-12-2-aarch64-on-parallels-desktop-on-apple-silicon.78654/>. 提供了 Apple Silicon 上 Parallels Desktop 中 FreeBSD 启动问题的讨论与解决方案。

## 虚拟机工具

使用 pkg 安装虚拟机工具：

```sh
# pkg install parallels-tools
```

若提示找不到软件包，可通过 Ports 编译安装虚拟机工具：

```sh
# cd /usr/ports/emulators/parallels-tools/
# make install clean
```

> **注意**
>
> 若通过 Ports 编译安装，需确保系统中已有源代码在 **/usr/src** 目录中。

### 参考文献

* FreshPorts. parallels-tools Parallels Desktop Tools for FreeBSD\[EB/OL]. \[2026-03-26]. <https://www.freshports.org/emulators/parallels-tools/>. 提供了 Parallels Desktop 虚拟机工具的 FreeBSD Port 信息与安装说明。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.bsdcn.org/di-3-zhang-freebsd-gao-ji-an-zhuang/di-3.3-jie-ji-yu-apple-m1-he-parallels-desktop-20-an-zhuang-freebsd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
