Nebius Israel
Contact usConsole
  • GPU
  • Docs
© 2023 Nebius Israel Ltd
Compute Cloud
  • Container Solution
  • Access management
  • Pricing policy
  1. Step-by-step guides
  2. Managing VMs
  3. Changing VM computing resources

Changing VM computing resources

  • Changing the vCPU and RAM configuration
  • Adding a GPU to an existing VM
  • Changing the number of GPUs
  • Enabling a software-accelerated network

After you create a VM, you can change its computing resources. For more information about how to change a VM name, description, and tags, see Updating a VM.

Changing the vCPU and RAM configurationChanging the vCPU and RAM configuration

This section provides guidelines for changing the number and performance of vCPUs and the amount of RAM.

Management console
CLI
API

To change vCPU and RAM of a VM:

  1. In the management console, select the folder the VM belongs to.
  2. Select Compute Cloud.
  3. Click the name of the desired VM.
  4. Click Stop in the upper-right corner.
  5. In the window that opens, click Stop.
  6. Wait until the VM status changes to Stopped, then click Edit VM in the top-right corner of the page.
  7. Change the configuration of the VM and do the following in the Computing resources section:
    • Choose a platform.
    • Specify the necessary number of vCPUs.
    • Choose a guaranteed vCPU performance.
    • Specify the RAM size.
  8. Click Save changes.
  9. Click Start in the top-right corner.
  10. In the window that opens, click Start.

If you don't have the Nebius Israel command line interface yet, install and initialize it.

The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. View a description of the CLI command for updating VM parameters:

    yc compute instance update --help
    
  2. Get a list of VMs in the default folder:

    yc compute instance list
    

    Result:

    +----------------------+-----------------+---------------+---------+----------------------+
    |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+---------------+---------+----------------------+
    | fhm0b28lgfp4tkoa3jl6 | first-instance  | il1-a | RUNNING | my first vm via CLI  |
    | fhm9gk85nj7gcoji2f8s | second-instance | il1-a | RUNNING | my second vm via CLI |
    +----------------------+-----------------+---------------+---------+----------------------+
    
  3. Select the VM ID or NAME (for example, first-instance).

  4. Stop the VM:

    yc compute instance stop first-instance
    
  5. Get the current VM configuration with metadata:

    yc compute instance get --full first-instance
    
  6. Change the VM configuration:

    yc compute instance update first-instance \
      --memory 32 \
      --cores 4 \
      --core-fraction 100
    

    This command will change the configuration of the VM:

    • Guaranteed vCPU level to 100%.
    • Number of vCPUs to 4.
    • RAM to 32 GB.
  7. Run the VM:

    yc compute instance start first-instance
    

To change vCPU and RAM of a VM, use the update REST API method for the Instance resource or the InstanceService/Update gRPC API call.

Warning

When you edit VM resources, the PCI topology might change. Keep this in mind when working with operating systems that are sensitive to such changes. For example, if you make substantial changes in network settings in Windows Server, you may lose network connectivity and access to the VM.

Adding a GPU to an existing VMAdding a GPU to an existing VM

To add a GPU to an existing VM, change the platform and specify the number of GPUs.

Management console
CLI
API

To change the number of GPUs on the VM:

  1. In the management console, select the folder the VM belongs to.
  2. Select Compute Cloud.
  3. Click the name of the desired VM.
  4. Click Stop in the upper-right corner.
  5. In the window that opens, click Stop.
  6. Wait until the VM status changes to Stopped, then click Edit VM in the top-right corner of the page.
  7. Change the configuration of the VM in the Computing resources section:
    • Choose a platform.

      Virtual machines with NVIDIA® Tesla® T4 GPUs can only be located in the availability zones il1-b and il1-c, and virtual machines with NVIDIA® Hopper® H100 can only be located in il1-b.

      VMs with NVIDIA® Hopper® H100 GPUs cannot be preemptible.

    • Specify the required number of GPUs.

  8. Click Save changes.
  9. Click Start in the upper-right corner.
  10. In the window that opens, click Start.

If you don't have the Nebius Israel command line interface yet, install and initialize it.

