VM statuses

List of statuses

A VM can have one of the following statuses:

  • PROVISIONING: Yandex.Cloud is allocating resources to the VM.
  • STARTING: the VM is being started.
  • RUNNING: the VM has been started and is running.
  • STOPPING: the VM is being stopped.
  • STOPPED: the VM is stopped.
  • RESTARTING: the VM is being restarted.
  • UPDATING: the VM is being updated.
  • CRASHED: the VM has crashed and will be restarted automatically.
  • ERROR: a fatal error has occurred and the VM cannot be recovered.
  • DELETING: the VM is being deleted.

Operations on a VM

The diagram below shows only transitions between statuses under normal operation during the following actions:

The diagram does not show the following intermediate statuses:

image

Creation

When it is created, a VM gets the PROVISIONING status. At this stage, the VM is allocated computing resources: the number and performance of processor cores (vCPUs) and the amount of RAM. It is assigned an IP address and its disks are created.

After that, the VM starts automatically and switches to the STARTING status.

If the startup is successful, the VM's status changes to RUNNING and the operating system starts loading. After that, you will be able to connect to the VM.

Stop and start

When stopped, the VM switches to the STOPPED status.

At the next start, the VM undergoes the same statuses as when it was created: PROVISIONINGSTARTINGRUNNING.

Restart

When being restarted, the VM switches to the RESTARTING status. Since all the computing resources have been allocated, the VM returns to the RUNNING status after it is restarted.

Update

You can update the parameters of a VM, such as change its name, regardless of the VM status. Once updated (the UPDATING status), the VM returns to the previous status.

If you update the metadata, it will be available from inside the VM immediately after the update. You do not need to stop or restart the VM.

Deletion

When you delete a VM, all the ongoing operations are first aborted and then the VM switches to the DELETING status.

When the deletion is complete, the VM disappears from the list of available resources.

Errors

There are two error statuses:

  • CRASHED: an error has occurred and the VM operation cannot continue.

    If the VM has switched to this status, Yandex.Cloud will try to restart it. Restart attempts will be repeated until the VM status changes to RUNNING or ERROR.

  • ERROR: a fatal error has occurred and the VM cannot be recovered.

    If the VM has switched to this status or is continuously switching to the CRASHED status, contact the technical support or create a new VM.