Any method at all - for enabling encryption / TPM with some kind of command line tool?
These are the settings that needs to be automated, in case anyone was wondering what I'm blabbering about:
vmx.encryptionType = "partial"
vtpm.ekCSR = "MIIDbjCCAlYCAQAwSDEWMBQGBWeBBQIBDAtpZ...."
vtpm.ekCRT = "MIIEPjCCAyagAwIBAgIBATANBgkqhkiG9w0BAQsFA...."
vtpm.present = "TRUE"
encryption.keySafe = "vmware:key/list/(pair/(phrase/K2C1BPve6M0%3d/pass2key%3dPBKDF2%2dHM....))"
encryption.data = "pCaGF7K85+RPw7cYI9LTCOTQHHwi9lDebF...."
Original Message:
Sent: Jul 02, 2025 07:03 AM
From: Soren Schimkat
Subject: VMCLI - add encryption for enabling TPM
Hi all
My automation for building VM's with VMCLI is slowly going in the right direction, but I'm having trouble with figureing out how to add encryption to the .vmx, in order to allow a TPM module in the VM.
How would I add encryption with code?