Configuring TPM 2.0 on a 6.7 ESXi host (2024)

In a previous blog post I went over the details on how ESXi uses a TPM 2.0 chip to provide assurance that Secure Boot did its job and how that “attestation” rolls up to vCenter to be reported on.

In this blog article I’m going to go over some of steps necessary to configure the ESXi host to use TPM 2.0 chip. Now, I have only a limited number of hardware systems in my lab from which to do this, but the steps should be familiar, regardless of the server model.

Stop! Important Note!

Please see my other blog on “Prepping an ESXi 6.7 host for Secure Boot“. TPM 2.0’s function on an ESXi host to attest that Secure Boot has done its job. If you cannot successfully boot with Secure Boot FIRST then don’t don’t bother trying to configure the host for TPM 2.0. You need Secure Boot working FIRST. First rule of good troubleshooting, limit the number of changes!

Prerequisites

As called out in the documentation, there are a few prerequisites you need to meet before starting this process.

To use a TPM 2.0 chip, your vCenter Server environment must meet these requirements:

  • vCenter Server 6.7

  • ESXi 6.7 host with TPM 2.0 chip installed and correctly configured in the UEFI bios

  • UEFI Secure Boot enabled

Server BIOS settings

Correctly configuring the TPM 2.0 devices in the BIOS involves ensuring a number of settings are correct.

  • The TPM is set to use SHA-256 hashing
  • If available, it must also be set to use the IS/FIFO (First-In, First-Out) interface and not CRB (Command Response Buffer)
  • TXT must be disabled
    • Yes, we use TXT when using TPM 1.2 but it is not yet implemented in TPM 2.0 on ESXi (and yes, I ran in to this specifically!)

My Servers

The servers I have in my lab are Dell PowerEdge R630’s. They originally came with TPM 1.2 devices but I had them upgraded to TPM 2.0 and they are running BIOS version 2.6.0.

TPM Settings

Here are the settings in the System Security part of my servers BIOS. Your systems may look different but the options should be similar.

RTFM?

When I first started this process I did what most do. I didn’t read the docs. I like to break things and see if I can fix them. And then ask questions of the engineers. Why do I do this? Well, for one, I believe I learn faster by breaking and fixing and besides, it’s a lot more fun for me. Also, I’m trying to replicate what customers may encounter. Oh, sure, 99% of you actually read the docs before jumping on to Twitter to ask a question, right? RIGHT? Well, I’m there for that 1% who don’t!

When I started, I got the TPM 2.0 devices installed and I then installed 6.7 (after updating my VCSA first of course!). What resulted next was an error on the summary page of the ESXi host.

Note: I do not have 117 ESXi hosts at my disposal. Yes, I have been asked that.

I went in to the BIOS and started playing around with settings. I cleared the “TPM Hierarchy” (the contents of the TPM) but that didn’t do it. I was getting an alarm that things weren’t configured correctly.

Hashing

One of our engineers, Sam, was awesome. I have to give her credit for maintaining her patience with me. She had me look at the logs and sure enough, we found something interesting:

1

2

3

2018-05-09T21:30:21.060Z cpu23:2099722)WARNING: tpmDriver: TpmDriverInitImpl:532: TPM 2 SHA-256 PCR bank not found to be active.

2018-05-09T21:30:21.060Z cpu23:2099722)tpmdriver failed to load.

2018-05-09T21:30:21.061Z cpu23:2099722)WARNING: Elf: 3144: Kernel based module load of tpmdriver failed: Failure <Mod_LoadDone failed>

Oh look! TPM wasn’t set to use SHA256 hashing! So I set the TPM to use SHA256 hashing.

This setting was in the TPM Advanced settings page that I was able to select the hashing algorithm. See below:

TXT Disable

Note that when I took this screenshot I had TXT enabled. This caused another set of errors in the log files. Here’s the text from that.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

[root@esxi-117:/var/log] grep tpm vmkernel.log

2018-05-10T14:02:27.659Z cpu29:2097807)Activating Jumpstart plugin tpm.

2018-05-10T14:02:27.709Z cpu46:2099728)Loading module tpmdriver ...

2018-05-10T14:02:27.711Z cpu46:2099728)Elf: 2101: module tpmdriver has license VMware

2018-05-10T14:02:27.716Z cpu46:2099728)tpmDriver: TpmDriverFindIoMemory:332: Found TPM at base: 0xfed40000

2018-05-10T14:02:27.716Z cpu46:2099728)tpmDriver: Tpm2Init:1582: Activated locality 0

