vbox Oracle Virtualbox 7.1 and tpm

I am currently running FreeBSD 14.3-RC1 with virtualbox-ose-71-7.1.8

When I enable a VM with TPM 2.0, I get the following error.

Code:
Failed to construct device 'tpm' instance #0 (VERR_PDM_DRIVER_NOT_FOUND).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}
The VirtualBox logs show:
Code:
02:59:57.711100 DCon528  ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={5bfd8965-b81b-469f-8649-f717ce97a5d5} aComponent={NvramStoreWrap} aText={The UEFI NVRAM file is not existing for this machine}, preserve=false aResultDetail=0
02:59:57.713352 DCon528  ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={5bfd8965-b81b-469f-8649-f717ce97a5d5} aComponent={NvramStoreWrap} aText={The UEFI NVRAM file is not existing for this machine}, preserve=false aResultDetail=0
02:59:57.727103 DCon528  ERROR [COM]: aRC=NS_ERROR_NOT_IMPLEMENTED (0x80004001) aIID={bea3ef5c-de2f-4b74-aa3a-15d6249371a0} aComponent={RecordingSettingsWrap} aText={Method getProgress is not implemented}, preserve=false aResultDetail=0
02:59:57.730621 DCon528  ERROR [COM]: aRC=NS_ERROR_NOT_IMPLEMENTED (0x80004001) aIID={bea3ef5c-de2f-4b74-aa3a-15d6249371a0} aComponent={RecordingSettingsWrap} aText={Method getProgress is not implemented}, preserve=false aResultDetail=0

The tpm module is loaded in FreeBSD. Is this option not supported? Am I missing something obvious? Other VMs work fine, it is only when I set it to use TPM in the virtual machine settings. Any help is appreciated.
 
I never used before TPM in VirtualBox, just enabled it to check (TPM Version 2.0) and FreeBSD 14.3-RELEASE-p3 boots without any problems
(UEFI Boot, ZFS, vt cons)
VirtualBox 7.2.2, Win11 Pro 24H2 host.

P.S. Edit: Oh, sorry, I only now realized that this is about running VBox on FreeBSD host, not the other way around 🤦‍♂️
 
(EDIT: does not work under windows :-( protocol error) )
(EDIT1 perhaps relevant https://forums.virtualbox.org/viewtopic.php?p=554153&hilit=tpm+protocol+error#p554153
EDIT2 success windows 10 must be uefi booted in order to enable the tpm correctly)
EDIT3 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289922
in work/VirtualBox-7.1.12/Config.kmk line 769 add freebsd like this and rebuild. Also make sure you have libtpms installed (pkg install libtpms)
if1of ($(KBUILD_TARGET), linux darwin win solaris freebsd)
 
Back
Top