Virtual machines
A virtual machine (VM) in Center is a virtual server inside a VDC (virtual data center). A VM has CPU cores, RAM, from one to five disks and up to five network connections. Center creates a VM from an OS profile and configures the guest OS itself: the host name, users, DNS.
A VM belongs to one VDC, all its disks are stored in one storage pool, and it runs on a cluster node. What you can do with a VM depends on its status: some changes are possible only when the VM is powered off.
VDC boundaries and command execution
The VDC is the boundary of access and resources: it defines the roles, networks and quotas of the VM. Center checks the CPU and RAM quota when the VM starts, so a powered-off VM may fail to start — VDCs.
VM commands do not run instantly: until the node confirms a command, the VM has a transitional status. If this status lasts longer than the time limit, Center sets an error status.
VM placement
Three fields of the VM page define where the VM is:
- VDC — the owner of the VM.
- Pool — where all disks of the VM are stored.
- Node — where the VM runs. Usually this is the pool node, and Locally is shown next to it.
Center selects the node to start a VM on by the load of the nodes, and when DRS is enabled, by the DRS load — DRS. If the selected node is not the pool node, Remotely is shown next to the Node field, and the node of such a VM can change. Windows VMs run only on the pool node until their first setup is complete. To select the node manually, use the Start at node window: it shows the cluster nodes, the recommended node and the reasons why the other nodes are refused.
OS profile — the guest OS image the VM was created from — OS images. It is not a template: cores, memory, disks and networks are set when you create the VM. A profile hidden from your role is shown as Private. Center restarts a Windows VM itself until its first setup is complete; until then, the VM starts only on the pool node.
VM statuses
You can see the state of a VM in three columns of the Virtual Machines table and at the top of the VM page:
- Status — what the node reported last or which command is running: Created, Offline, Started, Suspended, transitional statuses such as Starting and Migrating, error statuses such as Start failed. If an operation is in progress on the VM, Locked is shown before the status, for example Locked, Starting, and the Actions menu is unavailable.
- Power — Powered On, Powered Off or Suspended.
- Health — OK, Warning, Error or Unreachable. The reason is shown in the tooltip of the colored indicator to the left of the VM name on the VM page.
Started means that the VM process is running on the node, not that the guest OS has booted: you can see the guest OS boot in the VM console. All statuses, reasons and the mapping to the 3.2 labels — VM statuses.
Clones
You can clone a powered-off VM: a thin clone is created in the same pool and VDC and at first takes up almost no space. While a VM has clones, you cannot delete it, and its page has the Linked clones section — Clone a VM.
What requires stopping the VM
A powered-off VM has the Offline or Created status, but not every action is available in both statuses.
- Only in the Offline status: disconnect a network, roll back to a snapshot, clone the VM.
- In the Offline or Created status: connect a network, delete a disk.
- Move the disks to another pool: possible for a powered-off VM, and for a running VM with live disk migration, with limitations — Move VM disks to another pool.
- Only when the VM is running: move it to another node.
- In any status: cores and RAM, a new or expanded disk, speed limits, snapshots.
A running VM gets the new CPU (Cores) and RAM values after a restart: Restart, or a stop and a start.
It is recommended to plan such changes for a time when the VM can be stopped.