2018-05-10T14:02:27.716Z cpu46:2099728)tpmDriver: Tpm2CheckInterface:603: TPM is in FIFO mode.

2018-05-10T14:02:27.726Z cpu46:2099728)tpmDriver: Tpm2Init:1596: Initialization of TPM 2 impl done.

2018-05-10T14:02:27.736Z cpu46:2099728)tpmDriver: Tpm2LogVendor:1551: Vendor ID: NTC

2018-05-10T14:02:27.777Z cpu46:2099728)tpmDriver: Tpm2ResMgr_Init:1415: TPM 2.0 Resource manager initialized.

2018-05-10T14:02:27.817Z cpu46:2099728)Mod: 4962: Initialization of tpmdriver succeeded with module ID 102.

2018-05-10T14:02:27.817Z cpu46:2099728)tpmdriver loaded successfully.

2018-05-10T14:02:27.820Z cpu29:2097807)Jumpstart plugin tpm activated.

2018-05-10T14:02:55.920Z cpu18:2100795)tpmDriver: Tpm2ResMgrProcessResponse:846: Error: TPM command error code 0x18b

While going through this process I was sharing my experiences on the vExpert Slack channel and others had come across the “Tpm2ResMgrProcessResponse:846: Error: TPM command error code 0x18b” error as well.

It was at this time that I was told by Engineering to disable TXT. TXT has not been implemented it in our current TPM 2.0 code.

Time to file a bug report

Reboot number, oh, I don’t know, 3? 4? I still encountered a failure. So I filed a bug. This time the host was reporting a “Failed” attestation and there was nothing in the kernel log stating why. Another one of our engineers looked at the bug and the vCenter and ESXi support bundles and found the latest culprit.

1

2

3

vpxd-11.log:2018-05-10T17:41:05.588Z info vpxd[05828] [Originator@6876 sub=Attestation opID=HB-host-29@74-be7ec9-SWI-4843ebf6] Starting host attestation; [vim.HostSystem:host-29,esxi-117.foobar.com]

vpxd-11.log:2018-05-10T17:41:05.588Z info vpxd[05828] [Originator@6876 sub=Attestation opID=HB-host-29@74-be7ec9-SWI-4843ebf6] No cached identity key, loading from DB

vpxd-11.log:2018-05-10T17:41:05.591Z warning vpxd[05828] [Originator@6876 sub=Attestation opID=HB-host-29@74-be7ec9-SWI-4843ebf6] Failed to update integrity report; [vim.HostSystem:host-29,esxi-117.foobar.com], N7Vmacore9ExceptionE(No identity key in DB, try to reconnect host)

A-Ha! “No identity key in DB, try to reconnect host” explains it! What this means is that the host was added to vCenter without a TPM 2.0 chip enabled in the bios. After it was added was when the TPM 2.0 chip was enabled in the BIOS. In my case, my hosts were added a couple of years ago, I installed a TPM 2.0 device after the fact. What this error means is that there is no TPM Endorsem*nt Key stored in the VCDB. This trust is set up when vCenter first adds the host to a cluster.

Disconnect…Reconnect

The solution was simple. Disconnect and reconnect the host. Put the host into Maintenance Mode, right click and select Connection…Disconnect and then right click again and select Connection…Connect. No need to remove the host from inventory.

Documentation fixes

Unfortunately, when I looked in the documentation (after the fact, naturally) to see if the error and solution was documented the response was “Call support”. We quickly got that fixed and now the documentation says the following:

Note: If you add a TPM 2.0 chip to an ESXi host that is already managed by a vCenter Server, you must first disconnect the host, then reconnect it. See vCenter Server and Host Management documentation for information about disconnecting and reconnecting hosts.

In fact, we even added a section on troubleshooting based directly on my experiences that led to this blog!

Passed Attestation

At this point the host showed up as having passed attestation! Woo-Hoo! Secure Boot has done its job and I can provide a report that says so, based on TPM 2.0 trust.

Wrap Up

I hope this has been helpful for you in setting up your ESXi host to use TPM 2.0. I think out of this whole process of NOT looking at the documentation and fumbling my way through the setup and configuration helped us end up with much better documentation and a better understanding of where things could go wrong. That’s #winning in my book.

I want to thank all the engineers that helped out on this. It really helped me understand what’s going on under the covers and enabled me to write these blogs.

If you have questions that haven’t been answered you can reply here, send them to mfoley at vmware.com or via Twitter to @vspheresecurity or my personal Twitter account: @mikefoley

