You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config-linux.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -592,13 +592,19 @@ The following parameters can be specified to set up the controller:
592
592
Each entry has the following structure:
593
593
594
594
***`statePath`***(string, REQUIRED)* - Unique path where vTPM writes its state into.
595
-
***`statePathIsManaged`***(string, OPTIONAL)* - Whether runc is allowed to delete the TPM's state path upon destroying the TPM, defaults to false.
596
-
***`vtpmVersion`***(string, OPTIONAL)* - The version of TPM to emulate, either 1.2 or 2, defaults to 1.2.
595
+
***`statePathIsManaged`***(boolean, OPTIONAL)* - Whether runtime is not allowed to delete the TPM's state path upon destroying the TPM, e.g. if we do not want to recreate vTPM with the previous state. Defaults to false.
596
+
***`vtpmVersion`***(string, OPTIONAL)* - The version of TPM to emulate, either 1.2 or 2, defaults to 2.
597
597
***`createCerts`***(boolean, OPTIONAL)* - If true then create certificates for the vTPM, defaults to false.
598
-
***`runAs`***(string, OPTIONAL)* - Under which user to run the vTPM, e.g. 'tss'.
598
+
***`runAs`***(string, OPTIONAL)* - Under which user to run the vTPM, e.g. 'tss'.
599
599
***`pcrBanks`***(string, OPTIONAL)* - Comma-separated list of PCR banks to activate, default depends on `swtpm`.
600
600
***`encryptionPassword`***(string, OPTIONAL)* - Write state encrypted with a key derived from the password, defaults to not encrypted.
601
+
***`vtpmName`***(string, REQUIRED)* - The name of vTPM device to emulate in the container. The devpath will have the format `/dev/tpm` + `vtpmName`. `vtpmName` should be unique among the container's `vtpms` devices.
601
602
603
+
Note that some runtimes can use different commands to pass device in the container (e.g. bind if the container will be running in the non-default user namespace and mknod otherwise). Runtime can adopt a device path to the format `/dev/generated-host-path` + `vtpmName`. This can be essential if we want to create different containers with non-shared VTPM devices under the same device path.
604
+
***`vtpmMajor`***(int64, OPTIONAL) - The major of vTPM device to emulate in the container. This is required when runtime is running in the container and tmpfs is mounted on `/dev` path.
605
+
***`vtpmMinor`***(int64, OPTIONAL) - The minor of vTPM device to emulate in the container. This is required when runtime is running in the container and tmpfs is mounted on `/dev` path.
606
+
607
+
Note that a vTPM device should be precreated with Endorsement Key Pair. Another main commands e.g. TakeOwnership for TPM 1.2 can be called in the createContainer hooks.
602
608
#### Example
603
609
604
610
```json
@@ -610,7 +616,10 @@ Each entry has the following structure:
0 commit comments