> For the complete documentation index, see [llms.txt](https://docs.parallels.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.cn/pdfm-27-ug-zh_cn/parallels-desktop-for-mac-27-yong-hu-zhi-nan/parallels-desktop-pian-hao-she-zhi-he-xu-ni-ji-she-zhi/tian-jia-yu-yi-chu-she-bei.md).

# 添加与移除设备

向虚拟机添加新设备比将新设备连接到真实计算机要简单。移除或断开设备同样简单。以下类型的虚拟设备可以添加到配置中或从配置中移除：

* 硬盘
* 光驱
* 网卡
* 打印机端口
* 串行端口
* TPM 芯片

{% hint style="info" %}
**注意**：上述任何设备只能在相应的虚拟机停止运行时添加。当虚拟机正在运行时，**添加**按钮将不可用。
{% endhint %}

### 向虚拟机添加新设备

1. 从 **操作** 菜单中选择 **配置**，以打开“虚拟机配置”窗口。
2. 点击 **虚拟机配置** 对话框顶部的 **硬件** 按钮，以打开用于编辑硬件设备的面板。
3. 点击“虚拟机配置”对话框底部的“添加”按钮（+），然后选择要添加到虚拟机的设备。

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>注意</strong>：当虚拟机正在运行时<strong>，“添加</strong>”按钮处于禁用状态。您需要先停止虚拟机，才能使用此按钮。</p></div>

   4\. 如果您选择的设备不是硬盘，系统会立即添加一个具有典型配置的相应设备，并可立即使用。<br>

如果您选择的是硬盘，则需要指定一些参数：

```
* 硬盘类型：新映像文件、现有映像文件或物理磁盘。
* 如果添加现有映像文件，请提供该文件在 Mac 上的路径；如果添加物理磁盘，请指定其位置。
* 新硬盘映像文件的容量。
  <img src="../../../.gitbook/assets/Screenshot 2024-01-20 at 01.26.25.png" alt="" data-size="original">

  点击 **“确定”** 以添加硬盘。 将新的虚拟硬盘添加到虚拟机配置后，在您对其进行初始化之前，虚拟机内部安装的操作系统将无法识别该硬盘。有关如何初始化新添加的硬盘的详细信息，请参阅虚拟机中安装的操作系统的文档和帮助资源。
```

添加新设备后，您可以照常管理其属性并开始使用它。

### 从虚拟机配置中移除设备

1. 从 **操作** 菜单中选择 **配置** 以打开“虚拟机配置”。
2. 单击 **虚拟机配置** 对话框顶部的 **硬件** 按钮，以打开用于编辑硬件设备的面板。
3. 选择要删除的设备，然后单击 **虚拟机配置** 对话框底部的 **删除** 按钮 (-)。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.parallels.cn/pdfm-27-ug-zh_cn/parallels-desktop-for-mac-27-yong-hu-zhi-nan/parallels-desktop-pian-hao-she-zhi-he-xu-ni-ji-she-zhi/tian-jia-yu-yi-chu-she-bei.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
