TPM emulation in VM's


jimbo45

Well-known member
Power User
VIP
Local time
7:30 AM
Posts
2,049
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Hi there
both KVM and HYPER-V can use emulated TPM's in their VM config if TPM issues become a problem

For KVM install package tpmsec, for Hyper-V it's I think "built in" - users of HYPER-V should be able to confirm.

For KVM VM's :

1) on the host install the package tpmsec as shown (or equivalent for your distro -- no need to initialize / configure for Windows Guests.

Screenshot_20220201_092851.png

On the Guest run tpm.msc to verify

Screenshot_20220201_095045.png

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

cereberus

Well-known member
Pro User
VIP
Local time
8:30 AM
Posts
2,543
OS
Windows 10 Pro + others in VHDs
It is built in in Hyper-V.

As far as I know TPM emulation is not yet in virtualbox or vmware - others might be able to confirm.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

CornishRattler

Well-known member
Pro User
VIP
Local time
8:30 AM
Posts
1,790
Location
Cornwall UK
OS
Windows 11 Pro Beta, 11 Dev, W10 VHDX Triple Boot
It is built in in Hyper-V.

As far as I know TPM emulation is not yet in virtualbox or vmware - others might be able to confirm.
Hyper V built in as you said, also in VMWare but no idea about VB
 

My Computer

System One

  • OS
    Windows 11 Pro Beta, 11 Dev, W10 VHDX Triple Boot
    Computer type
    Laptop
    Manufacturer/Model
    Dell Alienware M15 Ryzen Edition R6
    CPU
    AMD Ryzen™ 9 5900HX
    Memory
    32GB
    Graphics Card(s)
    NVIDIA® GeForce RTX™ 3070 8GB GDDR6
    Hard Drives
    1 x Samsung 980 Pro 1TB
    1 x Samsung 970 Evo Plus 1TB

FreeBooter

Well-known member
Power User
VIP
Local time
10:30 AM
Posts
1,004
Location
Adana
OS
Windows 11
VMWare can be configured to use TPM you will need to encrypt the virtual machine from Edit virtual machine settings --> Options --> Access Control and then add TPM feature from Hardware tab.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1

cereberus

Well-known member
Pro User
VIP
Local time
8:30 AM
Posts
2,543
OS
Windows 10 Pro + others in VHDs
VMWare can be configured to use TPM you will need to encrypt the virtual machine from Edit virtual machine settings --> Options --> Access Control and then add TPM feature from Hardware tab.
Thanks.

It seems next version of vb will have it. I am not sure what would happen if you open a Macrium Reflect image of Windows 11 in virtualbox.

Pity Macrium Viboot does not support vmware (yet?).

Only Hyper-V supports TPM and Viboot.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

cereberus

Well-known member
Pro User
VIP
Local time
8:30 AM
Posts
2,543
OS
Windows 10 Pro + others in VHDs

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

cereberus

Well-known member
Pro User
VIP
Local time
8:30 AM
Posts
2,543
OS
Windows 10 Pro + others in VHDs
VMWare can be configured to use TPM you will need to encrypt the virtual machine from Edit virtual machine settings --> Options --> Access Control and then add TPM feature from Hardware tab.
This is fine for the Pro version but does not work for the free version which does not (directly) support tpm.

However, there is an undocumented feature (just found out on web - newb to expert in 5 minutes LOL), that enables TPM emulation.

You add the following line to end of the .vmx file (create vm but do not install OS yet)

In my case, I created a VM called W11, and one of files created is V11.VMX.

Code:
managedvm.autoAddVTPM = "software"

Then close vm and install Windows 11.

Worked first time for me.

Only problem is Vmware seems to be very slow (and I have the hyper-v hypervisor turned off).

edit: I booted into wrong version i.e. one with Hypervisor running - no wonder it was slow (LOL)

Now booted with hypervisor off and vmware running ok.

edit 2: just done some tests with passmark, and as I expected Hyper-V was much faster than Vmware (in some tests up to twice as fast).
 
Last edited:

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
Top Bottom