The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. View a description of the CLI command for updating VM parameters:

    yc compute instance update --help
    
  2. Get a list of VMs in the default folder:

    yc compute instance list
    

    Result:

    +----------------------+-----------------+---------------+---------+----------------------+
    |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+---------------+---------+----------------------+
    | fhm0b28lgfp4tkoa3jl6 | first-instance  | il1-a | RUNNING | my first vm via CLI  |
    | fhm9gk85nj7gcoji2f8s | second-instance | il1-a | RUNNING | my second vm via CLI |
    +----------------------+-----------------+---------------+---------+----------------------+
    
  3. Select the VM ID or NAME (for example, first-instance).

  4. Stop the VM:

    yc compute instance stop first-instance
    
  5. Get the current VM configuration with metadata:

    yc compute instance get --full first-instance
    
  6. Change the VM configuration:

    yc compute instance update first-instance \
      --platform=standard-v3-t4 \
      --cores=8 \
      --memory=32 \
      --gpus=1
    

    This command changes the following VM specs:

    • Platform to Intel Ice Lake with NVIDIA® Tesla® T4.

      Virtual machines with NVIDIA® Tesla® T4 GPUs can only be located in the availability zones il1-b and il1-c, and virtual machines with NVIDIA® Hopper® H100 can only be located in il1-b.

      VMs with NVIDIA® Hopper® H100 GPUs cannot be preemptible.

    • Number of vCPUs to 8.

    • RAM to 32 GB.

    • GPU to 1.

  7. Run the VM:

    yc compute instance start first-instance
    

To change a VM's platform and configuration, use the update REST API method for the Instance resource or the InstanceService/Update gRPC API call.

Changing the number of GPUsChanging the number of GPUs

Management console
CLI
API

To change the number of GPUs on an existing VM:

  1. In the management console, select the folder the VM belongs to.
  2. Select Compute Cloud.
  3. Click the name of the desired VM.
  4. Click Stop in the upper-right corner.
  5. In the window that opens, click Stop.
  6. Wait until the VM status changes to Stopped, then click Edit VM in the top-right corner of the page.
  7. Change the VM configuration: Under Computing resources, specify the required number of GPUs.
  8. Click Save changes.
  9. Click Start in the upper-right corner.
  10. In the window that opens, click Start.

If you don't have the Nebius Israel command line interface yet, install and initialize it.

The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. View a description of the CLI command for updating VM parameters:

    yc compute instance update --help
    
  2. Get a list of VMs in the default folder:

    yc compute instance list
    

    Result:

    +----------------------+-----------------+---------------+---------+----------------------+
    |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+---------------+---------+----------------------+
    | fhm0b28lgfp4tkoa3jl6 | first-instance  | il1-a | RUNNING | my first vm via CLI  |
    | fhm9gk85nj7gcoji2f8s | second-instance | il1-a | RUNNING | my second vm via CLI |
    +----------------------+-----------------+---------------+---------+----------------------+
    
  3. Select the VM ID or NAME (for example, first-instance).

  4. Stop the VM:

    yc compute instance stop first-instance
    
  5. Get the current VM configuration with metadata:

    yc compute instance get --full first-instancegit
    
  6. Change the VM configuration:

    yc compute instance update first-instance \
      --gpus=2 \
      --cores=56 \
      --memory=238
    

    This command changes the number of GPUs to 2.

    The values of --cores (number of vCPUs) and --memory (amount of RAM in GB) parameters depend on the platform and the number of GPUs. See also List of available configurations.

  7. Run the VM:

    yc compute instance start first-instance
    

To change the number of GPUs, use the update REST API method for the Instance resource or the InstanceService/Update gRPC API call.

Enabling a software-accelerated networkEnabling a software-accelerated network

Warning

This feature is only available upon agreement with your account manager.

Management console

To enable a software-accelerated network on an existing VM:

  1. In the management console, select the folder the VM belongs to.
  2. Select Compute Cloud.
  3. Click the name of the desired VM.
  4. Click Stop in the upper-right corner.
  5. In the window that opens, click Stop.
  6. Wait until the VM status changes to Stopped, then click Edit VM in the top-right corner of the page.
  7. Under Computing resources, enable the Software accelerated network option.
  8. Click Save changes.
  9. Click Start in the upper-right corner.
  10. In the window that opens, click Start.
© 2023 Nebius Israel Ltd
In this article:
  • Changing the vCPU and RAM configuration
  • Adding a GPU to an existing VM
  • Changing the number of GPUs
  • Enabling a software-accelerated network