After replacing a system board (motherboard) on an ESXi host equipped with a Trusted Platform Module (TPM), the following symptoms occur:
Unable to restore the system configuration. A security violation was detected. https://via.vmw.com/security-violation 428266The new host TPM endorsement key doesn't match the one stored in the DB 316512VMware vSphere ESXi 8.x
vCenter Server uses a unique hardware "fingerprint" called the Endorsement Key (EK), which is hardcoded into the TPM chip, to verify host integrity.
When a motherboard is replaced, the new TPM chip provides a different EK. vCenter detects this mismatch and blocks the host from booting or attesting to prevent unauthorized hardware replacement (spoofing). ESXi 8.x strictly enforce this configuration integrity, leading to the PSOD if the stale keys are not cleared from the vCenter database (VCDB). 316512
To resolve the mismatch and clear the PSOD without removing the host from the vSphere Distributed Switch (vDS) or inventory, follow these steps to clear stale keys from the vCenter database.
esxcli system settings encryption recovery list before the hardware swap). 436459encryptionRecoveryKey=<16-bit-key>vpxd service: service-control --stop vpxd /opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDBFQDN with the host's name): SELECT id, dns_name FROM vpx_host WHERE dns_name = 'host_fqdn';ID with the number from the previous step): UPDATE vpx_host SET endorsement_key='', attestation_identity_key='' WHERE id = <ID>;\qservice-control --start vpxdesxcli system settings encryption set --mode=TPM /sbin/auto-backup.sh 316512