排查 vCenter Server 发现失败问题Troubleshoot vCenter Server discovery failures

本文帮助你排查由于 VMware vCenter 发现失败而发生的问题。This article helps you to troubleshoot issues that occur because of VMware vCenter discovery failures.

maxSnapShots 属性中包含非数字值Non-numeric values in the maxSnapShots property

在低于 9.20 的版本中,vCenter 在检索到 VM 上的 snapshot.maxSnapShots 属性的非数字值时会断开连接。On versions prior to 9.20, vCenter disconnects when it retrieves a non-numeric value for the property snapshot.maxSnapShots property on a VM.

此问题由错误 ID 95126 标识。This issue is identified by error 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()

若要解决问题,请执行以下操作:To resolve the issue:

  • 标识 VM,并将值设置为数字值(使用 vCenter 中的“VM 编辑”设置)。Identify the VM and set the value to a numeric value (VM Edit settings in vCenter).

Or

  • 将配置服务器升级到 9.20 或更高版本。Upgrade your configuration server to version 9.20 or later.

vCenter 连接的代理配置问题Proxy configuration issues for vCenter connectivity

vCenter 发现遵守 System 用户配置的系统默认代理设置。vCenter Discovery honors the System default proxy settings configured by the System user. DRA 服务遵守用户在使用统一安装程序安装程序或 .OVA 模板安装配置服务器过程中提供的代理设置。The DRA service honors the proxy settings provided by the user during the installation of configuration server using the unified setup installer or OVA template.

一般情况下,代理用于与公用网络通信;例如,与 Azure 通信。In general, the proxy is used to communicate to public networks; such as communicating with Azure. 如果已配置代理并且 vCenter 位于本地环境中,则它无法与 DRA 通信。If the proxy is configured and vCenter is in a local environment, it won't be able to communicate with DRA.

遇到此问题时,会发生以下情况:The following situations occur when this issue is encountered:

  • 由于以下错误,无法访问 vCenter 服务器 <vCenter>:远程服务器返回了错误:(503) 服务器不可用The vCenter server <vCenter> is not reachable because of the error: The remote server returned an error: (503) Server Unavailable
  • 由于以下错误,无法访问 vCenter 服务器 <vCenter>:远程服务器返回了错误:无法连接到远程服务器。The vCenter server <vCenter> is not reachable because of the error: The remote server returned an error: Unable to connect to the remote server.
  • 无法连接到 vCenter/ESXi 服务器。Unable to connect to vCenter/ESXi server.

若要解决问题,请执行以下操作:To resolve the issue:

下载 PsExec 工具Download the PsExec tool.

使用 PsExec 工具访问系统用户上下文,确定是否已配置代理地址。Use the PsExec tool to access the System user context and determine whether the proxy address is configured. 然后,可以使用以下过程将 vCenter 添加到绕过列表。You can then add vCenter to the bypass list using the following procedures.

对于发现代理配置:For Discovery proxy configuration:

  1. 使用 PsExec 工具在系统用户上下文中打开 IE。Open IE in system user context using the PsExec tool.

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

  2. 修改 Internet Explorer 中的代理设置,以绕过 vCenter IP 地址。Modify the proxy settings in Internet Explorer to bypass the vCenter IP address.

  3. 重启 tmanssvc 服务。Restart the tmanssvc service.

对于 DRA 代理配置:For DRA proxy configuration:

  1. 打开命令提示符,然后打开 Azure Site Recovery Provider 文件夹。Open a command prompt and open the Azure Site Recovery Provider folder.

    cd C:\Program Files\Microsoft Azure Site Recovery Providercd C:\Program Files\Microsoft Azure Site Recovery Provider

  2. 在命令提示符下运行以下命令。From the command prompt, run the following command.

    DRCONFIGURATOR.EXE /configure /AddBypassUrls [IP 地址/添加 vCenter 时提供的 vCenter Server FQDN]DRCONFIGURATOR.EXE /configure /AddBypassUrls [IP Address/FQDN of vCenter Server provided at the time of add vCenter]

  3. 重启 DRA 提供程序服务。Restart the DRA provider service.

后续步骤Next steps

管理用于 VMware VM 灾难恢复的配置服务器Manage the configuration server for VMware VM disaster recovery