Skip to content

Commit 07bcf73

Browse files
authored
Merge pull request #44827 from mgarrellRH/CNV14987
CNV14987: Adding information on support for vTPM
2 parents 09f3f81 + 9146c09 commit 07bcf73

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,6 +3149,8 @@ Topics:
31493149
File: virt-installing-virtio-drivers-on-existing-windows-vm
31503150
- Name: Installing VirtIO driver on a new Windows virtual machine
31513151
File: virt-installing-virtio-drivers-on-new-windows-vm
3152+
- Name: Using virtual Trusted Platform Module devices
3153+
File: virt-using-vtpm-devices
31523154
- Name: Advanced virtual machine management
31533155
Dir: advanced_vm_management
31543156
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)