@vspheresecurity is a curated list of vSphere Security specific tweets.

Thanks for reading!

mike

Related Posts:

  • ESXi 7 Boot Media Considerations and VMware Technical…
  • Introducing vSphere 8 Update 1
  • vSphere Security: Proactive and Continuous
  • Announcing Early Availability of VMware ESXi Lifecycle…
  • Announcing vSphere Q3 2023 Release
  • Important Information on ESXi 7 Update 3
  • vSphere 8 Update 1 Achieves Initial Availability
  • Embracing Change with VMware vSphere Foundation
  • Announcing Photon OS 5.0 - General Availability
  • Kubernetes Kase Files, The Big Reveal
  • Kubernetes Kase Files, You Can’t Teach an Old Dog New Tricks
  • Kubernetes Kase Files, Widening the vSphere of Influence
  • VMware vSphere Foundation: Optimizing Private Clouds and…
  • Announcing Availability of vSphere 7 Update 3c
Configuring TPM 2.0 on a 6.7 ESXi host (2024)

FAQs

How to enable TPM on ESXi? ›

  1. Set up Your Workstation.
  2. Enable the Trust Authority Administrator.
  3. Enable the Trust Authority State.
  4. Collect Information About ESXi Hosts and vCenter Server to Be Trusted. ...
  5. Import the Trusted Host Information to the Trust Authority Cluster.
  6. Create the Key Provider on the Trust Authority Cluster.
Aug 28, 2024

Do I need TPM for ESXi? ›

In vSphere 7.0 Update 2 and later, the archived configuration file is encrypted. When the ESXi host is configured with a Trusted Platform Module (TPM), the TPM is used to "seal" the configuration to the host, providing a strong security guarantee and additional protection from offline attacks.

How to set TPM on VMware? ›

We can follow the below steps to enable TPM and Secure Boot on VMware:
  1. Launch VMware Workstation.
  2. Choose a VM.
  3. Select Settings from the VM menu.
  4. Select the Options tab.
  5. Choose the Access Control option.
  6. Select the Encrypt button from the “Encryption” section.
  7. Make a password for encryption.
  8. Select the Encrypt option.
Nov 25, 2022

What is TPM 2.0 in VMware? ›

A virtual Trusted Platform Module (vTPM) as implemented in VMware vSphere is a virtual version of a physical TPM 2.0 chip, implemented using VM Encryption. It offers the same functionality as a physical TPM but is used within virtual machines (VMs).

How to disable TPM on ESXi? ›

I can perform these steps to disable TPM in the BIOS but then I will receive an ESXi purple screen.
  1. Reboot the Host.
  2. Press F9 to Enter System utilities.
  3. Go to RBSU.
  4. Then go to Server security. ...
  5. TPM Options.
  6. Tap TPM Visibility. ...
  7. Press the F12 button to Save and Exit.
  8. Tap Yes to Exit and reboot.
Apr 4, 2023

What is tech support mode on the ESXi host? ›

The ESXi Shell (formerly known as Tech Support Mode) provides essential maintenance commands. It can be used in exceptional cases that cannot be handled through standard remote management or CLI tools. The ESXi Shell is primarily intended for use in break-fix scenarios.

Which three ESXi installation options are required? ›

Then choose between one of the three available options to install ESXi through VMware vSphere: Interactive, Scripted, or Auto-Deploy.

Do I need to install VMware tools on host? ›

A VM can work without VMware Tools, but you'll be missing most of the features and advantages of using VMs. It is highly recommended that you install VMware Tools on guest operating systems running on VMware virtual machines.

Do I need to enable Secure Boot for TPM? ›

Windows 11 now lists TPM 2.0, Secure Boot, and UEFI mode as mandatory options to run it. While modern motherboards support all three of those, for some reason, manufacturers ship their products with TPM and Secure Boot disabled by default.

Can TPM be enabled on VM? ›

Virtual TPM is an optional layer of security for a virtual machine and allows you to protect data from unauthorized access and use additional Windows security features. After adding a virtual TPM chip to a VM, Parallels Desktop creates an encrypted file within the virtual machine bundle that acts as a TPM storage.

Does VMWare support UEFI? ›

When setting up a Windows 11 VM, using VMware Workstation Pro 17.5. 2 on a Windows 11 host, one can go to VM tab, Settings, Options tab, Advanced, and choose Firmware type: BIOS or UEFI with Secure Boot.

