Two-node Proxmox VE cluster with a QDevice

A two-node Proxmox VE cluster with an external QDevice can keep quorum when one node fails. This page explains the vote, where to host it, the encrypted setup and the change order for nodes.

On this page

Why a two-node Proxmox VE cluster needs a QDevice

A two-node cluster cannot keep quorum when one host fails, because the surviving node holds only one of two votes. A QDevice adds an external vote so the surviving node keeps quorum and the cluster file system stays writable. Without it, a single host failure leaves you with a read-only cluster configuration and a manual recovery job, even though the guests on the surviving node may still be running.

The Proxmox VE cluster manager documentation describes the QDevice as a host outside the cluster that connects over TCP/IP. It does not have to sit on the cluster LAN, and it is not bound to the low-latency requirement that Corosync places on the cluster links. On the external host you install the corosync-qnetd package, and on each cluster node you install corosync-qdevice. Confirm the exact package names and versions for your release in the cluster manager chapter before you plan the build, and check that the external host can reach the nodes on the port the QDevice uses.

This page is about the vote, not about high availability guarantees. Proxmox VE HA needs at least three cluster nodes for reliable quorum, shared storage, redundant hardware and watchdog-based fencing, as described in the HA wiki. A QDevice in a two-node cluster keeps the cluster administratively working through one failure, but it does not make HA recovery of guests dependable. Decide early which of the two goals you are actually funding, and plan the external host's location and its own availability with that in mind.

Where to run the corosync-qnetd vote

A separate small virtual machine or physical host, placed outside both cluster nodes and their shared failure points, is the placement that most directly supports a two-node design. The QDevice only needs TCP/IP reachability from each node, so the host can be modest, but it should not share a hypervisor, power feed, storage array or network switch with either node. If the vote lives on a node's own hardware, losing that hardware removes the vote too.

  • Independent power and hardware: run it on a host that does not depend on the same power distribution or top-of-rack switch as the cluster nodes.
  • Protects against: loss of a single node, or of one node's rack or hypervisor, while the other node keeps its vote.
  • Does not protect against: loss of the whole site where both nodes sit, unless the QDevice is elsewhere.
  • Admin separation: confirm who patches and monitors this host, since a neglected vote host is a silent single point of failure.
  • Firewall rules: confirm the port and direction required by the QDevice connection in the Proxmox VE documentation before opening anything.

Confirm that this host is not itself hosted on a Proxmox VE node in the same cluster.

How to set up the QDevice with pvecm

This sequence adds an external quorum vote to a two-node Proxmox VE cluster so the cluster keeps quorum when one node fails. Each stage ends with a check you can run before moving on to the next.

  1. Prepare the external quorum host

    Choose a host outside the cluster that both nodes can reach over TCP/IP. It does not need to sit on the cluster LAN and does not have to meet Corosync's low-latency requirement, but it should be a separate failure domain from both nodes. Confirm with your own team that the host is patched and that its network path to both nodes is stable. You are done when you can reach the host from each node by its management address and the host is ready for package installation.

  2. Install corosync-qnetd on the external host

    On the external host, install the corosync-qnetd package with apt. This package provides the quorum daemon that casts the tie-breaking vote. Start and enable the service so it survives a reboot. Verify with the service manager that the daemon is active and listening, and record the host address you will use in the next steps. The check is a running corosync-qnetd service on the external host.

  3. Install corosync-qdevice on both cluster nodes

    On each of the two Proxmox VE nodes, install the corosync-qdevice package. Run the install on both nodes before configuring anything, so that neither node is left in a half-configured state. Confirm the package is present on each node with a package query. The check is that both nodes report the corosync-qdevice package as installed.

  4. Confirm TCP connectivity to the quorum host

    From each cluster node, test that the external host accepts connections on the quorum daemon port used by corosync-qnetd. Check the port and firewall rules on the external host against the cluster manager chapter, which gives the exact requirements for your version. Make sure the path is not blocked by a firewall or by a network segment that drops traffic between the nodes and the host. The check is a successful connection from both nodes, confirmed before you proceed.

  5. Set up the QDevice in encrypted mode

    From one cluster node, run pvecm qdevice setup with the address of the external host. Follow the prompts for encrypted setup so that the vote traffic is protected, and make sure both nodes can complete the key exchange. Use the cluster manager chapter to confirm the exact options for your Proxmox VE version, including how the setup handles the certificate and key material. The check is that the command finishes without errors on the node you ran it from.

  6. Verify the QDevice is registered and voting

    Run pvecm status on a cluster node and confirm that the cluster shows a QDevice entry alongside the two nodes, with expected votes and total votes reflecting the extra vote. Check that the cluster reports quorate status. Then review the QDevice status with the same cluster tools to confirm it is connected to the external host and is not reporting an error state. The check is a quorate cluster with the QDevice listed as active.

  7. Test a single node failure before go-live

    Before relying on the design, test it in a maintenance window that your change process approves. Power off or isolate one node in a controlled way and confirm that the remaining node keeps quorum through the QDevice and that cluster status remains usable. Bring the node back and confirm it rejoins and the vote count returns to normal. Record the results with the cluster output. The check is documented evidence that quorum held during the test and recovered afterward.

