PBM Authentication Error during Storage vMotion after Certificate Renewal
search cancel

PBM Authentication Error during Storage vMotion after Certificate Renewal

book

Article ID: 439006

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Attempts to perform a Storage vMotion of virtual machines fail following a certificate renewal or replacement in vCenter Server.

  • The task fails during the pre-migration phase in the vSphere Client with the following error: A general system error occurred: PBM error occurred during PreMigrateCheckCallback: Authentication failed: Invalid credentials.

  • The vCenter Diagnostic Tool (VDT) report flags the following checks:
    [FAIL] Machine ID Mismatch and [FAIL] Solution User Inconsistency.
    [FAIL] SSL Trust Mismatch.
    [FAIL] Solution User Cert Parity Checks.

  • Storage vMotion no longer functions despite the recent certificate replacement completing without reported errors.

Environment

  • VMware vCenter Server 7.x

  • VMware vCenter Server 8.x

Cause

This issue occurs when the MachineGuid registered in directory services does not match the identifiers stored in the vpxd.cfg configuration file or the solution user names (e.g., vpxd-####@vsphere.local). The Policy Based Management (PBM) service requires valid solution user credentials for authentication during migration pre-checks. Discrepancies often surface after certificate operations if the service identities are not properly synchronized across the SSO domain.

Resolution

Synchronize the Machine ID and recreate the affected solution users using the lsdoctor utility.

Note: Take a powered-off snapshot of all vCenter Server Appliances in the Enhanced Linked Mode (ELM) before proceeding.

  1. Update the Machine ID: Verify that the Machine ID in the vpxd.cfg configuration file matches the registry ID and directory services.

  2. Fix SSL Trust: Use the lsdoctor utility to resolve SSL trust mismatches: 

    python lsdoctor.py --trustfix

  3. Recreate Solution Users: Restore service-to-service authentication on the impacted node:

    python lsdoctor.py -u

  4. Rebuild Service Registrations: For any nodes flagged with inconsistencies by VDT:

    python lsdoctor.py -r

  5. Restart Services: Perform a full service restart on all vCenter Server nodes in the environment:

    service-control --stop --all && service-control --start --all

  6. Verify: Run a final VDT report to ensure a "Clean" status.

Additional Information

Using the VCF Diagnostic Tool for vSphere (VDT)

Using the 'lsdoctor' Tool