> 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/backup-dr/vmware-import-downloads-fail-server-refused.md).

# VMware 导入扫描成功，但文件下载失败

## 症状

* VMware 服务连接到 vCenter 并扫描虚拟机时不会出错。
* 备份或导入作业开始后，随后暂停、重试，并在几次尝试后失败。
* 服务日志显示快照成功，随后出现一连串下载错误：

```
错误：服务器拒绝连接
下载文件时出错：[<datastore>] <VM>/<VM>.nvram
下载文件时出错：[<datastore>] <VM>/<VM>.vmxf
下载文件时出错：[<datastore>] <VM>/<VM>.vmx
由于遇到错误，备份作业已暂停。将在大约 Nm（第 #k 次，共 10 次）后再次重试
```

* 故障会影响 **每个** 文件，包括较小的配置文件（`.vmx`, `.vmxf`, `.nvram`）——不仅仅是较大的虚拟磁盘。

{% hint style="info" %}
**为什么“每个文件”很重要**

如果小配置文件与磁盘一起失败，这不是特定于磁盘或 VDDK 传输的问题，而是与保存这些文件的主机之间的连接问题。
{% endhint %}

## 概述

{% hint style="info" %}
**要点**

* VMware 服务仅使用 vCenter 来列出虚拟机并定位其文件。
* 实际的文件传输会直接到达 ESXi 主机，地址是 vCenter 返回的 FQDN。
* 如果服务无法解析或访问该主机，扫描会成功，而每次下载都会失败。
  {% endhint %}

VMware 服务仅使用 vCenter 来枚举虚拟机并定位其文件。实际传输会直接到拥有该虚拟机数据存储的 ESXi 主机，地址是 vCenter 返回的主机 FQDN。

如果服务可以访问 vCenter 但无法访问该 ESXi 主机，vCenter 看起来是正常的——扫描成功——而每次下载都会报“服务器拒绝连接”。常见原因有两个。

**1. DNS。** VMware 服务无法解析 vCenter 返回的 ESXi 主机 FQDN。通常原因是服务虚拟机网卡上的 DNS 服务器或搜索域配置错误或缺失。这是最常见的原因。它也解释了为什么某个集群上的虚拟机可以正常备份，而另一个集群失败——因为正常工作的集群主机恰好可以解析。

**2. 网络或防火墙。** 主机名可以解析，但主机无法直接访问。传输需要从 VMware 服务到每台 ESXi 主机开放 TCP 443（vSphere API）和 TCP 902（NFC，磁盘数据通道），而不仅仅是到 vCenter。最常被遗漏的是 902 端口。

## 诊断

1. 在 vSphere 中，记下拥有故障虚拟机数据存储的集群中 ESXi 主机的 FQDN。这些是 VergeOS 连接的名称。
2. 在 VergeOS 中，导航到 **导入/导出 > VMware 服务** 并双击该服务。
3. 选择 **查看服务 > 诊断**.
4. 在“诊断”面板中，尝试解析并访问每个主机 FQDN。
   * 如果某个名称无法解析，原因是 DNS。
   * 如果某个名称可以解析但无法连接，请检查防火墙和 902 端口。

## 解决方案

1. 将 VMware 服务虚拟机网卡设置为能够解析 ESXi 主机 FQDN 的 DNS 服务器，或添加正确的搜索域。参见 [配置 VMware 服务 VM NIC IPv4 设置](/knowledge-base/zh/networking/vmware-service-vm-nic-ipv4-configuration.md).
2. 请确保从 VMware 服务到每台 ESXi 主机的 TCP 443 和 902 端口已开放，而不仅仅是到 vCenter。
3. 再次运行作业。下载会继续通过配置文件并进入虚拟磁盘。

## 其他资源

* [配置 VMware 服务 VM NIC IPv4 设置](/knowledge-base/zh/networking/vmware-service-vm-nic-ipv4-configuration.md)
* [VMware 备份和 DR 指南](/knowledge-base/zh/backup-dr/vmwarebackupdrguide.md)

{% hint style="info" %}
**需要帮助吗？**

如果在确认 DNS 和端口后下载仍然失败，请将 VMware 服务日志副本发送给 VergeOS 支持团队。
{% 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/backup-dr/vmware-import-downloads-fail-server-refused.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.
