> 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/networking/vm-network-connectivity-issues.md).

# 虚拟机网络连接问题

在开始之前，请确认环境中的其他虚拟机是否可以访问互联网。如果没有其他机器可以访问，可能是 VergeOS 平台上游存在网络问题，阻止了对外部网络的访问。如果其他虚拟机仍然能够访问互联网，最可能的原因是遗漏了某个配置步骤。

以下是导致网络问题的最常见配置错误：

* **缺少 NIC 配置**：新创建的虚拟机可能未配置 NIC。要验证这一点，请查看 **网卡** 虚拟机仪表板中的该部分。确保至少存在一个 NIC。如果没有，请添加一个。
* **网络分配错误**：虚拟机的 NIC 可能连接到了错误的网络。在 **网卡** 部分，确保至少有一个 NIC 的状态设置为 **运行中**，并确认列出了正确的网络。如果没有，请编辑该 NIC 并分配正确的网络（即一个由可访问互联网的虚拟机所使用的网络）。
* **IP 配置不正确**：虚拟机可能没有正确配置 IP 地址。通常，这需要在来宾系统层面解决。请参阅来宾操作系统的文档，以确保 NIC 已被检测到、已安装（含驱动程序）并且配置正确。
* **未安装 Virtio 驱动程序**：如果未安装 Virtio 驱动程序，NIC 可能无法正常工作。有关安装 Virtio 驱动程序的说明，请参阅 [产品指南](/run-the-platform/virtual-machines/vm-guest-agent.md).

***

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

* 最后更新：2024-09-03
* 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/networking/vm-network-connectivity-issues.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.
