# 在运行时更改虚拟机配置

Parallels Desktop 能够让您在运行时连接或断开连接某些设备或切换它们使用其它媒介。

一般情况下，可以在运行时连接或断开以下虚拟设备：

* 可移除媒体驱动器
* 网络适配器
* 音频设备
* USB 设备
* 共享文件夹

如果虚拟机配置中包含打印机和串行端口，那么您还可以在运行时对其进行管理。

要配置这些当中的任何设备，请使用来自菜单栏中 **设备** 菜单的必要命令。只有当虚拟机运行时才能使用此菜单。

### **连接可移除媒体驱动器**

如果您有多个 CD/DVD 驱动器连接到您的虚拟机，则这些驱动器会按连接顺序在**设备**菜单中列出。第一个 CD/DVD 驱动器是 **CD/DVD 1**，第二个是 **CD/DVD 2**，依此类推。

### **连接网络适配器**

您可以设置以下三种网络模式中的任意一种：共享网络、桥接网络或 Host-Only 网络。

### **连接音频设备**

要连接或断开音频设备，请分别选择输出（或输入）设备的类型或者**静音**选项。

### **连接 USB 设备**

Parallels Desktop 会自动检测插入 Mac 电脑的所有 USB 设备。当前连接到虚拟机的设备会显示在**设备**菜单的列表中。您无法在 macOS 中使用正被虚拟机使用的 USB 设备。

### **连接共享文件夹**

在运行时可使用的“共享文件夹”选项与**虚拟机配置**对话框中的设置相似。

您可以

* 将所有的 Mac 磁盘或仅将主文件夹与虚拟机共享
* 将 Windows 虚拟机操作系统磁盘与 macOS 共享
* 添加新的共享文件夹

### **连接串行端口**

要连接或断开连接一个串行端口，请单击**设备**菜单，选择相应的串行端口，在显示的菜单中选择相应的命令。

### **连接打印机**

要连接到打印机或输出文件，请单击**设备** > **打印机**菜单，选择您想要使用的打印机，或选择打印到文件。


---

# 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://docs.parallels.cn/pdfm-20-ug-zh_cn/parallels-desktop-for-mac-20-yong-hu-zhi-nan/gao-ji-zhu-ti/shi-yong-xu-ni-ji/zai-yun-xing-shi-geng-gai-xu-ni-ji-pei-zhi.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.
