VorticPanel

Administration

Moving servers between nodes

Staff move a server with Move to another node… in the server’s ⋯ menu. Let placement choose the target, or pick one. Only nodes in the same region are offered.

A server keeps its addresses when the target node is in each address’s IP pool (the pool’s Nodes, under IP pools), which is where the subnet is routed. Put every node of a location in its pools and moves leave addresses alone. Let placement choose only picks such nodes, and so does emptying a node unless you let its servers have new addresses (see Emptying a node).

Moving with new addresses

Pick a node outside the server’s pools and the dialog says needs new IPs, and lists what changes: each address gets one from the target’s pools, a floating IP is taken off the server and stays in the customer’s account, and an IPv6 block is taken off when the target has IPv6 off. Tick Give it new IP addresses to move it; Email the customer their new addresses is ticked too. Live moves still run live:

  1. The server moves as usual and keeps running.
  2. The new addresses come from the target’s pools, the node lets them through, and its guest agent changes them inside the server: the saved network settings (netplan, ifupdown, ifcfg, NetworkManager or systemd-networkd on Linux; the adapter’s settings on Windows) and the running interface. Open connections drop once.
  3. The customer gets an in-panel notice, and the Server’s IP addresses changed email if you chose it. Billing gets server.addresses_changed.

The transfer’s page shows old and new addresses, whether they’re in use inside the server, and an Email customer button to send (or resend) the email. A powered-off server, or one whose guest agent doesn’t answer, switches over once it’s running and the agent answers, and the page then shows it. If the change inside it fails, the page says why; set the addresses from the console. IPv4 addresses keep their reverse DNS names; IPv6 records for the old prefix are removed. Over the API, the same move needs changeAddresses: true (and emailCustomer); without it, a move to such a node is refused with addresses_not_routed.

Mode What happens
Live Copies the disk and memory while the server runs, then pauses it briefly to switch over. Open connections survive.
With a restart Copies the disk while the server runs, then shuts it down and starts it on the new node. It’s off for about as long as a restart, and open connections drop.

A stopped server is copied and stays stopped on the new node. Over the API, a move with a restart is mode: "offline".

A move to another node deletes the server’s snapshots, which are kept next to its disk; the move dialog and the plan for emptying a node say which servers have some. Backups are kept in backup storage and stay.

In a move with a restart, the copy is kept in step with every write until the server is off. If it falls out of step, the disk is copied again, whole, while the server is off; the move still finishes, and its log says so. The server keeps its UUID, and its UEFI boot settings and TPM go with it; if the new node’s UEFI firmware won’t take the saved boot settings, it starts with fresh ones and boots from the disk’s default boot loader, and the move’s log says so. A node with libvirt older than 8.0 shuts the server down first and copies the disk whole.

Moves run over SSH between the nodes’ management addresses (live ones with virsh migrate), on each node’s own SSH port (see Moving SSH off port 22). The disk and memory go through an SSH tunnel too, and the target only listens for them on its own loopback (TCP 49152–49215): for moves, only the SSH port needs to be open between the nodes’ management addresses (customers’ private networks also use UDP 51871, the encrypted tunnel between nodes, and UDP 4789 to and from a node that can’t run the tunnel; see Adding a node).

OpenSSH turns new connections away at random once 10 are waiting to sign in, which password guessing on an open SSH port can reach. Each node’s agent raises that limit (MaxStartups, in /etc/ssh/sshd_config.d/60-panel-moves.conf) unless it was set by hand, and a node whose connection is still turned away tries again for about a minute. Where you can, allow SSH only from your own addresses and the other nodes. Once the server is set up on the new node the move counts as done: if the new node still can’t be reached to start it, its own agent starts it as the move is finished, and the move’s log says so. The nodes exchange keys over their agent connections and pin each other’s host keys with StrictHostKeyChecking=yes. A node’s key on another is only let in from that node’s own addresses (its management address and the addresses on its interfaces), and can only forward to those loopback ports.

The source node’s key is let in on the target for one move at a time: each move adds a line of its own to /root/.ssh/authorized_keys on the target, ending panel-migration:<transfer ID>, and the target takes exactly that line out again as soon as the move succeeds, fails or is canceled. Other moves to the same node keep their own lines. If the target is offline at that moment, it’s done as soon as it’s back, without holding the move up; if the controller restarts during a move, the line comes off when it starts again. In case none of that happens, the line stops working 13 hours after it was added (the controller stops a move after 12), and old lines are tidied away by the next move to that node. To check a node, grep panel-migration /root/.ssh/authorized_keys there shows nothing while no move to it is running.

Both nodes need an up-to-date agent. If the target’s agent is too old for the encrypted connection, the move fails once the target is prepared, and says to update it: it updates itself within minutes, or press Update agent on its Settings tab, then choose Try again.

CPUs and live moves

A server keeps the CPU it booted with until it’s next stopped and started, so a live move only works if the new node’s CPU can do everything the old one could. A move with a restart works between any two CPUs, as the server starts fresh on the new one. With host-model and qemu64, libvirt checks a live move itself. With host-passthrough, the guest sees the node’s real CPU, so the panel compares the two nodes’ CPUs (each node’s agent reports its model, shown on the node’s Overview, and its features):

  • Same model, or a newer one with every feature of the old one (EPYC Milan to Genoa, for example): moves live, like any other server.
  • The new CPU lacks some features (Genoa back to Milan, which has no AVX-512): with a restart by default, and the move dialog lists the missing features. Staff can still choose Move live anyway. Whether that works depends on whether the guest uses those features: if it does, programs or the whole server can crash after the switch. A move with a restart is always safe.
  • Intel to AMD or back: with a restart. A live move between them would copy everything and then fail at the switch-over. The same goes for host-model, which is modeled on the node’s own CPU.
  • A node that hasn’t reported its CPU yet (an older agent): treated like missing features until its agent updates itself.

