vCenter Server Solution user certificate renewal process is failing using vCert script.
Executing the script with Manage Certificates option to replace Solution User certificates fails with below error
Replace Solution User Certificates
-----------------------------------------------------------------
Verifying Service Principal entries exist ERROR
Operation failed: Unable to update machine-<VCenter UUID> solution user certificate in VMDir.
or
ERROR rebuildServices: Mismatch between machine_id #38#######-####-####-####-##########7#6 and vpxd solution user vpxd-#92#######-####-####-####-##########d#@vsphere. local. Please fix this fore proceeding with this operation.
VMware vCenter Server 7.0.x
VMware vCenter Server 8.0.x
This issue is caused due to mismatch in Machine ID of vCenter Server. The UUID from the machine ID and the UUID in the vpxd service account name should match.
VDT check confirm that we have Machine ID mismatch.
VC Machine ID Check
[FAIL] Machine ID Check Machine ID doesn't match vpxd.cfg Current MID: #38#######-####-####-####-##########7#6 Correct MID: #92#######-####-####-####-##########d#4
Note: Take Snapshot of vCenter Server without memory before proceeding with below steps, offline snapshot of all nodes in vSphere Domain is required if vCenter Server is part of ELM.
/opt/likewise/bin/lwregshell ls "[HKEY_THIS_MACHINE\Services\vmdir]" | grep MachineGuid | awk '{print $2,$NF}'"MachineGuid" "38#######-####-####-####-##########7#6"/usr/lib/vmware-vmafd/bin/dir-cli service listlsdoctor -u. Refer Using the 'lsdoctor' Tool
cat /etc/vmware-vpx/vpxd.cfg | grep -i "<name>vpxd" vi /etc/vmware-vpx/vpxd.cfgservice-control --stop --all && service-control --start --all