排查 vCenter Server 发现失败问题

本文帮助你排查由于 VMware vCenter 发现失败而发生的问题。

maxSnapShots 属性中包含非数字值

在低于 9.20 的版本上,vCenter 在检索虚拟机(VM)属性的非数值 snapshot.maxSnapShots 时断开连接。

错误 ID 95126 标识此问题。

ERROR :: Hit an exception while fetching the required informationfrom vCenter/vSphere.Exception details:
System.FormatException: Input string was not in a correct format.
    at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
    at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
    at VMware.VSphere.Management.InfraContracts.VirtualMachineInfo.get_MaxSnapshots()

若要解决该问题,你有两个选择:

  • 标识 VM 并将值设置为数值。 (在 vCenter 中使用 VM 编辑设置。
  • 将配置服务器升级到 9.20 或更高版本。

vCenter 连接的代理配置问题

vCenter 发现过程遵循系统用户配置的系统默认代理设置。 灾难恢复体系结构 (DRA) 服务遵循在安装配置服务器期间提供的代理设置。 可以使用统一安装程序安装程序或打开虚拟设备模板进行安装。

通常,代理用于与公共网络通信,例如与 Azure 通信。 如果代理已配置且 vCenter 位于本地环境中,则无法与 DRA 通信。

遇到此问题时,会发生以下情况:

  • 由于以下错误,无法访问 vCenter 服务器 <vCenter> :“远程服务器返回了错误:(503) 服务器不可用。
  • 由于以下错误,无法访问 vCenter 服务器 <vCenter> :“远程服务器返回了错误:无法连接到远程服务器。
  • 代理无法连接到 vCenter/ESXi 服务器。

使用该工具 PsExec 访问系统用户上下文并确定是否已配置代理地址。 然后,可以使用以下过程将 vCenter 添加到绕过列表。

对于发现代理配置:

  1. 在系统用户上下文中,使用 PsExec 工具打开 Internet Explorer。

    psexec -s -i "%programfiles%\Internet Explorer\iexplore.exe"

  2. 修改 Internet Explorer 中的代理设置,以绕过 vCenter IP 地址。

  3. 重新启动 tmanssvc 服务。

对于 DRA 代理配置:

  1. 打开命令提示符并打开 Azure Site Recovery 提供程序文件夹:

    cd C:\Program Files\Azure Site Recovery Provider

  2. 在命令提示符下运行以下命令:

    DRCONFIGURATOR.EXE /configure /AddBypassUrls [IP Address/FQDN of vCenter Server provided at the time of add vCenter]

  3. 重启 DRA 提供程序服务。