A VM is similar to a server in the cloud infrastructure.
VM as a Yandex.Cloud resource
A VM is created in one of the folders in your cloud and inherits access rights from them. More information about the Yandex.Cloud resource model.
You cannot currently move a created VM to a different folder.
Each VM has a unique ID and name. The name is unique within the folder. The ID is generated automatically when the VM is being created and is unique within Yandex.Cloud.
When creating a VM, you can choose the Yandex.Cloud availability zone where it will be located.
You can't move a VM to a different availability zone, but you can create a copy of it in a different availability zone.
When creating a VM, you specify the amount of computing resources to be allocated to it: the number and performance of processor cores (vCPUs) and the amount of RAM. You can choose the amount of computing resources that is appropriate for the expected load. For more information, see Levels of core performance.
At least one disk must be attached to a VM, that is, a boot disk. Currently, you can only attach a boot disk when creating a VM.
You can also attach additional disks to the VM. You can either attach a previously created disk or create a disk along with the VM. The new disk can be empty, or you can restore it from a snapshot or image.
Empty disks do not have a file system. If you attach an empty disk, partition and mount it manually. Alternatively, instead of attaching an empty disk, you can create a snapshot of the boot disk and create a VM based on the snapshot.
You can attach and detach additional disks even after you created the VM.
Read more about disks in Disks.
The status of a VM affects which operations you can currently perform on it.
For example, the
STOPPEDstatus means that the VM is stopped and you cannot connect to it. To do that, first [start](../operations/vm-control/ vm-stop-and-start.md#start) the VM. After the status changes to
RUNNINGand the OS loading completes, you will be able to connect to the VM.
For more information about statuses, see the section VM statuses.
Each VM stores information about itself on the metadata server. You can request this metadata from inside a VM using the Yandex.Cloud API or CLI.
You can set your own metadata when creating or updating VMs. For example, to connect to a Linux VM, you need to pass an SSH key to it. This is done using the metadata service. For more information, see VM instance metadata.
When creating a VM, you should specify settings for the network interface connected to it: select the subnet to which the VM will be connected and configure internal and public IP addresses. This allows the VM to interact with other services on the intranet and internet.
For more information, see Network on a VM.