This KB introduces the full process of enabling TPM on ESXi.
/usr/lib/vmware/secureboot/bin/secureBoot.py -c
Expected output is:
Secure boot can be enabled: All vib signatures verified. All tardisks validated. All acceptance levels validated
esxcli hardware trustedboot get
Expected output is:
Drtm Enabled: [true|false]
Tpm Present: true
esxcli system settings encryption get
Expected output is:
Mode: TPM
Require Executables Only From Installed VIBs: false
Require Secure Boot: true
esxcli system settings encryption set --mode=TPM
esxcli system settings encryption set -s 1