How to change BIOS to UEFI in VMWare? ›

Switch VM from BIOS to UEFI boot
  1. Add a new VMDK (vDisk) to the VM. Format this as GPT.
  2. Backup the MBR partition Win10 install via VEEAM EP Backup (or perhaps CloneZilla would be best…?)
  3. Boot to recovery media and restore the MBR backup to the new GPT disk.
Mar 1, 2018

Is TPM 2.0 still required? ›

So, does your PC have a TPM? If it was designed in 2016 and sold with Windows preinstalled, the answer is almost certainly yes. That's the year Microsoft began requiring manufacturers to ship PCs with TPM 2.0 available and enabled by default.

How to enable TPM on ESXi 8? ›

By upgrading to ESXi 8.0, we are now correctly letting users know that their TPM device can not be used. To get rid of the message, you will need to go into BIOS and under Security->Security Features->Intel Platform Trust Technology (uncheck to disable), which is the same solution I had posted back in 2020.

What is TPM 2.0 How do I enable? ›

Enable TPM 2.0 on your PC
  1. Press [Windows Key] + R or select Start > Run.
  2. Type “tpm.msc” (do not use quotation marks) and choose OK. If you see a message saying a “Compatible TPM cannot be found,” your PC may have a TPM that is disabled.

How do I activate my TPM? ›

Enable TPM 2.0 on your PC
  1. Press [Windows Key] + R or select Start > Run.
  2. Type “tpm.msc” (do not use quotation marks) and choose OK. If you see a message saying a “Compatible TPM cannot be found,” your PC may have a TPM that is disabled.

How do I enable CBT on ESXi? ›

Open the vSphere Client and select a powered-off virtual machine. Right-click the virtual machine and navigate to Edit settings > Advance Parameter. The option ctkEnabled = "TRUE" is a VMX option which controls the general CBT configuration for the virtual machine.

How do I enable virtualization in ESXi? ›

Enabling VT-x / AMD-V Virtualization Inside ESXi Virtual Machine
  1. Shutdown your virtual machine inside ESXi.
  2. SSH to your ESXi: C++ ...
  3. run df - locate address of your mounted drive with VMs: ...
  4. Locate location of your vmx: ...
  5. Put setting vhv.enable=TRUE at the bottom of your box's vmx file: ...
  6. You are done.
Sep 22, 2015

Top Articles
Vegetarische Gyoza - Rezept aus 10 Zutaten für japanische Teigtaschen
How to Make Vegan Chinese Chive Pockets (韭菜盒子) - WoonHeng
11 beste sites voor Word-labelsjablonen (2024) [GRATIS]
Avonlea Havanese
Danatar Gym
Mrh Forum
Jailbase Orlando
Rek Funerals
سریال رویای شیرین جوانی قسمت 338
Notary Ups Hours
Victoria Secret Comenity Easy Pay
Mivf Mdcalc
Tiger Island Hunting Club
Mlb Ballpark Pal
Best Fare Finder Avanti
24 Hour Walmart Detroit Mi
Craiglist Tulsa Ok
Dignity Nfuse
How Much Is Tay Ks Bail
Missouri Highway Patrol Crash
Ms Rabbit 305
Mccain Agportal
Decosmo Industrial Auctions
Hewn New Bedford
Atdhe Net
C&T Wok Menu - Morrisville, NC Restaurant
Best Sports Bars In Schaumburg Il
MyCase Pricing | Start Your 10-Day Free Trial Today
Silky Jet Water Flosser
Delectable Birthday Dyes
Biografie - Geertjan Lassche
Worthington Industries Red Jacket
Albertville Memorial Funeral Home Obituaries
Current Students - Pace University Online
Mawal Gameroom Download
Pokemmo Level Caps
Glossytightsglamour
Game8 Silver Wolf
Koninklijk Theater Tuschinski
What Does Code 898 Mean On Irs Transcript
Spectrum Outage in Genoa City, Wisconsin
Colorado Parks And Wildlife Reissue List
Sarahbustani Boobs
Walmart Careers Stocker
Maplestar Kemono
Haunted Mansion Showtimes Near Millstone 14
The Jazz Scene: Queen Clarinet: Interview with Doreen Ketchens – International Clarinet Association
Freightliner Cascadia Clutch Replacement Cost
The Plug Las Vegas Dispensary
North Park Produce Poway Weekly Ad
Mast Greenhouse Windsor Mo
Latest Posts
Article information

Author: Domingo Moore

Last Updated:

Views: 5676

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.