We followed the below steps to remove host from vCenter before adding to a new vCenter .
Prerequisites
Make sure NFS mounts are active. If NFS mounts are unresponsive, the operation fails.
Procedure
While adding the host to the new vCenter we encountered error “Failed to configure the VIM account on the host”. We followed many troubleshooting steps like removing existing vpxa user from the host but no luck . Finally we resolved it by following the below steps as we noticed once the host is added to a vcenter password policies are changed so we had to change the password policies of the host back to default by following the below steps.
- Login to the host Client .
- Navigate to system and Advanced Settings .
- Edit the key Security.PasswordQualityControl Value as
retry=3 min=disabled,disabled,disabled,7,7