Check whether vpxd.cfg is corrupted
- Connect to the VCSA command line using the root user via SSH connection or vCenter VM console
- Run the following command to verify whether the vpxd.cfg file is valid.
- /usr/sbin/vpxd
- Corrupt vpxd.cfg result: Aborted (core dumped).
- Good vpxd.cfg result: a blank return.
Repair a corrupt vpxd.cfg
- Deploy a new vCenter virtual machine of the same version.
- That is, if the currently affected vCenter is version 6.7 Update 1, deploy a new vCenter VM that is 6.7 Update 1.
- Note this VM is needed only temporarily for its copy of the vpxd.cfg file.
- Get a copy of the vpxd.cfg file from the VM.
Note: access and copy files from the vCenter VM to a workstation using WinSCP or other SCP clients.
- Copy this file to the affected vCenter to this location: /etc/vmware-vpx/vpxd.cfg.
- Run the command to find out the current vCenter FQDN.
hostname -f
- Run the command to find out the current vCenter Machine ID
/usr/lib/vmware-vmafd/bin/vmafd-cli get-machine-id --server-name localhost
- Run the command to find out the current vpostgres version
/opt/vmware/vpostgres/current/bin/psql -V
- Run the command to find out the vCenter database password for vpxd
cat /etc/vmware-vpx/vcdb.properties
- Copy down all of these findings to a notepad.
- Use the vi editor to make changes to the new version of the vpxd.cfg file per Editing files on an ESXi host using vi except we will be editing the file on VCSA rather than ESXi.
- Remove the key_EvaluationExpiryDate
- Change hostnameUrl to be the correct vCenter FQDN found from the above instructions.
- Ensure all uri tags in the <sso> area point to the correct Platform Services Controller FQDN.
- If this is a vCenter with an embedded PSC then this information will still be the vCenter's FQDN.
Example:
- Change the machine ID for the vpxd solution user to the machine ID found from the above instructions
Example:
- Ensure Postgres DB version found from the above instructions is correct.
- If there is no entry for this in the vpxd.cfg file, this can be ignored.
Example:
- Update the vcdb password with the password recorded earlier:
/sbin/vpxd -p
- Run the command to start vpxd.
service-control --start vmware-vpxd