Exception occurred in postInstallHookInternal error occurs during execution of the upgrade process [Errno 8] Exec format error if binary corruption accompanies the mismatch.VC Machine ID Check [FAIL] Machine ID Check Machine ID doesn't match vpxd.cfg Current MID: abc#####-####-####-####-######## Correct MID: 123#####-####-####-####-######### Recommended command (service restart required): /usr/lib/vmware-vmafd/bin/vmafd-cli set-machine-id --server-name localhost --id 123#####-####-####-####-#########
patch_errors.UserError: vstats.patch.incrementalPatching.fail: Failed to apply patch: patch_04 due to: { "detail": [ { "id": "install.ciscommon.command.errinvoke", "translatable": "An error occurred while invoking external command : '%(0)s'", "args": [ "Error 166 while adding user vpxd-extension-########-####-####-####-############ to SSO group \"vStatsGroup\":\ndir-cli failed, error= Specified User or Group to be added doesn't exist. 100006\n" ], "localized": "An error occurred while invoking external command : 'Error 166 while adding user vpxd-extension-########-####-####-####-############ to SSO group \"vStatsGroup\":\ndir-cli failed, error= Specified User or Group to be added doesn't exist. 100006\n'" } ], "componentKey": null, "problemId": null, "resolution": null}, 5, { "detail": [ { "id": "install.ciscommon.command.errinvoke", "translatable": "An error occurred while invoking external command : '%(0)s'", "args": [ "Error 166 while adding user vpxd-extension-########-####-####-####-############ to SSO group \"vStatsGroup\":\ndir-cli failed, error= Specified User or Group to be added doesn't exist. 100006\n" ], "localized": "An error occurred while invoking external command : 'Error 166 while adding user vpxd-extension-########-####-####-####-############ to SSO group \"vStatsGroup\":\ndir-cli failed, error= Specified User or Group to be added doesn't exist. 100006\n'"The MachineGuid value stored within the local Likewise registry (vmdir service) is missing or desynchronized from the authoritative Machine ID managed by VMAFD and referenced in /etc/vmware-vpx/vpxd.cfg.
Update the Likewise registry to match the authoritative VMAFD Machine ID.
Take an offline (powered off) snapshot of the vCenter Server. If the VCSA is part of an Enhanced Linked Mode setup, take offline snapshots of all replication partners. Refer to Snapshot best practices for vCenter Server virtual machines for additional information.
Retrieve the active machine ID/usr/lib/vmware-vmafd/bin/vmafd-cli get-machine-id --server-name localhost
Check if the MachineGuid field exists in the registry: /opt/likewise/bin/lwregshell ls "[HKEY_THIS_MACHINE\Services\vmdir]"
Expected Output
root@vCenterFQDN [ ~ ]# /opt/likewise/bin/lwregshell ls "[HKEY_THIS_MACHINE\Services\vmdir]"
[\\Services\vmdir] "Arguments" REG_SZ "/usr/lib/vmware-vmdir/sbin/vmdird -L /var/log/vmware/vmdird/vmdird.log -l 0 -f /usr/lib/vmware- vmdir/share/config/vmdirschema.ldif" "Autostart" REG_DWORD 0x00000001 (1) "dcAccount" REG_SZ "vCenterFQDN" "dcAccountDN" REG_SZ "cn=vCenterFQDN,ou=Domain Controllers,dc=vsphere,dc=local" "dcAccountPassword" REG_SZ "########" "DirtyShutdown" REG_DWORD 0x00000000 (0) "LduGuid" REG_SZ "#######-####-####-####-#########" "MachineGuid" REG_SZ "#######-####-####-####-#########" "SiteGuid" REG_SZ "#######-####-####-####-#########" "Dependencies" REG_SZ "vmafd" "Description" REG_SZ "VMware Directory Service" "Environment" REG_SZ "" "Path" REG_SZ "/usr/lib/vmware-vmdir/sbin/vmdird" "Type" REG_DWORD 0x00000001 (1)
[HKEY_THIS_MACHINE\Services\vmdir\Parameters]
If the MachineGuid field does not exist, add it manually using a temporary value: /opt/likewise/bin/lwregshell add_value '[HKEY_THIS_MACHINE\Services\vmdir]' MachineGuid REG_SZ 1
Update the MachineGuid to the correct value obtained in Step 3: /opt/likewise/bin/lwregshell set_value '[HKEY_THIS_MACHINE\Services\vmdir]' "MachineGuid" <Correct_UUID>
Restart all vCenter services: service-control --stop --all && service-control --start --all
Re-run the vCenter upgrade pre-check or VDT to confirm the failure is resolved.
VDT reports "Machine ID Check" FAIL due to Likewise registry mismatch
Verify the Solution User Machine IDs using the below command to ensure all components are synchronized after the Likewise registry update./usr/lib/vmware-vmafd/bin/dir-cli service list