Specify a minimum CPU platform for VM instances Stay organized with collections Save and categorize content based on your preferences.
This page explains how to create or update a virtual machine (VM) instance touse a minimum CPU platform instead of the default platform.
Google data centers offer different generations ofCPU processors. Each CPU platform supportsincremental features likeAdvanced Vector Extensions—forexample, AVX2 and AVX-512. Also, some fundamental systems-related featureslike clock speed and memory access seek time can vary among CPU platforms.
Each machine series is associated with one or more CPU platforms. Forexample, N2 VMs can run on either the Ice Lake or Cascade Lake CPUs. Ifthere are multiple CPU platforms available for a machine series, then youcan select a minimum CPU platform when creating a VM using a machine type fromthat machine series. The availability of the machine family, series, region,and zones determine what you can choose for the minimum CPU platform.
Specifying a minimum CPU platform is useful if your workload requires theperformance gains offered by the generation of a specific processor.However, specifying a minimum CPU platform might limit the zones where you cancreate your VMs.
Before you begin
- If you haven't already, set upauthentication. Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloud
Install the Google Cloud CLI. After installation,initialize the Google Cloud CLI by running the following command:
gcloudinit
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
Note: If you installed the gcloud CLI previously, make sure you have the latest version by runninggcloud components update.- Set a default region and zone.
REST
To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Install the Google Cloud CLI. After installation,initialize the Google Cloud CLI by running the following command:
gcloudinit
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
Note: If you installed the gcloud CLI previously, make sure you have the latest version by runninggcloud components update.For more information, seeAuthenticate for using REST in the Google Cloud authentication documentation.
Required roles and permissions
To get the permissions that you need to change the minimum CPU platform, ask your administrator to grant you the following IAM roles on the project:
- Compute Instance Admin (v1) (
roles/compute.instanceAdmin.v1) - To connect to a VM that can run as a service account: Service Account User (v1) (
roles/iam.serviceAccountUserrole)
For more information about granting roles, seeManage access to projects, folders, and organizations.
You might also be able to get the required permissions throughcustom roles or otherpredefined roles.
When to select a minimum CPU platform
More than likely, you don't need to select a minimum CPU platform. EachCompute Engine zone has a default CPU platform for each machine series. Googleoccasionally changes a zone's default CPU when new servers are added. If youdon't specify a minimum CPU platform for a VM, then the VM gets the default CPUplatform associated with its machine type and zone.
Google recommends that you only select a minimum CPU platform in the followingcases:
- When the minimum CPU platform offers significant performance gains for yourworkload, or if it provides capabilities such as AVX2 or AVX-512 that yourcode uses.
- When creating VMs that consumereservations, you mustspecify the same CPU platform as the reservation.
Selecting aminimum CPU platform for your VM introduces constraints that affect your abilityto start VMs in zones where some CPU platforms are in limited supply.
How selecting a minimum CPU platform works
Compute Engine always uses the minimum CPU platform where available.If Googlechanges a CPU platform in a zone, your VM cancontinue to run on a more recent CPU platform that's available in that zone ifyou stop and restart the VM.
After you select a minimum CPU platform for a VM, your VM uses this CPU platformunless you stop the VM and change the CPU platform. During a live migration,your VM retains the selected CPU platform.
Limitations
- Eachregion and zone supports multipleCPU platforms, but a region or zone might not offer all CPU platforms.
- You cannot specify a minimum CPU platform for VMs that use sole-tenant nodes.
- You cannot select a minimum CPU platform for predefined or custom E2 VMs.
- You cannot select a minimum CPU platform for the followingshared-core, general-purpose VMs:
e2-microe2-smalle2-mediumf1-microg1-small
Availability of CPU platforms
The availability of CPU platforms varies across zones and is based on thehardware and machine series that is available in each zone. The following listshows the supported minimum CPU platforms and the valid syntax for each platform:
- 5th Generation: Intel Xeon (Emerald Rapids) processors:
"Intel Emerald Rapids" - 4th Generation: Intel Xeon (Sapphire Rapids) processors:
"Intel Sapphire Rapids" - 3rd Generation: Intel Xeon (Ice Lake) processors:
"Intel Ice Lake" - 2nd Generation: Intel Xeon (Cascade Lake) processors:
"Intel Cascade Lake" - 1st Generation: Intel Xeon (Skylake) processors:
"Intel Skylake" - Intel Xeon E5 v4 (Broadwell) processors:
"Intel Broadwell" - Intel Xeon E5 v3 (Haswell) processors:
"Intel Haswell" - Intel Xeon E5 v2 (Ivy Bridge) processors:
"Intel Ivy Bridge" - Intel Xeon E5 (Sandy Bridge) processors:
"Intel Sandy Bridge" - 5th Generation: AMD EPYC Turin processors:
"AMD Turin" - 4th Generation: AMD EPYC Genoa processors:
"AMD Genoa" - 3rd Generation: AMD EPYC Milan processors:
"AMD Milan" - 2nd Generation: AMD EPYC Rome processors:
"AMD Rome"
View available CPU platforms by zone
Only certain regions and zones contain multiple CPU platforms for the samemachine series and are available for minimum CPU platform selection. You canview a list of supported platforms for a specific zone by using thegcloud CLI or REST.
If you're using sole-tenant nodes, each node uses the CPU platform correspondingto thenode type that you defined inthe node template.
gcloud
To view the CPU platforms that are available in your zone, use the
gcloud compute zones describecommand:gcloud compute zones describeZONE
Replace
ZONEwith the name of the zone to check foravailable CPU platforms—for example,europe-west10-a.The following output from this command lists CPU platforms forthe
europe-west10-azone:gcloud compute zones describe europe-west10-aavailableCpuPlatforms:- Intel Broadwell- Intel Cascade Lake- Intel Ice Lake- AMD Milan- AMD Rome- Intel Skylake...
REST
Make a
GETrequestto the zone that you're considering:GET https://compute.googleapis.com/compute/v1/projects/myproject/zones/ZONE
Replace
ZONEwith the name of the zone to check foravailable CPU platforms.The following output from this command lists supported CPU platformsfor a zone:
{ "kind": "compute#zone", "id": "2210", "creationTimestamp": "1969-12-31T09:30:55.189-07:00", "name": "europe-west10-a", "description": "europe-west10-a", "status": "UP", "region": "https://www.googleapis.com/compute/v1/projects/myproject/regions/europe-west10-a", "selfLink": "https://www.googleapis.com/compute/v1/projects/myproject/zones/europe-west10-a", "availableCpuPlatforms": [ "Intel Broadwell", "Intel Cascade Lake", "Intel Ice Lake", "AMD Milan", "AMD Rome", "Intel Skylake" ], "supportsPzs": true }
Default changes to a CPU platform
Occasionally, Google changes a CPU platform or updates the default CPU platform.As a zone grows in capacity—Google proactively switches to a newer CPUplatform as the platform becomes available. It updates the default CPU platform tothe next newest one that's available in that zone.
When a default CPU platform for a zone changes, Google notifies affectedcustomers with a detailed timeline and specific instructions to transition tothe newer platform.
VMs never use a platform that's older than the minimum CPU platform that youspecify. If Compute Engine transitions your VM to a more recentplatform, the cost of the VM doesn't change.
Select a minimum CPU platform for a new VM
When you create a VM, you choose a machine series and machine type. The machineseries might be offered on more than one CPU platform. In this case, you canspecify the minimumCPU platform that you wantthe VM to use.
Console
In the Google Cloud console, go to theCreate an instance page.
In theMachine configuration section, expand theAdvanced configurations section.
In theCPU Platform list, select a platform for the VM's CPU.
Continue with the rest of the VM creation process.
gcloud
To create a new VM that uses a minimum CPU platform, use the
gcloud compute instances createcommandand provide the--min-cpu-platformflag:gcloud compute instances createINSTANCE \ --zone=ZONE \ --min-cpu-platform="PLATFORM"
Replace the following:
INSTANCE: the name of the instancethat you want to createZONE: the name of the zone where youwant to create your instance—for example,europe-west1-bPLATFORM: the friendly name of theminimum CPU platform that you want the instance touse—for example,Intel Sandy BridgeIf you want to clear the minimum CPU platform specification, replace
PLATFORMwithAUTOMATIC.To check which CPU platforms are available in a zone, seeView available CPU platforms by zone.
REST
Use the
instances.insertmethodand include theminCpuPlatformproperty as part of the request body.For example, a request body might look like this:
"name": "INSTANCE","machineType": "zones/ZONE/machineTypes/MACHINE_TYPE","minCpuPlatform": "PLATFORM","networkInterfaces": [{ "accessConfigs": [{ "type": "ONE_TO_ONE_NAT", "name": "External NAT" }], "network": "global/networks/default"}],"disks": [{ "autoDelete": "true", "boot": "true", "type": "PERSISTENT", "initializeParams": { "sourceImage": "projects/IMAGE_PROJECT/global/images/family/IMAGE_FAMILY" } }]Replace the following:
INSTANCE: the name of the new VMZONE: the name of the zone where youwant to create your VM—for example,europe-west1-bMACHINE_TYPE: the machine type of the new VMPLATFORM: the friendly name of theminimum CPU platform that you want the VM touse—for example,Intel Ivy BridgeTo clear the minimum CPU platform specification, replace
PLATFORMwithAUTOMATIC.To check which CPU platforms are available in a zone, seeView available CPU platforms by zone.
IMAGE_PROJECT: theimage projectof the image familyIMAGE_FAMILY: theimage familyof the image to use to create the VM
Set a minimum CPU platform for an existing VM
You can set a minimum CPU platform for an existing VM. You muststop the VM,before you set the minimum CPU platform.
Console
Go to theVM instances page.
If prompted, select your project and clickContinue.
Select the VM that you want to change.
ClickStopto stop the VM. If there is noStop option, clickMore actions >Stop.
ClickEdit.
In theMachine configuration section, clickAdvanced configurations.
From theCPU Platform drop-down menu, select an option.
Save your changes.
Select the VM that you changed.
ClickStart/Resume.
gcloud
To stop a VM, use the
gcloud compute instances stopcommand:gcloud compute instances stopINSTANCE
Replace
INSTANCEwith the name of the VMthat you want to specify a minimum CPU platform for.To specify a minimum CPU platform, use the
gcloud compute instances updatecommand,and provide the--min-cpu-platformflag:gcloud compute instances updateINSTANCE \ --min-cpu-platform="PLATFORM"
Replace
PLATFORMwith the friendly name of theminimum CPU platform that you want the VM touse—for example,Intel Cascade Lake.To start the updated VM, use the
gcloud compute instances startcommand:gcloud compute instances startINSTANCE
REST
To stop a VM, construct a
POSTrequest using theinstances.stopmethod:POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE/stop
Replace the following:
PROJECT_ID: the ID of the projectZONE: the zone where your VM is locatedINSTANCE: the name of the VM thatyou want to specify a minimum CPU platform for
To set the minimum CPU platform, construct a
POSTrequest to thesetMinCpuPlatformmethodand set theminCpuPlatformproperty in the request body:POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE/setMinCpuPlatform{ "minCpuPlatform": "PLATFORM"}Replace
PLATFORMwith the friendly name of theminimum CPU platform that you want the VM touse—for example,Intel Skylake.To restart the VM, construct a
POSTrequest using theinstances.startmethod:POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE/start
Remove a minimum CPU platform setting
You can update a VM to use the default CPU platform instead of theminimum CPU platform. If the VM is running, you must stop it beforeyou make changes.
Console
Go to theVM instances page.
If prompted, select your project and clickContinue.
Select the VM that you want to change.
ClickStop.
To edit the VM, clickEdit.
In theMachine configuration section, clickAdvanced configurations.
Change theCPU Platform option toAutomatic.
Select the VM that you changed.
ClickStart/Resume.
gcloud
To stop a VM, use the
gcloud compute instances stopcommand:gcloud compute instances stopINSTANCE
Replace
INSTANCEwith the name of the VMthat you want to change.To reset the minimum CPU platform, use the
gcloud compute instances updatecommandand set the--min-cpu-platformflag toAUTOMATIC:gcloud compute instances updateINSTANCE \ --min-cpu-platform="AUTOMATIC"
To start the updated VM, use the
gcloud compute instances startcommand:gcloud compute instances startINSTANCE
REST
To stop a VM, construct a
POSTrequest using theinstances.stopmethod:POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE/stop
Replace the following:
PROJECT_ID: the ID of the projectZONE: the zone where your VM is locatedINSTANCE: the name of the VM thatyou want to change
To reset the minimum CPU platform, construct a
POSTrequest tothesetMinCpuPlatformmethod. In the request body, set theminCpuPlatformproperty valuetoAUTOMATIC.POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE/setMinCpuPlatform{ "minCpuPlatform": "AUTOMATIC"}To restart the updated VM, construct a
POSTrequest using theinstances.startmethod:POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE/start
Specify a minimum CPU platform in instance templates
If you usemanaged instance groups,you can specify a minimum CPU platform for VMs within a managed instance group.
To specify a minimum CPU platform,create aninstance templatethat includes theminCpuPlatform property.
Console
Go to theInstance templates page.
If prompted, select your project and clickContinue.
ClickCreate instance template.
In theMachine configuration section, clickAdvanced configurations.
From theCPU Platform drop-down menu, select an option.
Continue with the instance template creation process.
gcloud
When you create an instance template using the
gcloud compute instance-templates createcommand, provide the--min-cpu-platformflag:gcloud compute instance-templates createTEMPLATE_NAME \ --min-cpu-platform="PLATFORM"
Replace the following:
TEMPLATE_NAME: the name of the instance templatePLATFORM: the friendly name of theminimum CPU platform that you want the instance touse—for example,Intel Skylake
REST
Add the
minCpuPlatformas part of your request to create anew instance template using theinstanceTemplates.insertmethod.For example, the following instance template contains the minimumrequired fields for creating a new template with the addition of the
minCpuPlatformproperty:{"name": "example-template","properties": { "machineType": "zones/us-central1-a/machineTypes/n2d-standard-2", "minCpuPlatform": "AMD Milan", "networkInterfaces": [ { "network": "global/networks/default" } ], "disks": [ { "type": "PERSISTENT", "boot": true, "mode": "READ_WRITE", "initializeParams": { "sourceImage": "projects/debian-cloud/global/images/family/debian-11" } } ] }}
What's next
- See a list ofCPU platforms onCompute Engine.
- Change the machine type for a VM.
- Learn more aboutregions and zones.
- Create and start Windows Server or SQL Server instances.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.