Add vTPM Security to KVM Instance
About vTPM Security
A virtual Trusted Platform Module (vTPM) is a software-based representation of a physical Trusted Platform Module 2.0 chip. A vTPM acts as any other virtual device and provides security-related functions such as random number generation, attestation, and key generation. When added to a KVM instance, vTPM enables the guest OS to create and store keys that are private and not exposed to other guests. If a KVM instance is compromised and vTPM is enabled, the risk of its secrets being compromised is reduced because the keys are only usable to the KVM's guest OS for encryption or signing.
You can add a vTPM to an existing Oracle Linux 8, or Oracle Linux 9 KVM. When you enable vTPM, the KVM files are encrypted but not the disks. Although, you can choose to add encryption explicitly for the KVM and its disks.
What Do You Need?
- Administrator privileges.
- Existing KVM instance on host system.
For details, see Create: KVM Instance.
Steps
Follow these steps to install the vTPM software package and edit the guest OS configuration file to include vTPM security properties.