Description:
Add cmdline option for TPM emulation
How to use TPM2 passthrough:
Add -l tpm2,passthru,/dev/tpmX to your bhyve cmd line.
bhyve -c 2 -m 4G -A -H -P -w \ -s 0,hostbridge \ -s 4,virtio-blk,/root/win/win10.img \ -s 5,virtio-net,tap10 \ -s 20,xhci,tablet \ -s 29,fbuf,tcp=0.0.0.0:5900,wait \ -s 31,lpc \ -l com1,stdio \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_CODE.fd \ -l tpm2,passthru,/dev/tpm0 \ win10
Tested Scenarios:
OS | |
Ubuntu | Working |
Windows | Working |
Tested with Intels fTPM device.