Start, stop and restart a VM
Start, stop and restart are three items of the Actions menu on the page of a virtual machine (VM). Stop a VM before changes that Center accepts only for a powered-off VM, for example, before you delete a disk.
Before you begin
- You need the VDC admin or VDC user role in this VDC (virtual data center), or the Cluster master role. With the Vm Developer role, you cannot start or stop VMs.
- To start a VM: if the VDC has CPU and RAM quotas, their remainder covers the cores and memory of this VM. A user with the Cluster master role changes the VDC quotas — Set VDC quotas.
- The VM is not locked: the Status field on the VM page does not contain the word Locked.
Start the VM
- In the left menu, select Virtual Data Centers → the VDC → Virtual Machines → the VM. The VM page opens.
- Select Actions → Start. The VM must have the Offline or Created status; otherwise Center returns an error.
Center chooses the node: by the load of the nodes, and when DRS is enabled, by the DRS load. A VM that can run on another node may start on a node other than the node of its pool; other VMs start on the pool node. If the least-loaded node does not have enough memory, Center starts the VM on the next suitable node.
If DRS is enabled and the VM has the Manual automation level, Start opens the Start at node window: select a node; the recommended one is marked Recommended — DRS.
Stop the VM
- On the VM page, select Actions → Stop.
Stop shuts down the guest OS gracefully — the same way as pressing the power button. If the guest OS does not shut down within 30 seconds, the VM is powered off forcibly, and unsaved data in the guest OS is lost. To prevent data loss, shut down the VM from the guest OS, or make sure that the guest OS responds to the power button.
Restart the VM
- On the VM page, select Actions → Restart. If the VDC has already exceeded its CPU or RAM quota, Center rejects the restart. You cannot restart a suspended VM: return it to work with the Resume item.
Check the result
When the operation completes, the web interface shows a notification, for example VM (id: 12, name: vm01) was successfully started. The Status field shows Started after a start or restart, or Offline after a stop, and the Power field shows Powered On or Powered Off.
While the operation is in progress, the status is transitional: Starting or Stopping, with Locked before it. If Starting lasts longer than 15 minutes, Center changes the status to Start failed. If Stopping lasts longer than 30 minutes, Center changes it to Stop failed. The operation is shown in the Tasks section — Tasks.
If the operation fails, the Health of the VM becomes Error, and the tooltip of the indicator next to the VM name shows the reason. A failed Start does not set the desired state of the VM back to Powered Off: Center remembers that the VM must be running, but does not start it on its own after a failed user command. Next steps — VM does not start.
Rejection reasons
| Message | Reason |
|---|---|
VM is locked | another operation is in progress on the VM; Center names it. Wait for the operation to finish |
Node <name> is in maintenance mode | the selected node or the pool node is in maintenance mode — Put a node into maintenance mode |
Node <name> violates rule <rule>, No node satisfies rule <rule> | the node is forbidden by a mandatory DRS placement rule, or no node satisfies the rule. A user without global rights sees the refusal without the rule name |
Node <name> is not available: <state> | the node selected in Start at node is powered off or offline |
Not enough RAM in the cluster outside the failover reserve | powering on would use memory reserved for node failures — Memory reserve for node failures |
VM has suspended status; unable to start | the VM is suspended: return it to work with the Resume item |
VM is running on another cluster node; unable to start | the VM is already running on another node — VM double-start protection |
More
- The Start, Stop and Restart icon buttons on the panel at the top of the VM page do the same as the menu items.
- Start at node — the button next to the Start button: starts the VM on the node that you select from the list. The button is available when VM disk access over the network is enabled on the cluster: on a cluster installed on 3.2, it is enabled at installation; after an upgrade from 3.0 or 3.1 — after it is enabled as described in Enable Internal Fabric. A Windows VM starts only on the node of its pool until its first setup is complete.
- Start at node shows all cluster nodes, the recommended node, the reason for each unsuitable node and the DRS level of the VM.
- Additional actions → Suspend and Resume — suspend a running VM and return it to work. The items are available if the cluster supports VM suspension — Suspending a VM and a pool.
Next
- Open the VM console
- Move a running VM to another node
- Virtual machines — VM statuses and what you can change in a running VM.
API methods: vms-start, vms-stop, vms-restart — in the API reference.