Enable Preemptible on Existing GCP Compute Engine

google-cloud-platformgoogle-compute-engine

How do I enable preemptible on an existing GCP Compute Engine VM? I don't want to have to delete and recreate it.

Best Answer

No, it's not possible to change the preemptible status of a running VM instance.

A VM is determined to be preemptible or normal at creation time, and can't be upgraded or downgraded once created.

However, you can create a snapshot of your existing VM instance and using that snapshot you can Creating a Preemptible VM Instance. For more information about how to Creating an instance from a snapshot follow this article.

Related Topic