Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Creating a GPU cluster
      • Adding a VM to a GPU cluster
      • Updating a GPU cluster
      • Getting GPU cluster info
      • Configuring GPU cluster access permissions
      • Deleting a GPU cluster
      • Testing a GPU cluster physical state
      • Running parallel tasks in a GPU cluster
      • Testing InfiniBand throughput
    • Enabling a software-accelerated network
    • Viewing operations on service resources
    • Viewing metrics in Monitoring
    • NVIDIA driver update guide
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
  • Metrics Monitoring
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. GPU clusters
  3. Adding a VM to a GPU cluster

Adding a VM to a GPU cluster

Written by
Yandex Cloud
Updated at July 20, 2026
View in Markdown

In GPU clusters, you can create VMs with 8 GPUs based on one of the following platforms:

  • AMD EPYC™ with NVIDIA® Ampere® A100 (gpu-standard-v3).
  • Gen2 (gpu-standard-v3i).
  • GPU PLATFORM V4 (gpu-standard-v4).

Such VMs must be deployed from a dedicated image with NVIDIA drivers.

Note

You can host your GPU cluster in one of these availability zones: ru-central1-a, ru-central1-b, and ru-central1-d. The VM must be created within the same availability zone as the cluster.

Management console
CLI
Terraform
API
  1. In the management console, select the folder where you want to create the VM.

  2. Navigate to Compute Cloud.

  3. In the left-hand panel, select  Virtual machines and click Create virtual machine.

  4. Under Boot disk image, select an image with pre-installed NVIDIA drivers.

  5. In the Availability zone field, select the availability zone where your GPU cluster resides.

  6. Under Computing resources, navigate to the Custom tab and specify:

    • Platform: AMD EPYC™ with NVIDIA® Ampere® A100, GPU PLATFORM V4, or Gen2 platform.
    • GPU: 8.
    • GPU cluster: Previously created GPU cluster.
  7. Under General information, specify the VM name.

  8. Click Create VM.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

In the terminal, run this command:

export YC_GPU_CLUSTER=$(yc compute gpu-cluster list --format=json | jq -r .[].id)
export YC_ZONE="ru-central1-a"
export SUBNET_NAME="my-subnet-name"
export SUBNET_ID=$(yc vpc subnet get --name=$SUBNET_NAME --format=json | jq -r .id)
yc compute instance create \
  --name node-gpu-test \
  --create-boot-disk size=64G,image-id=<image_ID_with_drivers>,type=network-ssd \
  --ssh-key=$HOME/.ssh/id_rsa.pub \
  --gpus 8 \
  --cores 224 \
  --memory=952G \
  --zone $YC_ZONE \
  --network-interface subnet-id=$SUBNET_ID,nat-ip-version=ipv4 \
  --platform gpu-standard-v3 \
  --gpu-cluster-id=$YC_GPU_CLUSTER

Where:

  • --name: VM name.
  • --create-boot-disk: VM disk properties.
  • --ssh-key: Path to the file with the public SSH key.
  • --gpus: Number of GPUs.
  • --cores: Number of vCPUs.
  • --memory: Amount of RAM.
  • --zone: Availability zone.
  • --network-interface: VM network interface settings.
  • --platform: Platform ID.
  • --gpu-cluster-id: GPU cluster ID.

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

  1. In the Terraform configuration file, describe the resource you want to create:

    provider "yandex" {
      zone = "ru-central1-a"
    }
    
    resource "yandex_compute_disk" "boot-disk" {
      name     = "<disk_name>"
      type     = "<disk_type>"
      zone     = "ru-central1-a"
      size     = "<disk_size>"
      image_id = "<image_ID_with_drivers>"
    }
    
    resource "yandex_compute_instance" "default" {
      name           = "vm-gpu"
      platform_id    = "gpu-standard-v3"
      zone           = "ru-central1-a"
      gpu_cluster_id = "<GPU_cluster_ID>"
    
      resources {
        cores  = "224"
        memory = "952"
        gpus   = "8"
      }
    
      boot_disk {
        disk_id = yandex_compute_disk.boot-disk.id
      }
    
      network_interface {
        subnet_id = "${yandex_vpc_subnet.subnet-1.id}"
        nat       = true
      }
    
      metadata = {
        user-data = "#cloud-config\nusers:\n  - name: <username>\n    groups: sudo\n    shell: /bin/bash\n    sudo: 'ALL=(ALL) NOPASSWD:ALL'\n    ssh_authorized_keys:\n      - ${file("<path_to_public_SSH_key>")}"
      }
    }
    
    resource "yandex_vpc_network" "network-1" {
      name = "network1"
    }
    
    resource "yandex_vpc_subnet" "subnet-1" {
      name           = "subnet1"
      zone           = "<availability_zone>"
      v4_cidr_blocks = ["192.168.10.0/24"]
      network_id     = "${yandex_vpc_network.network-1.id}"
    }
    

    Where:

    • yandex_compute_disk: Boot disk description, where image_id is the ID of the image with the drivers.

    • gpu_cluster_id: GPU cluster ID. This is a required setting.

    • yandex_vpc_network: Cloud network description.

    • yandex_vpc_subnet: Description of the subnet to create your VM in.

      Note

      If you already have suitable resources, such as a cloud network and subnet, you do not need to redefine them. Specify their names and IDs in the appropriate parameters.

      For more information about yandex_compute_instance properties, see this Terraform provider guide.

  2. Under metadata, specify your username and path to the public SSH key. For more information, see VM metadata.

  3. Create the resources:

    1. In the terminal, navigate to the configuration file directory.

    2. Make sure the configuration is correct using this command:

      terraform validate
      

      If the configuration is valid, you will get this message:

      Success! The configuration is valid.
      
    3. Run this command:

      terraform plan
      

      You will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.

    4. Apply the configuration changes:

      terraform apply
      
    5. Type yes and press Enter to confirm the changes.

This will create a VM in the specified GPU cluster. You can check the new VM and its configuration using the management console or this CLI command:

yc compute instance get <VM_name>

To create a VM in a GPU cluster, use the create REST API method for the Instance resource or the InstanceService/Create gRPC API call. In the request body, specify the GPU cluster ID in the gpuClusterId field.

Useful linksUseful links

  • Creating a GPU cluster
  • Updating a GPU cluster
  • Deleting a GPU cluster
  • Graphics processing units (GPUs)
  • Platforms

Was the article helpful?

Previous
Creating a GPU cluster
Next
Updating a GPU cluster
© 2026 Direct Cursus Technology L.L.C.