Sie können das Verhalten der Confidential Space-Arbeitslast-VM ändern, indem Sie beim Erstellen der VM Variablen an die Option --metadata übergeben.
Wenn Sie mehrere Variablen übergeben möchten, legen Sie zuerst das Trennzeichen fest, indem Sie dem --metadata-Wert ^~^ voranstellen. Dadurch wird das Trennzeichen auf ~ festgelegt, da , in Variablenwerten verwendet wird.
Autor der Arbeitslast: Der
allow_cgroups
Startrichtlinie.
Boolesch
Die Standardeinstellung ist false. Wenn dieser Parameter auf true gesetzt ist, wird eine Namespaced-Cgroup-Bereitstellung unter /sys/fs/cgroup aktiviert.
Legt Umgebungsvariablen im Arbeitslastcontainer fest. Der Autor der Arbeitslast muss die Namen der Umgebungsvariablen auch der allow_env_override-Startrichtlinie hinzufügen, da sie sonst nicht festgelegt werden.
Gibt an, ob der GPU-Treiber für Confidential Computing von NVIDIA installiert werden soll.
Erfordert einen Maschinentyp, der NVIDIA Confidential Computing unterstützt (Vorschau).
Die Standardeinstellung ist false. Wenn true festgelegt ist, wird die Überwachung der Speichernutzung aktiviert. Die von der Confidential VM erfassten Messwerte haben den Typ guest/memory/bytes_used und können in Cloud Logging oder im Metrics Explorer aufgerufen werden.
Eine Liste von durch Semikolons getrennten Mount-Definitionen. Eine Mount-Definition besteht aus einer durch Kommas getrennten Liste von Schlüssel/Wert-Paaren, für die type, source und destination erforderlich sind. destination muss ein absoluter Pfad sein und type/source muss tmpfs sein.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-02 (UTC)."],[[["\u003cp\u003eYou can modify the behavior of a Confidential Space workload VM by using the \u003ccode\u003e--metadata\u003c/code\u003e option and passing in specific variables during VM creation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etee-image-reference\u003c/code\u003e metadata key is required and it specifies the location of the workload container image.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etee-cmd\u003c/code\u003e metadata key allows overriding the \u003ccode\u003eCMD\u003c/code\u003e instructions defined in the workload container's Dockerfile, while other variables allow environment variables, service accounts impersonation, memory monitoring and mount definitions to be modified.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etee-container-log-redirect\u003c/code\u003e key controls the destination of the workload container's \u003ccode\u003eSTDOUT\u003c/code\u003e and \u003ccode\u003eSTDERR\u003c/code\u003e output, allowing it to be directed to the serial console, Cloud Logging, or both.\u003c/p\u003e\n"],["\u003cp\u003eYou can define the restart policy for the workload container using \u003ccode\u003etee-restart-policy\u003c/code\u003e, with options such as \u003ccode\u003eNever\u003c/code\u003e, \u003ccode\u003eAlways\u003c/code\u003e, or \u003ccode\u003eOnFailure\u003c/code\u003e, which dictates the container's behavior when it stops.\u003c/p\u003e\n"]]],[],null,["# Workload metadata variables\n\n[Workload operator](/confidential-computing/confidential-space/docs/confidential-space-overview#roles)\n\n*** ** * ** ***\n\nYou can change the Confidential Space workload VM behavior by passing variables\ninto the `--metadata` option when you create the VM.\n\nTo pass in multiple variables, first set the delimiter by prefixing the\n`--metadata` value with `^~^`. This sets the delimiter to `~`, as `,` is used in\nvariable values.\n\nFor example: \n\n metadata=\"^~^tee-restart-policy=Always\\~tee-image-reference=us-docker.pkg.dev/\u003cvar translate=\"no\"\u003eWORKLOAD_AUTHOR_PROJECT_ID\u003c/var\u003e/\u003cvar translate=\"no\"\u003eREPOSITORY_NAME\u003c/var\u003e/\u003cvar translate=\"no\"\u003eWORKLOAD_CONTAINER_NAME\u003c/var\u003e:latest\"\n\nThe following table details the metadata variables you can set for your\nworkload VM.\n| **Note:** Some metadata variables can be affected by [launch policies](/confidential-computing/confidential-space/docs/reference/launch-policies#launch_policies) set by workload authors."]]