Skip to content

Commit 9146c09

Browse files
author
Matthew Garrell
committed
CNV14987 Adding information on support for vTPM
CNV14987 Adding information on support for vTPM 2 CNV14987 Adding information on support for vTPM 3 CNV14987 Changes based on peer review CNV14987 Changes based on peer review 2 CNV14987 Changes based on peer review 3 CNV14987 Changes based on peer review 4 CNV14987 Changes based on peer review 5 CNV14987 Changes based on peer review 6
1 parent c74cd78 commit 9146c09

File tree

4 files changed

+81
-1
lines changed

4 files changed

+81
-1
lines changed

_topic_maps/_topic_map.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ Topics:
16091609
- Name: Deploying a Spring Boot application with Argo CD
16101610
File: deploying-a-spring-boot-application-with-argo-cd
16111611
- Name: Argo CD custom resource properties
1612-
File: argo-cd-custom-resource-properties
1612+
File: argo-cd-custom-resource-properties
16131613
- Name: Monitoring application health status
16141614
File: health-information-for-resources-deployment
16151615
- Name: Configuring SSO for Argo CD using Dex
@@ -3110,6 +3110,8 @@ Topics:
31103110
File: virt-installing-virtio-drivers-on-existing-windows-vm
31113111
- Name: Installing VirtIO driver on a new Windows virtual machine
31123112
File: virt-installing-virtio-drivers-on-new-windows-vm
3113+
- Name: Using virtual Trusted Platform Module devices
3114+
File: virt-using-vtpm-devices
31133115
- Name: Advanced virtual machine management
31143116
Dir: advanced_vm_management
31153117
Topics:

modules/virt-about-vtpm-devices.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/virt-using-vtpm-devices.adoc
4+
5+
:_content-type: CONCEPT
6+
[id="virt-about-vtpm-devices_{context}"]
7+
= About vTPM devices
8+
9+
A virtual Trusted Platform Module (vTPM) device functions like a
10+
physical Trusted Platform Module (TPM) hardware chip.
11+
12+
You can use a vTPM device with any operating system, but Windows 11 requires
13+
the presence of a TPM chip to install or boot. A vTPM device allows VMs created
14+
from a Windows 11 image to function without a physical TPM chip.
15+
16+
If you do not enable vTPM, then the VM does not recognize a TPM device, even if
17+
the node has one.
18+
19+
vTPM devices also protect virtual machines by temporarily storing secrets
20+
without physical hardware. However, using vTPM for persistent secret storage is
21+
not currently supported. vTPM discards stored secrets after a VM shuts down.

modules/virt-adding-vtpm-to-vm.adoc

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/virt-using-vtpm-devices.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="virt-adding-vtpm-to-vm_{context}"]
7+
= Adding a vTPM device to a virtual machine
8+
9+
Adding a virtual Trusted Platform Module (vTPM) device to a virtual machine
10+
(VM) allows you to run a VM created from a Windows 11 image without a physical
11+
TPM device. A vTPM device also temporarily stores secrets for that VM.
12+
13+
.Procedure
14+
15+
. Run the following command to update the VM configuration:
16+
+
17+
[source,terminal]
18+
----
19+
$ oc edit vm <vm_name>
20+
----
21+
22+
. Edit the VM `spec` so that it includes the `tpm: {}` line. For example:
23+
+
24+
[source,yaml]
25+
----
26+
apiVersion: kubevirt.io/v1
27+
kind: VirtualMachine
28+
metadata:
29+
name: example-vm
30+
spec:
31+
template:
32+
spec:
33+
domain:
34+
devices:
35+
tpm: {} <1>
36+
...
37+
----
38+
<1> Adds the TPM device to the VM.
39+
40+
. To apply your changes, save and exit the editor.
41+
42+
. Optional: If you edited a running virtual machine, you must restart it for
43+
the changes to take effect.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:_content-type: ASSEMBLY
2+
[id="virt-using-vtpm-devices"]
3+
= Using virtual Trusted Platform Module devices
4+
include::_attributes/common-attributes.adoc[]
5+
:context: virt-using-vtpm-devices
6+
7+
toc::[]
8+
9+
Add a virtual Trusted Platform Module (vTPM) device to a new or existing virtual
10+
machine by editing the `VirtualMachine` (VM) or `VirtualMachineInstance` (VMI)
11+
manifest.
12+
13+
include::modules/virt-about-vtpm-devices.adoc[leveloffset=+1]
14+
include::modules/virt-adding-vtpm-to-vm.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)