In VCF 9.1, when vCenter instances are linked using vCenter Groups rather than the deprecated vCenter ELM, you may experience synchronization failures with Virtual Machine templates.
Specifically, this occurs under the following conditions:
During the sync process, the VM template fails to synchronize, and you observe one of the following errors in the vSphere Client:
A general system error occurred: Failed to publish library <source library> to subscribed library <target library> on vCenter Server XYZ. Reason: The operation failed due to Permission to perform this operation was denied.
Permission to perform this operation was denied: You do not hold privileges...
Note: VM template synchronization functions correctly if the vCenter instances are linked using the older ELM method.
VCF 9.1
When vCenter instances are linked using vCenter Groups in VCF 9.1, the built in Content Library service account is not automatically added to the correct SSO group.
Without this group membership, the account lacks the required cross vCenter permissions to sync VM templates. This causes the synchronization to fail with an "access denied" error.
To resolve this issue, you must manually add the Content Library service account to the vSphereClientSolutionUsers group on all linked vCenter instances.
Perform the following steps via SSH on each linked vCenter Server appliance:
/usr/lib/vmware-vmafd/bin/vmafd-cli get-machine-id --server-name localhost
/usr/lib/vmware-vmafd/bin/dir-cli group modify --name vSphereClientSolutionUsers --add content-library-user-<machine-id> --login <vCenter Server SSO administrator login id>
Repeat this process on all remaining vCenter instances in the VCF Operations vCenter group.