Remediation
To be able turn on Shielded VM
on an instance, your instance must use an image with Shielded VM support.
From Google Cloud Consoleβ
- Go to the
VM instances
page by visiting: https://console.cloud.google.com/compute/instances. - Click on the instance name to see its
VM instance details
page. - Click
STOP
to stop the instance. - When the instance has stopped, click
EDIT
. - In the Shielded VM section, select
Turn on vTPM
andTurn on Integrity Monitoring
. - Optionally, if you do not use any custom or unsigned drivers on the instance, also select
Turn on Secure Boot
. - Click the
Save
button to modify the instance and then clickSTART
to restart it.
From Google Cloud CLIβ
You can only enable Shielded VM options on instances that have Shielded VM support. For a list of Shielded VM public images, run the gcloud compute images list command with the following flags:
gcloud compute images list --project gce-uefi-images --no-standard-images
-
Stop the instance:
gcloud compute instances stop <INSTANCE_NAME>
-
Update the instance:
gcloud compute instances update <INSTANCE_NAME> --shielded-vtpm --shielded-vm-integrity-monitoring
-
Optionally, if you do not use any custom or unsigned drivers on the instance, also turn on secure boot.
gcloud compute instances update <INSTANCE_NAME> --shielded-vm-secure-boot
-
Restart the instance:
gcloud compute instances start <INSTANCE_NAME>