root account is locked or the password has expired due to local security policies, the authentication handshake between vCenter Server (via the vpxa agent) and the ESXi host fails. Consequently, vCenter cannot authenticate to deploy the HA agent, resulting in the "HA agent unreachable" or "Uninitialized" state.To resolve this issue, you must reset the expired root password, refresh the vCenter-to-ESXi authentication token, and force a reconfiguration of the HA agent.
Follow these steps below:
Reset the ESXi Root Password using Host Profiles If vCenter still maintains a management connection to the host but HA configuration is failing, you can leverage Host Profiles to reset the password without needing direct DCUI or SSH access.
Reference Article: Reset host root password with Host Profile
In the vSphere Client, navigate to Policies and Profiles > Host Profiles.
Extract a Host Profile from the affected host (or use an existing one).
Edit the Host Profile and navigate to Security and Services > Security Settings > Security > User Configuration > root.
Configure a new, complex root password.
Attach the Host Profile to the affected ESXi host(s) and Remediate to apply the new password.
Disconnect the ESXi Host from vCenter To force vCenter to recognize the new credentials and refresh the connection token, briefly disconnect the host.
Navigate to the Hosts and Clusters view.
Right-click the affected ESXi host and select Connection > Disconnect.
Wait for the host to show as (Disconnected) in the inventory.
Reconnect the ESXi Host
Right-click the disconnected ESXi host and select Connection > Connect.
The vpxa authentication routine will run, and vCenter will prompt you to enter the administrative credentials.
Enter the username (root) and the new password configured via the Host Profile in Step 1.
Allow the host to fully reconnect to the vCenter Server.
Reconfigure vSphere HA Once the host is fully connected and authenticating correctly, reinstall the HA agent.
Right-click the newly reconnected ESXi host.
Select Reconfigure for vSphere HA.
Monitor the Recent Tasks pane. The FDM agent will successfully deploy, and the host's HA State will change to Running (Primary/Secondary).