[ Web Proxy ]
URL:
Viewing: https://docs.cloud.google.com/distributed-cloud/connected/latest/docs/vm-runtime/enable-disable [Back]  [Original]

Enable or disable VM Runtime on Google Distributed Cloud  |  Google Distributed Cloud connected  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Enable or disable VM Runtime on Google Distributed Cloud Stay organized with collections Save and categorize content based on your preferences.

On Google Distributed Cloud connected, you can enable or disable VM Runtime on GDC.

VM Runtime on GDC is enabled by default on Distributed Cloud connected clusters versions 1.9.0 and higher. If you don't need to run virtual machine (VM) workloads, you can disable VM Runtime on GDC to free up resources on your nodes. You can also re-enable it if it was previously disabled.

Note: Don't try to enable or disable VM Runtime on GDC by directly modifying the VMRuntime custom resource on the cluster using kubectl. These changes will be overwritten by Google-managed lifecycle hooks. Use Google Cloud console or the Distributed Cloud Edge Container API to manage the VM Runtime on GDC status.

Before you begin

To enable or disable VM Runtime on GDC, you need the following:

To use the API and to follow the verification instructions, you also need:

Disable VM Runtime on GDC

You can disable VM Runtime on GDC using the Google Cloud console or the API.

Console

  1. In the Google Cloud console, go to the Clusters page.

    Go to Clusters

  2. Select the cluster that you want to modify.

  3. Click Edit.

  4. In the System Add-ons or VM Service section, disable the VM Runtime toggle.

  5. Click Save or Update.

API

To disable VM Runtime on GDC, make a PATCH request to the projects.locations.clusters method.

Specify the updateMask query parameter as systemAddonsConfig.vmServiceConfig.vmmEnabled.

PATCH https://edgecontainer.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/clusters/CLUSTER_ID?updateMask=systemAddonsConfig.vmServiceConfig.vmmEnabled
Content-Type: application/json

{
      "systemAddonsConfig": {
        "vmServiceConfig": {
          "vmmEnabled": false
        }
      }
}

Replace the following:

Enable VM Runtime on GDC

VM Runtime on GDC is enabled by default for Distributed Cloud connected clusters. If you previously disabled VM Runtime on GDC, you can use the following instructions to re-enable it.

Console

  1. In the Google Cloud console, go to the Clusters page.

    Go to Clusters

  2. Select the cluster that you want to modify.

  3. Click Edit.

  4. In the System Add-ons or VM Service section, enable the VM Runtime toggle.

  5. Click Save or Update.

API

To enable VM Runtime on GDC, make a PATCH request to the projects.locations.clusters method.

Specify the updateMask query parameter as systemAddonsConfig.vmServiceConfig.vmmEnabled.

PATCH https://edgecontainer.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/clusters/CLUSTER_ID?updateMask=systemAddonsConfig.vmServiceConfig.vmmEnabled
Content-Type: application/json

{
      "systemAddonsConfig": {
        "vmServiceConfig": {
          "vmmEnabled": true
        }
      }
}

Replace the following:

Check the VM Runtime on GDC status

You can check the status of VM Runtime on GDC on your cluster.

  1. To obtain credentials for your cluster, run the gcloud edge-cloud container clusters get-credentials command.

    gcloud edge-cloud container clusters get-credentials CLUSTER_ID \
        --project=PROJECT_ID \
        --location=REGION
    

    Replace the following:

    • CLUSTER_ID: the ID of your cluster
    • PROJECT_ID: the ID of the target project
    • REGION: the Google Cloud region where your cluster is located
  2. To describe the VMRuntime custom resource, run the kubectl describe command:

    kubectl describe vmruntime vmruntime
    
    • If VM Runtime on GDC is enabled, the command returns details about the resource, and VMRuntime.Status.Ready shows as true.

    • If VM Runtime on GDC is disabled, the VMRuntime resource might not be found, or its status indicates that it's not ready.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page