Page 1 of 1

Virtual TPM (vTPM) for guests ?

Posted: 13. Mar 2018, 19:55
by u111331
Hello,

I'd like to experiment with TPM, but while the sources seems to contain TPM related code (like https://www.virtualbox.org/svn/vbox/tru ... mm/Tpm.asl), I cannot see any mention elsewhere.
I've tried to enable EFI on a guest to see if it exposes one, but it seems not (or it's an hidden setting?).

There's this discussion viewtopic.php?f=10&t=15229 but no real anwser.

So, does VBox supports vTPM (and by curiosity because I don't have one, TPM passthrough)?
What are those sources https://www.virtualbox.org/svn/vbox/tru ... curityPkg/ about ?
What is this "Security package"?

Regards,

Re: Virtual TPM (vTPM) for guests ?

Posted: 14. Mar 2018, 01:52
by socratis
u111331 wrote:What is this "Security package"?
If you read one directory up, in the "ReadMe.vbox" file you'll see:
EFI firmware
============
EFI firmware based on the opensource EDK2 project.  The current base is
revision 18601 from: https://svn.code.sf.net/p/edk2/code/bra ... DK2014.SP1
I think that you might find more information in that project's page: https://github.com/tianocore/tianocore. ... iki/EDK-II

The part of the code that you're interested in, hasn't been essentially updated since they were first merged with r58464 in Oct/2015...

Re: Virtual TPM (vTPM) for guests ?

Posted: 14. Mar 2018, 15:57
by u111331
I didn't went that up and missed that, thank you.

So if I understand correctly, the firmware used supports TPM but VirtualBox doesn't emulate any TPM device so there's no support, right ? Nor TPM passthrough ?

Re: Virtual TPM (vTPM) for guests ?

Posted: 14. Mar 2018, 21:17
by socratis
Wild guess? No.
EFI was needed for OSX guests, and it slowly improves as time passes and customer's needs arise. But it's not a cutting edge emulation of an EFI environment. Not with those dates on the source code...