To add a bit of detail: there’s no technical block on the FreeBSD side. The TPM 2.0 driver (CRB and TIS/FIFO modes) has been in the tpm(4) module since FreeBSD 12, not just 13. The limit is purely on the vSphere side: FreeBSD guest types fall under the “Other” family, and the vTPM option is only offered for Windows and Linux guest OS types.
What worked for me:
- Power off the VM, set Firmware to EFI.
- Temporarily change the guest OS to Linux / Other 4.x or later Linux (64-bit).
- Add the Trusted Platform Module device (a key provider must already be configured in vCenter).
- Inside FreeBSD, the driver isn’t loaded by default with GENERIC. Add
tpm_load="YES" to /boot/loader.conf, reboot, and check dmesg | grep -i tpm and that /dev/tpm0 exists.
- For userland, security/tpm2-tools from ports/pkg.
Keep in mind it stays an unsupported combination, so test it before relying on it for anything critical (e.g. key sealing).