How the two nodes and the external vote fit together

The diagram starts with the two Proxmox VE nodes, which talk to each other over Corosync. Each node runs the corosync-qdevice client, which reaches the external corosync-qnetd host over TCP/IP, so that host can sit outside the cluster LAN. When one node fails, the QDevice vote is what lets the surviving node keep quorum. Check that the qnetd host is in its own trust boundary and that administrators reach cluster changes through pvecm on a node, not on the external host.

Two nodes, one Corosync link and an external QDevice vote.

QDevice configuration options and when each fits

This table compares the main choices for a two-node cluster QDevice: where the external host runs, how the vote is set up, the network path to the nodes, and how the vote breaks ties. Read each row as a decision, then check the option against your own network and security rules before choosing. The main takeaway is that the QDevice only earns its place if the external host is independent of both nodes.

DecisionOption and when it fitsTrade-off to weigh
External host locationSeparate site or network segment with no shared power or switches with either node. Fits when both nodes sit in one room or rack.Needs a route from the nodes that stays up during a site incident. A host in the same rack as the nodes adds little tie-breaking value.
External host locationSmall VM on a third, unrelated host. Fits when a clean third failure domain already exists.Do not place the QDevice as a guest on either cluster node, because losing that node also removes the vote.
Setup encryptionEncrypted QDevice setup through pvecm. Fits when the vote crosses networks you do not fully control.Adds certificate and key handling to the build. Confirm the exact steps in the cluster manager chapter for your Proxmox VE version.
Setup encryptionUnencrypted setup on a dedicated, isolated management network. Fits only when that network is physically or logically restricted to the cluster.Traffic on a shared or routed network can be observed or spoofed. Your security team should approve this before go-live.
Network pathDedicated management VLAN between the nodes and the QDevice host, with firewall rules limited to the qnetd port. Fits most production builds.Each firewall or routing change is another point of failure. Test a node reboot after every change to the path.
Network pathShared general-purpose LAN. Fits only for labs or non-production use.Latency and congestion on a busy LAN can delay the vote, and any network change can affect the cluster.
Tie-breaking with an even node countQDevice adds one vote, so the partition that can reach the QDevice keeps quorum. Fits the standard two-node goal of surviving one node failure.If the QDevice is unreachable and one node fails, the surviving node loses quorum. Plan for that case in your runbook.
Tie-breaking with an even node countWithout a QDevice, an equal split leaves neither side with a clear majority. Fits only when you accept manual recovery after a single node failure.Guests may stop or wait for manual action, so the recovery time depends on your staff and procedures.

Adding or removing nodes once a QDevice is in place

Once a QDevice provides the tie-breaking vote, every node join or removal has to follow a fixed order: the QDevice comes out first and goes back in afterward. The cards below cover what goes wrong when that order is skipped, how to confirm quorum after each step, and what to check on the external host before and after the change.

Remove the QDevice first

The documented rule is to run pvecm qdevice remove before adding or removing any node in a cluster that has a QDevice. The vote count the QDevice contributes changes during a membership change, so leaving it in place can leave the cluster in an unclear quorum state while nodes join or leave. Write the order into the change plan, and make the QDevice re-add a named step with an owner, so it is not forgotten after the node work is done.

Cluster manager docs

Risk of skipping the order

Skipping the removal step is the main failure mode. A node added or removed while the QDevice still votes can leave Corosync with a vote total that does not match the membership it expects. Depending on timing, the cluster may lose quorum, refuse changes, or fence a node that should have stayed up. Treat any change made out of order as a recovery task, and check quorum state before continuing.

Verify quorum after each change

Run pvecm status after each step, not only at the end of the change. Confirm the expected number of nodes, the expected votes, and that the cluster reports quorate. Do this after the QDevice removal, after the node join or removal, and after the QDevice is re-added. A check at each stage shows which step introduced a problem, which keeps rollback simple.

Check the external host before the change

Confirm that the host running corosync-qnetd is reachable from every node over TCP/IP, that its service is running, and that the nodes still have corosync-qdevice installed. The QDevice can sit outside the cluster LAN, so network paths and firewall rules to that host are a common cause of a failed re-add. Record the host's current state so you know what it looked like before the change.

Re-add the QDevice and retest

After the membership change is complete and verified, add the QDevice back with the same setup used at first deployment, then confirm that the vote is counted. Test by simulating one node outage in a maintenance window, not in production traffic. Keep the change record with the before and after pvecm status output so the next engineer can see the cluster's known-good state.

Keep the external host in change control

The QDevice host is part of the cluster's availability design, so it belongs under the same change control as the nodes. Patch it on a schedule that does not coincide with node maintenance, and confirm with your platform team who may change it. Ask your vendor or internal owner to confirm the current package versions and supported upgrade path for corosync-qnetd before you plan an upgrade.

Questions buyers ask about two-node clusters with a QDevice

Does a QDevice need a Proxmox VE subscription?

No. The QDevice is built from the corosync-qnetd and corosync-qdevice packages, and the software itself can be used without a subscription. Subscriptions are priced per CPU socket per year, with the Community tier listed at 120 euros and no support tickets, and every tier includes the same software features. What changes is support entitlement and access to the enterprise repository, which the Proxmox package repositories documentation recommends for production. Confirm with Proxmox which tier fits your support model, and count the sockets on each node in the cluster, since the price scales with that number. The external host running corosync-qnetd does not need its own subscription to hold the vote, but confirm the licensing terms for your own build of the host before you deploy.

How long does a two-node cluster with a QDevice take to set up?

Duration depends mostly on what is already in place. A team with two nodes installed, a reachable external host and a clear network plan can build the cluster and attach the QDevice in a short working session, while the verification work takes longer. The main drivers are the number of Corosync networks you plan to use, whether the external host needs a new VM or a physical box, how many HA guests must be tested through a simulated node failure, and whether the team must align firewall rules and time synchronization first. Ask any partner for a written schedule that splits build, failover testing and handover, and do not accept a duration that does not name those phases.

What does the client's team need to provide for the work?

The client team supplies the physical or virtual hosts, the network design, access to the cloud or data center where the external vote host will run, and the decisions that only the owner can make. In practice this means:

  • Two Proxmox VE nodes installed at the same major version, with stable interface names and time sources agreed
  • A separate network path for Corosync, and a host outside the cluster LAN for the QDevice
  • Shared storage or replication design for the guests that must restart on the surviving node
  • Named approvers for change windows, failover tests and the recovery runbook

Without these inputs, the work stalls in planning rather than in configuration.

Can our in-house team build a two-node cluster with a QDevice?

Yes, if the team has Linux administration skills, can read Corosync and HA status output, and has a lab to rehearse failure cases before production. The steps are documented in the Proxmox VE cluster manager chapter, and the QDevice uses TCP/IP so it can sit outside the cluster LAN. The risk sits in the details: choosing where the vote host lives, testing a power loss rather than a clean shutdown, and knowing how to remove the QDevice before adding or removing a node. Teams without HA experience often benefit from a partner review of the design and the failover tests, even when they perform the build themselves. Ask which of these tests your team has run before.

When should we add a third node instead of a QDevice?

Add a third node when you need reliable quorum for HA as the normal operating model, not only as a tie-breaker. Proxmox VE's High Availability documentation states that HA needs at least three cluster nodes for reliable quorum, along with shared storage for guests, redundant hardware and watchdog-based fencing. A two-node cluster with a QDevice keeps a vote available if one node fails, which suits small estates and some budgets, but it does not give the same margin as three full members. If you plan to grow, to run several HA services at once, or to take nodes down for regular maintenance, price the third node into the design from the start. Confirm the node count against the High Availability requirements before you sign a scope.

What should a partner scope include in a written quote for this work?

A written quote should list the deliverables, not only the hours. Ask for the following in the scope document:

  • The node count, Proxmox VE version, Corosync networks and external QDevice host location
  • The build steps with pvecm, including the encrypted setup and the QDevice attachment
  • A failover test plan that cuts power to a node and checks guest restarts
  • The procedure to remove the QDevice before adding or removing a node, and the reinstall of the vote host
  • Handover documentation, the operational runbook and any retest after the first production change
  • What is excluded, such as shared storage, backups, migrations or the third node

DeployOpen delivers most engagements as fixed scope, with the scope, deliverables and timelines agreed in writing before work starts.

What breaks most often in a two-node cluster with a QDevice?

The most common failures come from the vote host and the network, not from the Proxmox VE software itself. Watch for an external host that shares a failure domain with a node, a QDevice reachable only through a route that changes during maintenance, and firewall rules that block the TCP path between the vote host and the nodes. Another frequent problem is removing a node without first removing the QDevice with pvecm qdevice remove, which can leave the cluster in a state that is hard to recover. Test a failure of each node and of the vote host, record the expected quorum result, and keep the runbook current after every change.

How DeployOpen scopes and delivers a two-node Proxmox VE cluster

DeployOpen plans, builds, documents and supports two-node Proxmox VE clusters with an external QDevice inside your own infrastructure. Each engagement starts from a written scope that fixes the nodes, the QDevice host, the network layout and the handover items before any work begins.

How we scope

  • Confirm node count, hardware, storage type and the network each node uses for cluster traffic.
  • Choose where the QDevice runs, outside the cluster LAN if needed, and confirm the host can reach both nodes over TCP/IP.
  • Agree in writing which Proxmox VE repository, subscription level and encryption setup the cluster will use.

How we build

  • Install the corosync-qnetd package on the external host and corosync-qdevice on each node, then verify package versions match.
  • Create the cluster and attach the QDevice with pvecm, using encrypted setup, and confirm quorum behaves as expected.
  • Test a planned node shutdown and a simulated node failure, then record the results and the vote counts observed.

How we hand over

  • Deliver a runbook covering the QDevice host, its patching order, and the steps to remove the QDevice before any node change.
  • Document the procedure to remove the QDevice with pvecm qdevice remove before adding or removing a node, with a rollback path.
  • Walk your operations team through the quorum checks, the tie-breaking behavior and what to do if the QDevice host is lost.

How we support

  • Engagements are fixed-scope, and the scope lists the deliverables and timelines agreed before work starts.
  • Ongoing upgrades, patching of the QDevice host and periodic failover testing can be covered by a retainer.
  • Ask for a quote that separates one-time build effort from any recurring support, and confirm which items the quote excludes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.