Skip to main content
To proceed with maintenance, stop and start virtual machines manually or automatically. If you need to keep your VMs running, contact the support team and consult them about the possibility of rescheduling maintenance of the affected VMs.
Do not stop your VM by using Linux commands, such as shutdown or halt. Compute considers this as a failure, reboots the VM automatically and continues charging for this VM. Use Nebius AI Cloud interfaces instead and follow the instructions below.

How to stop and start VMs manually

  1. In the sidebar, go to  Compute → Virtual machines.
  2. Find VMs with the maintenance label.
    maintenance-label
  3. Click  → Stop for these VMs.
  4. In the window that opens, confirm stopping the VM.
  5. When the VM status changes to Stopped, click  → Start.
  6. In the window that opens, confirm starting the VM.

How to stop and start VMs automatically by using autohealing

You can create a VM with the autohealing function. It allows a VM to automatically stop and start each time maintenance is scheduled. As a result, the applications on this VM are highly available.
Use autohealing only if the automatic VM shutdown is safe for the workloads on this VM. If you cannot stop the VM at any time, it is better to manage the VM manually.
To create a VM that stops and starts automatically during maintenance events:
  1. Make sure you are in a group that has the admin role within your tenant or project; for example, the default admins group. You can check this in the Administration → IAM section of the web console.
  2. Create a service account.
  3. Add it to the default viewers group:
    1. Get the ID of the viewers group:
      In the command, specify your Tenant ID.
    2. Get the ID of the service account:
    3. Add the service account to the viewers group:
  4. Create a VM. In its configuration, specify the following:
  5. Connect to the VM.
  6. Install jq on the VM:
  7. Go to the /usr/local/bin/ directory:
  8. Create the vm_maintenance.sh file:
  9. Add the following Bash script to the file:
  10. Make the file executable:
  11. To make the script run continuously and restart it when the VM fails or reboots, add a systemd unit to the script:
  12. Start the service created with the systemd unit, and let it restart in case of the VM reboot:
    The output example is the following:
Now, the script runs continuously, and the VM stops and starts during maintenance events.