如果将 vCenter Update Manager 配置为对 http 和 https 使用非默认端口,则无法连接到 vCenter Update Manager
search cancel

如果将 vCenter Update Manager 配置为对 http 和 https 使用非默认端口,则无法连接到 vCenter Update Manager

book

Article ID: 341459

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction


Symptoms:
免责声明:本文为 Unable to connect to the vCenter Update Manager when it is configured to use non-default ports for http and https (1012677) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。

如果您使用的是 vCenter Server 2.5 Update 2 或更高版本,并且 vCenter Server 和 vCenter Update Manager 安装在不同的服务器上,可能会遇到以下症状:
  • 无法连接到 vCenter Update Manager
  • 无法启用 vCenter Update Manager 插件
  • 尝试安装插件时,您会看到以下错误:

    Unable to Connect to the Remote Server

  • 尝试启用插件时,您会看到以下错误:

    The Request failed because of a connection failure

  • vCenter Update Manager 无法连接到 vCenter Server
  • vCenter Update Manager Web 服务器日志中可能会显示类似以下内容的错误:

    [2009-02-20 13:27:03.663 'Ufa' 5232 info] Plugin initialized
    [2009-02-20 13:27:03.663 'ProxySvc' 5232 info] Proxy service created: http port (80), https port (443)
    [2009-02-20 13:27:03.678 'ProxySvc' 5232 error] Failed to create http proxy: Resource is already in use: Listen socket: :80
    [2009-02-20 13:27:03.678 'ProxySvc' 5232 info] Proxy service stopped
    [2009-02-20 13:27:03.678 'ProxySvc' 5232 info] Proxy service destroyed
    [2009-02-20 13:27:03.678 'Ufa' 5232 info] Plugin started

    注意:这些日志的默认路径为 C:\Documents and Settings\All Users\Application Data\VMware\VMware Update Manager\Logs\vum-webServer-*.log。请检查最新版本的日志。


Environment

VMware VirtualCenter 2.5.x
VMware vCenter Update Manager 1.0.x

Resolution

要确认为 vCenter Update Manager 配置了哪些 http 和 https 端口,请检查 vCenter Update Manager Server 上的注册表。

要检查 vCenter Update Manager Server 上的注册表,请执行以下操作:

  1. 单击开始 > 运行。键入 regedit,然后单击确定
  2. 导航到 HKEY_LOCAL_MACHINE\SOFTWARE\Vmware, Inc.\VMware Update Manager

    注意

    • 在 64 位的 Microsoft Windows 中,导航到 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Vmware, Inc.\VMware Update Manager
    • HttpPort 会标识为 http 配置的端口,默认值为 80
    • HttpsPort 会标识为 https 配置的端口,默认值为 443

要解决此问题,请更新 vCenter Update Manager Server 上的 vci-integrity.xml 文件。

要更新 vci-integrity.xml 文件,请执行以下操作:

  1. 创建 vci-integrity.xml 的备份副本。默认路径为 C:\Program Files\VMware\Infrastructure\Update Manager\vci-integrity.xml。
  2. 打开 vci-integrity.xml 文件进行编辑
  3. <proxySvc> 和 </proxySvc> 之间添加 <ports></ports>、<http></http> 和 <https></https> 标记。例如:
    <proxySvc>
    .
    .
    <ports>
    <http>9080</http>
    <https>9043</https>
    </ports>
    .
    .
    </proxySvc>

    注意:请将 <http><https> 的端口号设置为在注册表中配置的值。在此示例中,端口 9080 用于 <http>,端口 9043 用于 <https>。

  4. 保存此文件并退出。
  5. 重新启动 VMware Update Manager 服务,以使更改生效。


Additional Information

Unable to connect to the vCenter Update Manager when it is configured to use non-default ports for http and https