How do i enable the OS Login of my existing Linux VM?

0 votes
I have a Linux VM instance already configured on google cloud. How do I enable the OS Login for it?
Sep 26 in GCP by anonymous
• 6,670 points
62 views

1 answer to this question.

0 votes

Set enable-oslogin in metadata of an existing instance:

  1. Go to the VM instances page.

  2. Click the name of the instance on which you want to set the metadata value.

  3. At the top of the instance details page, click Edit to edit the instance settings.

  4. Under Custom metadata, add a metadata entry where the key is enable-oslogin and the value is TRUE. Alternatively, set the value to FALSE to exclude the instance from the feature.

  5. At the bottom of the instance details page, click Save to apply your changes to the instance.

For all operating systems except CoreOS, this change is applied instantaneously; you do not need to restart your instance. For CoreOS distributions, reboot or restart the instance for the change to take effect. To restart, perform a stop and then start operation on your instances.

answered Sep 26 by Sirajul
• 41,000 points

Related Questions In GCP

0 votes
1 answer

How do I add the access config for my Linux VM instance?

If your instance does not have an ...READ MORE

answered Sep 26 in GCP by anonymous
• 6,670 points
49 views
0 votes
1 answer
0 votes
1 answer

How do I change the default storage class of a bucket?

Use the gsutil defstorageclass set command: gsutil defstorageclass set [STORAGE_CLASS] ...READ MORE

answered Oct 25 in GCP by Sirajul
• 41,000 points
27 views
+3 votes
11 answers

How do I delete my Google Cloud Platform Account?

How do I delete me cloud and ...READ MORE

answered Jan 18 in GCP by dodge123@yahoo.com
19,024 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 41,000 points
65 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 41,000 points
79 views
0 votes
1 answer

How do I ensure that all the VM instances created in my organisation are shielded VM's?

You can set the constraints/compute.requireShieldedVm organization policy constraint to True to require ...READ MORE

answered Oct 22 in GCP by Sirajul
• 41,000 points
31 views