Virtual TPM (vTPM) for guests ?

This is for discussing general topics about how to use VirtualBox.
Post Reply
u111331
Posts: 3
Joined: 12. Mar 2018, 18:12

Virtual TPM (vTPM) for guests ?

Post 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,
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtual TPM (vTPM) for guests ?

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
u111331
Posts: 3
Joined: 12. Mar 2018, 18:12

Re: Virtual TPM (vTPM) for guests ?

Post 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 ?
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtual TPM (vTPM) for guests ?

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply