Skip to content
Dorian FINKEL
ProxmoxCorosyncHigh availabilityTutorial · 2026 · 3 min read · Updated 9 October 2026
Level · AdvancedDuration · 45 min

Build a two-node Proxmox cluster with a QDevice

Two Proxmox servers managed as one, and a lightweight third vote so that losing a node doesn’t freeze the whole cluster.

Prerequisites

  • Two up-to-date Proxmox VE nodes on the same version
  • The joining node hosts no VM or container yet
  • Synchronised clocks (NTP)
  • A small third machine (Debian) for the QDevice

01What Corosync needs

The cluster relies on Corosync. Nodes must reach each other over UDP ports 5405 to 5412, with latency under 5 ms (LAN performance), synchronised clocks and SSH (TCP 22) between them. Corosync uses little bandwidth but copes badly with latency and jitter: a dedicated, or at least lightly loaded, network is ideal.

Corosync accepts several links (link0, link1…): a second network takes over if the first fails. Between two remote sites, watch latency closely: beyond a few milliseconds, the cluster becomes unstable.

02Create the cluster

Example · Shell
# On the first node (link0: dedicated network, link1: backup)
pvecm create lab --link0 10.0.0.1 --link1 192.168.10.11

# On the second, pointing to the first
pvecm add 192.168.10.11 --link0 10.0.0.2 --link1 192.168.10.12

# Verify
pvecm status
pvecm nodes

03The two-node problem

A cluster only makes decisions with a majority of votes: quorum. With two nodes, each has one vote; if one fails, the other holds only half the votes, and the cluster freezes out of caution (no VM start, no configuration change). The documentation recommends three nodes for reliable quorum.

Without a full third server, a QDevice provides that third vote. Proxmox recommends it for clusters with an even number of nodes, and discourages it for an odd number.

04Add the QDevice

The QDevice runs no VM: it breaks ties. With two nodes it uses the ffsplit algorithm, which gives its vote to only one of the two halves if the nodes lose contact.

The setup command connects over SSH, as root, to the third machine to install the certificates: that access must work at installation time.

Example · Shell
# On the third machine
apt install corosync-qnetd

# On each of the two nodes
apt install corosync-qdevice

# Then, from one node
pvecm qdevice setup 192.168.10.50
pvecm status          # "Qdevice" shows up, 3 expected votes

05Last resort

If a node is permanently lost and no QDevice answers, lowering the expected votes gives you control back. Emergencies only: two isolated nodes that each believe they are the sole master means guaranteed corruption.

Example · Shell
pvecm expected 1

Key takeaways

  • Corosync: UDP 5405-5412, under 5 ms, synchronised time.
  • Two Corosync links are better than one.
  • Two nodes: no majority if one fails.
  • The QDevice provides the third vote, without running VMs.
  • pvecm status before any operation.

Example addresses.

Official sources