Only instruction-set features count. Power management, the host’s own virtualization features and speculation mitigations differ between identical machines with other firmware, and don’t matter to the guest.

When emptying a node, servers that can’t move live safely move with a restart.

Nodes on different distributions

Moves with a restart work between nodes on any distributions (AlmaLinux, Rocky, Debian, Ubuntu).

A running server keeps what it started with, so it only moves live to a node whose QEMU can take it. Each node reports its QEMU, and the move dialog offers only With a restart, saying why, when the new node:

  • runs Red Hat’s build of QEMU (RHEL, AlmaLinux, Rocky) and the old one the standard QEMU (Debian, Ubuntu), or the other way round;
  • has an older QEMU, without the machine type the server runs as;
  • has another build of the network card’s boot ROM.

Between nodes on the same distribution and version, servers move live as usual.

A server waiting for its setup has nothing on its node yet, and moving it only changes where it’s held: the node, its storage and, if needed, new addresses, all at once with no copy and no job. That works even when its node is down. Emptying a node moves these servers the same way.

Choosing the storage

Placement picks the target’s storage pool the way it does for new servers: the node’s default pool if it has the server’s disk tier and room, otherwise the matching pool with the most free space. When there’s no room on the server’s own tier (on the node you picked, or, letting placement choose, on any node), it goes on storage of another tier (NVMe, SSD or HDD) and the server’s disk type changes to match. Once you pick a node, Storage lists its pools with how much is free and how full each would be afterwards; pools switched off or without room are grayed out with the reason. Picking a pool of another tier changes the server’s disk type the same way. Additional disks go to the same pool. Over the API, send storagePoolId (from pools in the move options) with a targetNodeId.

Moving a disk to other storage on the same node

On a server’s Hardware tab, Disks lists its system disk and any additional disks, each with the storage it’s on. Move… puts one on another pool of the same node: off a pool that’s filling up, from HDD to NVMe, or from one kind of storage to another (LVM, LVM thin, ZFS, qcow2 files).

  • Running server: it keeps running. The node copies the disk while it’s in use with libvirt’s block copy (virsh blockcopy), mirrors new writes, then switches the server over to the copy. There’s no restart.
  • Stopped or suspended server: the disk is copied directly with qemu-img.
  • Either way the old copy is removed only once the new one is in use, so a failed move leaves the server as it was. It runs as a job on the server and the Jobs page; power actions are refused until it’s done.
  • If the source node stops answering partway (it goes offline, or the move is canceled during the switch-over), the panel can’t tell which node has the server. The server shows an error, staff get a notice naming both nodes, and the panel doesn’t set it up again on the source by itself. Until staff settle it, only staff signed in as themselves can act on it: customers, resellers and billing get “This server is being checked” when they try to power it, reinstall, restore, suspend or delete it. Check both nodes, then move it again, reinstall or restore it, or delete it. Unless the server ends up on the target, the target is then told to remove the copy that move left there, and it can’t be removed from the panel until it has.
  • Snapshots are stored next to the system disk (LVM and ZFS snapshots, qcow2 copies) and can’t come along: delete them first, or take a backup instead. Additional disks have no snapshots.
  • Another tier: any disk can go to a pool of any tier. When the system disk does, the server’s disk type changes to that tier.

It needs the servers:move permission. Over the API: POST /admin/servers/{id}/actions/move-disk with { storagePoolId, diskId? }, where diskId is an additional disk’s ID and is left out for the system disk. To move a disk to another node, move the server.

Emptying a node

On a draining or in-maintenance node, Move servers off plans where every server goes, using the group’s placement rule and taking earlier moves into account. It moves them two at a time, with a progress banner and a way to stop after the current moves. Servers that don’t fit anywhere stay put, and the dialog says why. Once a node has no servers left, it can be removed from its Settings tab.

Servers keep their addresses, so they only go to nodes in their IP pools. When some can’t go anywhere for that reason, the dialog offers Give new IP addresses where their own won’t work. Ticked, those servers go to a node outside their pools and get new addresses there, as in Moving with new addresses, and Email each customer their new addresses is ticked too. Servers that can keep their addresses still do. The plan marks each server that gets new IPs, and its transfer shows the old and new addresses. Over the API: GET /admin/nodes/{id}/evacuation/plan?change_addresses=1 for the plan, and changeAddresses: true (with emailCustomer) when starting.

When no node has room on a server’s own storage tier, it goes on another, and the plan shows which.

Transfers

Every move is listed under Operations → Transfers (/admin/transfers). The sidebar shows a count while anything is moving. The list shows:

  • the server and its owner
  • the source and target node, and the storage pool the disk goes to
  • live or with a restart
  • progress, or how it ended: downtime, how long it took, or the error
  • who started it, including “Emptying node” for evacuations

Filter by in progress, done, or failed and canceled, or search. While a node is being emptied, its progress banner links to just that node’s transfers. A transfer’s page shows its progress, each step the node reports as it happens, and a timestamped log you can copy.

  • Cancel transfer stops a queued or running move. The source node stops the move and the server stays there. When the source had already handed the server over to the target as the cancel reached it, the move finishes instead, and its log says so.
  • Try again reruns a failed or canceled move to the same node.

While a server is moving it can’t be suspended or terminated, by staff, resellers, customers or billing: those answer 409 server_moving until the move ends. Cancel the move first to suspend or terminate it sooner.

Every other kind of job (starts, stops, installs, backups, snapshots) has its own live log under Operations → Jobs; see Following a job.

Moves send transfer.started, transfer.finished and transfer.failed webhooks to staff webhooks only.

Every word has to appear. ↑ ↓ to move, Enter to open.