Preset
A preset defines the resources, the number of vCPUs and the amount of RAM, allocated to a VM on its platform. Change a VM’s preset when its workload is constrained by its current resources or it has too many of them. Regular VMs, preemptible VMs and container VMs use the same settings to change their presets. This action requires you to stop the VM. See available presets for GPU platforms and non-GPU platforms. To update a preset:- Web console
- CLI
- Terraform
- Go SDK
- Python SDK
- JavaScript SDK
- In the sidebar, go to Compute → Virtual machines.
- Select the VM for which you want to change the preset.
-
Click Stop and confirm the action.
Wait for the VM’s status to change to
Stopped. - On the VM’s page, select the Settings tab.
- Under Computing resources, select the Preset you want and click Save changes.
-
Click Start VM and confirm the action.
Wait for the VM’s status to change to
Running.
Hostname
A VM’s hostname is used to generate its FQDN. Change the hostname if you want the VM to be reachable by a custom internal DNS name instead of an autogenerated one. You do not need to stop the VM to change its hostname. To set the hostname:- Web console
- CLI
- Terraform
- Go SDK
- Python SDK
- JavaScript SDK
- Create a VM with a customized FQDN: In the VM creation wizard, on the Network step, in the Hostname field, select Custom and specify the hostname for the VM’s FQDN.
-
Change the FQDN of the created VM:
- In the sidebar, go to Compute → Virtual machines.
- Select either the Standalone VMs or Kubernetes nodes tab.
- Open the page of the required VM.
- Go to the Settings tab.
- Modify the Hostname field.
- Click Save changes.
Reservation policy
If you apply the reservation policy, the VM’s resources are allocated from reservations, which represent capacity block groups. For more information, see Capacity reservations for Compute virtual machines. Change the reservation policy in the following cases:- You got reservations after creating the VM and you want the VM to use them.
- A reservation is about to expire or has run out of capacity and you want the VM to use another one.
- You want to move the VM out of reservations.
- Web console
- CLI
- Terraform
- Go SDK
- Python SDK
- JavaScript SDK
If you want to create a VM and you have capacity block groups, on the General step, select Reserved VM. On the Compute step, select a platform and configure the Reservation settings. If you do not have capacity block groups, the wizard skips the General step and opens Compute instead.If you want to modify an existing VM, stop it first and then go to its Settings tab on the VM page. Next, update the reservation settings.The Reservation section is only displayed if you have capacity block groups.In the Reservation section, you can configure the following options:
- Any (existing and future) (default): Compute selects among your matching capacity block groups automatically.
- Specific capacity block groups: Select one or more capacity block groups. Each option shows the capacity block group ID, reservation period and GPU usage. Make sure the selected groups have enough capacity and do not expire soon.
-
Switch to PAYG: Choose whether the VM can start after you create or restart it without active intervals in selected capacity block groups:
- When reservation is exhausted (default): The VM can start as a pay-as-you-go VM when no capacity is available in the selected capacity block groups.
- Never: The VM cannot start without available capacity in the selected capacity block groups.