Skip to main content

VM on another node

A virtual machine (VM) can run on a node other than the one where the pool with its disks is open. In this case, the VM accesses its disks over the network, over NVMe-oF/TCP, from the current node of the pool. A failure of either of the two nodes powers off such a VM, and so does a stop or transfer of the pool.

When a VM runs on another node​

  • Start. Center chooses the least loaded node and only slightly prefers the node of the pool. With DRS disabled, the load is the share of allocated memory (weight 70%) and cores (30%); with DRS enabled, it is the DRS load of the node with the same weights, DRS. The VM can start on any node that is reachable and open for placement.
  • Start at node — you choose the node. 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 a move from 3.0 or 3.1 — when it is enabled following Enable Internal Fabric.
  • Live migration — to any suitable node, including a VM that already runs on a node other than the node of its pool, — VM live migration.
  • Live disk move — the VM stays on its node, and its disks move to a pool of another node, — Moving VM disks between pools.
  • Auto-restart chooses the node the same way as Start — VM auto-restart after a failure.

If the current node of the pool is chosen, the VM works with its disks directly.

On a cluster that moved to 3.2 from 3.0 or 3.1, disk access over the network stays disabled until you enable it following Enable Internal Fabric. Until then, VMs are started only on the node of their pool: Start can choose another node, and there is no Start at node button. How to start VMs before it is enabled — on the same page.

How a VM gets its disks​

  1. Request. The node where the VM starts asks the current node of the pool to open access to the VM disks over NVMe-oF/TCP, port 4420.
  2. Pool address. Access is opened on the floating address of the pool: the cluster manager activates this address on the node where the pool is open and removes it when the pool stops.
  3. The guest sees regular NVMe disks.
  4. While the VM runs, the node of the pool does not delete its disks — Using with nvmf-share — and does not close the pool.

Pool node failure​

The node of the VM is running, and the node of its pool failed:

  1. The disks stop responding. The node of the VM tries to reconnect to the pool address.
  2. The pool fails over to another node, and the pool address moves there too — Pool failover to another node.
  3. Reconnection is not possible. Access to the disks was open only on the failed node, and it does not move to the new node. The VM terminates abnormally — for the guest, this is equivalent to a power loss.
  4. Center starts the VM again once the pool is running, on a node that Center chooses itself. Data that was only in the VM memory is lost, and so are the last seconds of disk writes that the node did not manage to flush.

Pool transfer and stop​

  • Center powers off the VMs of the pool on other nodes before Stop pool and with both transfer methods. A soft transfer keeps running only the VMs on the node of the pool.
  • If at least one node has not confirmed within 2 minutes, the pool stays in place with the error Pool has running VMs on other nodes that could not be stopped.
  • After the transfer, these VMs stay powered off — start them manually, Manual pool transfer.

Duration​

WhatTime
The pool fails over to another node after a failureabout 1–2 minutes
Center begins starting the VMsno earlier than 30 s after the pool starts

What you see​

  • VM page: next to the Node field — Remotely or Locally.

  • VMs of the pool on other nodes: Provider Data Center → All Virtual Machines, Filters: select VMs by the Pool and Node parameters.

  • After the node of the pool fails, the VM shows Started until it terminates, then Offline → Starting → Started. Node may change.

  • On the node, such VMs are marked with the word remote. The command only reads the state — View the cluster state on a node:

    vstack-vm vm list

Risks​

  • The node of the VM lost connectivity with the cluster. Do not start the VM manually on another node until this node is powered off or has returned to the cluster — VM double-start protection.
  • Disks over the network. Every disk access of the guest goes over the isolated networks segment to the floating address of the pool (NVMe-oF/TCP), and Center chooses the node for the VM by memory and cores, not by disks. Start a VM that is sensitive to disk latency with the Start at node button on the current node of its pool.

Limitations​

A Windows VM runs only on the node of its pool until its initial setup is finished: after creation, Center restarts it on its own while Windows is being set up. During this time, Start at node with another node responds with Windows: finish setup on the pool node before remote start. If the node of the pool is out of memory — Cluster RAM has been depleted.

What not to do​

  • Do not reboot or power off the node of a pool while the VMs of its pools run on other nodes: they lose access to their disks and terminate abnormally. Free the node first — Node maintenance mode.
  • Do not expect a soft transfer to keep the VMs on other nodes running: Center powers them off.
  • Do not manually start on another node a VM whose node lost connectivity with the cluster: the VM may still be running there, and two running copies corrupt the data on the disks.
  • Do not restart storage services on the node of the pool: access to the disks of the VMs on other nodes is not restored, and these VMs power off.

See also​