Virtual machines
Technical specifications
What VM configuration (memory, vCPU) can I use?
When creating a VM, you select its vCPU performance level. This determines the required number and performance of cores (vCPUs). You can choose the computing resources that are appropriate for the expected load.
For more information, see vCPU performance levels.
How do I change the amount of RAM and the number of vCPUs allocated to my VM?
For more information, see Changing VM computing resources.
How do I create a multi-interface VM?
You can add a network interface only when creating a VM. Currently, you can only create multiple interfaces on network images from Yandex Cloud Marketplace.
You can also create a NAT instance to use multiple network interfaces.
VM parameters
How do I increase my quotas?
To increase quotas, submit a request
After creating the request, you will be able to view it and track its status in the support section
Is nested virtualization supported? Can I deploy custom VMs within a VM?
Nested virtualization is not supported for security reasons. If you did not find a suitable public VM image, you can upload a custom image and use it to create your VM. Use this guide: Creating a VM from a custom image.
Will my data be safe if I update the VM settings?
Yes, your data should stay safe. However, please note that you should not restart your VM when writing data to the system disk as this might result in file system corruption.
To update the parameters of your VM, follow these steps:
- Create a snapshot of the disk (see Creating a disk snapshot for details).
- Shut down the VM gracefully (see Stopping, starting, or restarting a VM for details).
- Update the VM parameters (see Changing VM computing resources for details).
- Wait for the operation to complete (the Operations section in Compute Cloud).
- Start the VM.
- Make sure the new parameters are applied.
Can I reduce vCPU or vRAM for my VM?
Yes, you can. However, if the vCPU and/or vRAM utilization was already high prior to updating the parameters, the VM may fail to start after they are reduced.
Still, if the server load is small and consistently distributed, we recommend reducing the parameters to avoid extra charges.
Can I change the FQDN?
A VM gets its FQDN upon creation, and you cannot change it.
If you need to change the FQDN, delete the VM and create a new one. To ensure data consistency:
- Stop the VM (see Stopping for details).
- Create a snapshot of the disk (see Creating a disk snapshot for details).
- Create a new VM by selecting the snapshot as the source of its boot disk. For details, see Creating a VM with disks recovered from snapshots. While creating, specify the FQDN you need.
Can the UUID of a VM change?
Typical VM configuration updates, such as changing the number of vCPUs, the amount of vRAM, and adding disks, do not affect the UUID. However, in some cases, the UUID may change. For example, this may happen when updating BIOS or performing similar operations that affect the service's hardware components.
Keep this in mind when using third-party software licenses. The best solution is to purchase a license that does not have any link to the UUID.
Can I install the required software on a VM when creating it?
Yes, you can. To do this, specify a custom script with commands to install the required software in the metadata of the VM you are creating. For more information, see Creating a VM with a custom configuration script.
How do I change metadata after creating a VM?
Use the updateMetadata API method.
This method enables you to update the metadata in the service without affecting the guest OS run by the VM. If you need to update a parameter within your VM after its creation, in most cases, the best way is to recreate the VM from a snapshot or make the changes manually.
VM operations
Can I copy or clone an existing VM?
Yes, you can create snapshots of the disks attached to your VM and use them when creating a new VM.
Can I move my VM to a different availability zone?
You cannot directly change the availability zone hosting your VM. However, you can create a VM copy in the availability zone you need.
Can I move my VM to a different folder?
You can move your VM to a different folder within a single cloud. For more information, see Moving a VM to a different folder.
Can I recover my VM if I accidentally delete it?
No, you cannot. Deleting a VM is irreversible and cannot be undone.
To prevent data loss if you accidentally delete a VM, you can either set up disk backups using snapshots or configure the disks so that they are not automatically deleted along with the VM.