Diagnosing the vSphere Client when it fails to connect to an ESX/ESXi host or vCenter Server
search cancel

Diagnosing the vSphere Client when it fails to connect to an ESX/ESXi host or vCenter Server

book

Article ID: 308932

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides steps to troubleshoot issues when you are unable to connect to an ESX/ESXi host from the vSphere Client. The article aims to help you eliminate the common causes for your problem by verifying network connectivity, authentication, and permissions.

Symptoms:
  • vCenter Server cannot connect to the ESX/ESXi host.
  • Connecting vCenter Server to the ESX/ESXi host fails.
  • vSphere Client cannot connect to the ESX/ESXi host.
  • You see one or more of these errors:

    • Login failed
    • Login failed due to a bad username or password
    • Cannot complete due login due to an incorrect username or password
    • Timed out waiting for server response
    • Failed To Connect to host


Environment

VMware ESXi 4.0.x Embedded
VMware ESX 4.1.x
VMware vSphere ESXi 5.1
VMware ESXi 3.5.x Embedded
VMware ESXi 4.0.x Installable
VMware ESX 4.0.x
VMware vSphere ESXi 5.0
VMware ESX Server 3.5.x
VMware ESX Server 3.0.x
VMware ESXi 4.1.x Embedded
VMware vSphere ESXi 5.5
VMware ESXi 3.5.x Installable
VMware ESXi 4.1.x Installable

Resolution

Validate that each troubleshooting step below is true for your environment. Each step provides instructions or a link to a document. To eliminate possible causes and take corrective action as necessary. The steps are ordered in the most appropriate sequence to isolate the issue and identify the proper resolution. Do not skip a step.

Note: If you perform a corrective action in any of the following steps, attempt reconnecting to ESX/ESXi host with the vSphere Client.

  1. Verify that you are connecting to the correct hostname or IP address for your vCenter Server. Connections failed because incorrect server information may make the problem seem more complex than it is. Correct any incorrect names, and try connecting to vCenter Server with the vSphere Client. If the connection fails using the hostname but succeeds with IP address then it is probably a DNS error that needs to be corrected.

  2. Verify that network connectivity exists from the Client workstation to the ESX/ESXi host. For more information, see Testing network connectivity with the ping command (1003486).

  3. Verify that the ESX/ESXi Server Management service on the ESX/ESXi host is running. For more information, see Verifying that the Management Service is running on an ESX host (1003494) and Restarting the Management agents on an ESXi or ESX host (1003490).

  4. Verify that you can connect from the vCenter Server to the ESX/ESXi host on port 902 (If the ESX host was upgraded from version 2.x and you cannot connect on port 902, verify that you can connect on port 905). By default ESX/ESXi listens on port 902 and therefore if the previous steps are all correct it most means that a physical firewall is blocking connectivity on port 902. For more information, see Testing port connectivity with Telnet (1003487).

  5. Verify that the you are connecting with the correct username and password. Often, an incorrect username or password has been specified causing the log on failure to occur with the error: Cannot complete login due to an incorrect user name or password.

  6. Verify that the configured permissions for the account are sufficient to allow you to log in to the ESX/ESXi host. For more information, see Troubleshooting permissions errors when connecting to an ESX/ESXi host with the vSphere/Virtual Infrastructure client (1003887).

Note: If your problem still exists after trying the steps in this article, please:



Additional Information

For more information, see:
Testing network connectivity with the ping command
Testing port connectivity with Telnet
Restarting the Management agents in ESXi
Verifying that the Management Service is running on an ESX host
Collecting diagnostic information in a VMware Virtual Infrastructure Environment
Troubleshooting permissions errors when connecting to an ESXi/ESX host with the vSphere Client
VMware vCenter Server displays the error: Failed to connect to host
An ESX/ESXi 3.x or 4.x host takes a long time to boot when the DNS servers are unreachable
Cannot connect to the ESX/ESXi host or add it to vCenter Server
ESX/ESXi ホストまたは vCenter Server への接続に失敗したときの vSphere Client の診断
当 vSphere Client 连接 ESX/ESXi 主机或 vCenter Server 失败时对其进行诊断