> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/knowledge-base/zh/virtual-machines/isolating-a-vm.md).

# 隔离虚拟机

隔离虚拟机（VM）可以通过多种方式实现，具体取决于环境的特定要求。以下是在 VergeOS 中隔离 VM 的两种常见方法。

## 从 VM 中移除已连接的网络

这种方法本质上模拟了从 VM 上拔掉网线，使其在没有任何外部连接的情况下运行。当 VM 不需要与任何其他网络通信时，这种方法很适合。

### 移除网络的步骤：

1. 导航到 **虚拟机仪表板**.
2. 点击 **网卡** 在左侧导航菜单中，以访问 VM 的虚拟网络适配器。
3. 选择要编辑的 NIC，然后单击 **编辑** 在左侧导航菜单中。
4. 在 **NIC 配置窗口**，使用下拉列表将 **网络** 从其当前值更改为 **--无--**.
5. 如果 VM 有多个 NIC，请对所有处于活动/启用状态的 NIC 重复此过程。

通过从所有 NIC 中移除网络，VM 将不再具有网络访问权限。

## 创建新的内部网络

如果 VM 需要连接性，但仍需与其他网络隔离，则创建一个 **新的内部网络** 且没有连接任何其他 VM，是首选解决方案。

### 创建内部网络的步骤：

1. 在 VergeOS 仪表板中，导航到 **网络** 并创建一个新的 **内部网络**.
2. 设置一个 **默认网关** （如有需要）以用于出站访问。
3. 创建内部网络后，返回到 **VM 仪表板** 并更新 **NIC** 以将 VM 连接到新创建的内部网络。

{% hint style="info" %}
**有关创建内部网络的更详细说明，请参阅 VergeOS 联机帮助中“网络”下的“内部网络”部分。**
{% endhint %}

此方法允许 VM 具有受限的网络访问，同时仍可通过内部网络提供出站连接。

***

{% hint style="info" %}
**文档信息**

* 最后更新：2024-08-29
* vergeOS 版本：4.12.6
  {% endhint %}


---

# 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.verge.io/knowledge-base/zh/virtual-machines/isolating-a-vm.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.
