Stopping, starting, or restarting a VM

Stop

The Stop command shuts down the VM. After the VM is shut down, its status changes to STOPPED. While the VM is stopped, no fee is charged for it.

You can enable the VM at any time to continue working with it. All data and changes you've made are saved.

Some VM parameters (such as its boot disk) can only be modified when the VM is stopped.

To stop a VM:

  1. In the management console, select the folder the VM belongs to.

  2. Select Compute Cloud.

  3. To stop a single VM, select the machine → click image → select Stop.

    To do this with multiple VMs, select the VMs you need to stop from the list → click Stop at the bottom of the screen.

If you don't have the Yandex.Cloud command line interface yet, install 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's stop VM command:

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

    $ yc compute instance list
    +----------------------+-----------------+---------------+---------+----------------------+
    |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+---------------+---------+----------------------+
    | fhm0b28lgfp4tkoa3jl6 | first-instance  | ru-central1-a | RUNNING | my first vm via CLI  |
    | fhm9gk85nj7gcoji2f8s | second-instance | ru-central1-a | RUNNING | my second vm via CLI |
    +----------------------+-----------------+---------------+---------+----------------------+
    
  3. Select the ID or NAME of the VM you need (for example, first-instance).

  4. Stop the VM:

    $ yc compute instance stop first-instance
    

Start

The Start command starts a previously stopped VM. After the VM is started, its status changes to RUNNING, and the operating system starts loading. From this point on, you will be charged for using the VM.

To start a VM:

  1. In the management console, select the folder the VM belongs to.

  2. Select Compute Cloud.

  3. To start a single VM, select the machine → click image → select Start.

    To do this with multiple VMs, select the VMs you need to start from the list → click Start at the bottom of the screen.

If you don't have the Yandex.Cloud command line interface yet, install 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's start VM command:

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

    $ yc compute instance list
    +----------------------+-----------------+---------------+---------+----------------------+
    |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+---------------+---------+----------------------+
    | fhm0b28lgfp4tkoa3jl6 | first-instance  | ru-central1-a | RUNNING | my first vm via CLI  |
    | fhm9gk85nj7gcoji2f8s | second-instance | ru-central1-a | RUNNING | my second vm via CLI |
    +----------------------+-----------------+---------------+---------+----------------------+
    
  3. Select the ID or NAME of the VM you need (for example, first-instance).

  4. Start the VM:

    $ yc compute instance start first-instance
    

Restart

The Restart command restarts a VM.

To restart a VM:

  1. In the management console, select the folder the VM belongs to.

  2. Select Compute Cloud.

  3. To restart a single VM, select the machine → click image → select Restart.

    To do this with multiple VMs, select the VMs you need to restart from the list → click Restart at the bottom of the screen.

If you don't have the Yandex.Cloud command line interface yet, install 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's restart VM command:

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

    $ yc compute instance list
    +----------------------+-----------------+---------------+---------+----------------------+
    |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+---------------+---------+----------------------+
    | fhm0b28lgfp4tkoa3jl6 | first-instance  | ru-central1-a | RUNNING | my first vm via CLI  |
    | fhm9gk85nj7gcoji2f8s | second-instance | ru-central1-a | RUNNING | my second vm via CLI |
    +----------------------+-----------------+---------------+---------+----------------------+
    
  3. Select the ID or NAME of the VM you need (for example, first-instance).

  4. Restart the VM:

    $ yc compute instance restart first-instance