Proxmox VE HA node and resource affinity rules

Affinity rules in Proxmox VE 9.0 and later control which cluster nodes HA guests can run on and which guests must stay together or apart. This page covers how to design, configure and verify them.

On this page

What Proxmox VE HA affinity rules control and when teams need them

Some guests in a high availability cluster cannot run anywhere. A virtual machine may need a GPU or other PCI device passed through from one specific host, a workload may depend on local storage that only one node has, or two database replicas may need to stay on separate nodes so one failure cannot take out both. Proxmox VE introduced HA affinity rules in version 9.0, which was released on August 5, 2025, to express these requirements as cluster-level policy instead of leaving them to whoever last moved a guest by hand. Before you plan around them, remember that HA itself needs at least three cluster nodes for reliable quorum, shared storage for guests, redundant hardware, and watchdog-based fencing so a failed node is reset before its guests restart elsewhere.

Affinity rules differ from manual placement in that the HA manager enforces them on every recovery and rebalancing decision, not just on the day someone sets up the guest. A manual migration or a preferred node setting can be undone by a failover, a node reboot or a maintenance action, and nothing warns the operator when that happens. A rule tells the cluster where a guest may or may not run, so the constraint survives failures. The practical question for your team is which guests truly need a node-bound or separated placement, and which only need a preference that can yield under pressure. Inventory each HA guest for passthrough devices, local disks and peer relationships before writing any rule.

Teams usually need these rules in three situations: when hardware or local resources tie a guest to a node, when redundant peers must be kept apart, and when a set of related guests should move together. Each rule type also carries a cost. A rule that pins a guest to one node can leave that guest stranded if the node is down, and too many rules can make some failures impossible to recover from automatically. Confirm in the current Proxmox VE HA documentation how the 9.x rule types, their strictness and their conflict handling behave in your version, and test each rule by failing a node in a lab before go-live.

Node affinity, resource affinity and how they combine

Proxmox VE HA affinity rules answer two different questions: which nodes a guest may run on, and which HA guests must share or avoid a node. The two families interact, so a plan that treats them separately can leave a guest with nowhere valid to restart.

Node affinity rules

Node affinity pins HA guests to a defined set of nodes, optionally with priorities that order the preferred targets. It fits guests that need a passthrough device, a local disk or a particular hardware profile that only some nodes provide. Before you rely on it, list which nodes meet each guest's requirements and confirm how the installed version handles a node that is down or in maintenance. Exact rule syntax and option names must be confirmed in the Proxmox VE High Availability documentation for your version.

HA documentation

Resource affinity rules

Resource affinity rules keep selected HA resources together on one node or apart on different nodes. Together rules suit tightly coupled application tiers that perform badly when split across hosts. Apart rules suit redundant pairs, such as two directory or database replicas, that should not fail together. Confirm the rule type names and how strictly each is enforced in the version you deploy.

HA documentation

Priorities and preferred targets

Priorities decide which eligible node a recovered guest moves to first. A priority order is only useful if the preferred nodes have enough free memory and CPU for the guest, so check capacity on each node, not only on the primary. Ask how the scheduler breaks ties between nodes with equal priority, and test a failover to confirm the placement you expect.

Conflicts between rules

A guest can be bound by several rules that cannot all be satisfied at once, for example a together rule that pulls two guests toward a node that a node rule excludes. Plan the rule set on paper before creating it, and list which combinations are invalid. Check how the cluster reports a conflicting rule and what happens to guests it affects during a node failure.

Testing the combined rule set

Verify placement with controlled tests: stop a node in a lab copy of the cluster, watch where each HA guest restarts, and compare the result with the written plan. Repeat the test after each rule change and after adding a node. Record the results, because they show whether rules still hold after an upgrade or a hardware change.

Affinity rule options and when each one fits

This table compares the affinity rule options for HA guests in Proxmox VE 9.0 and later, matching each option to the situation it serves, such as passthrough GPUs, licensing limits or failure isolation. Read each row against your hardware and failure plan, then check the stated behavior against the installed version before you rely on it. The main takeaway is that strict placement protects local resources, but a guest can stay stopped if no eligible node remains.

Rule optionSituation it servesTrade-offConfirm for your version
Node affinity with priorityGuests that should prefer a node with specific hardware or spare capacity but may run elsewhere after a failure.Failover goes to lower-priority nodes, which may have less capacity or different hardware.How priority values are ordered and how ties are resolved.
Node affinity, strictGuests tied to a passthrough GPU, USB device, local NVMe or a host group bound by license.If no listed node is available, the guest stays stopped instead of moving.Whether strict placement blocks recovery and how the stopped state is reported.
Node affinity, non-strictGuests with a preferred node where running elsewhere during an outage is acceptable.Failover can place the guest on nodes outside the preferred list.The fallback order when all preferred nodes are unavailable.
Resource affinity, togetherApplication tiers or a VM and its helper container that must share a host for latency or coupling.A node failure or capacity shortfall affects the whole group at once.How together rules interact with node rules and memory or CPU checks at start.
Resource affinity, separateRedundant pairs such as two domain controllers or two firewall VMs that must not share a host.Needs enough eligible nodes for every separated guest, or one guest stays stopped.The behavior when there are fewer eligible nodes than separated guests.
Local resource caseGuests using host-local disks or devices that cannot live-migrate.Maintenance and failover need strict placement or manual planning to avoid stranded guests.Which local resources block migration and how HA reports them during shutdown.
Conflicting rulesTogether and separate rules, or node rules, that point guests at incompatible nodes.Conflicting rules can leave guests stopped or cause rejected changes.Whether the version validates conflicts when saved and during failover.

Placement patterns for passthrough, local storage and failure isolation

Some guests depend on hardware that exists in only one host, such as a PCI device passed through to a VM, a GPU, a USB license dongle, or a local LVM or ZFS volume holding data the guest needs. A guest like that cannot restart on another node unless the same device or storage is present there, so placement starts from a hardware inventory rather than from the cluster layout. Illustrative example: a licensed engineering application bound to a USB dongle in one host.

  • Map each dependency first: Record every passthrough device, PCI address and local volume the guest uses, and identify which nodes provide the same resource.
  • Pin only when the dependency is real: Restrict placement to nodes that hold the device, then confirm the remaining node set still gives a recovery target.
  • Verify matching hardware: Compare device IDs, firmware and IOMMU grouping on every candidate node, and confirm driver behavior with the hardware vendor and on a test host.
  • Prefer shared storage for disks: HA requires shared storage for guests, so a guest whose disk lives only on a local volume has no automatic recovery path to another node.

Before go-live, check that the pinned node set survives the failure you plan for, and force a failover for each pinned guest to see what happens.

How the HA manager evaluates affinity rules on node failure

The diagram starts when a cluster node fails and is fenced by its watchdog, so its guests are no longer running. The HA manager then collects the HA resources that were on that node and checks each one against the node and resource affinity rules that apply to candidate nodes. Each guest is either placed on a node that satisfies its rules or reported as unplaceable. Check that every guest has a candidate node that meets its rules before go-live, because a guest with no valid target stays down until the conditions change.

Decision path for placing HA guests after a node fails.

Configuring affinity rules in a Proxmox VE 9 cluster

This sequence takes a Proxmox VE 9 cluster from a prerequisite check to documented HA affinity rules that have been tested against a controlled node maintenance. The result is a rule set you can explain to auditors and operators, with known behavior when a node is taken out of service.

  1. Confirm the cluster meets HA prerequisites

    Before any rule is written, the cluster lead confirms the HA basics: at least three cluster nodes for reliable quorum, shared storage that every HA guest can reach, redundant hardware, and watchdog-based fencing so a failed node is reset before its guests restart elsewhere. Check that each node has a working watchdog and that the HA services report healthy on every node in the Datacenter view. Affinity rules cannot compensate for a cluster that fails these checks, so treat any gap here as a blocker. Done means you have a written list of nodes, storage paths and watchdog status with no open items.

  2. Inventory guests that need pinning or separation

    Work with the application owners to list every HA guest and the reason it needs placement control. Typical reasons include a guest that depends on a PCI passthrough device or a local resource present on only some nodes, a pair of guests that must not share a failure domain, and a group of guests that should stay together for latency. Record each guest ID, its current node, its dependencies and the business owner who approves the rule. Ask the platform team to confirm which local resources, such as local disks or passthrough hardware, exist on which nodes, because a rule that targets a node lacking the resource will not help the guest. Done means every guest in scope has a stated reason and an owner.

  3. Define node and resource affinity rules

    In the Datacenter HA settings, the platform engineer creates the rules that match the inventory. Node affinity rules pin guests to a defined set of nodes, and resource affinity rules keep guests together or keep them apart. Name each rule so its purpose is clear to later operators, and keep the number of rules small enough to reason about. Confirm in the Proxmox VE 9 HA documentation how the rule types and their strictness settings behave in your version before relying on them. Done means each rule exists in the HA configuration, is linked to the guests from the inventory, and matches the approved list.

  4. Check for conflicting rules

    Review the complete rule set for combinations that cannot be satisfied at the same time, such as a keep-apart rule across guests that are also pinned to a single node, or a keep-together group whose members are pinned to different node sets. The platform engineer should walk through each guest and ask which nodes it may legally run on under every rule that applies to it. Adjust the rule set until each guest has at least one permitted node in every scenario you intend to support, and record the reasoning. Done means a reviewer who did not write the rules can trace the allowed nodes for each guest without finding a contradiction.

  5. Validate with a controlled node maintenance

    Schedule a maintenance window with the application owners and place one node into maintenance mode so that its HA guests must move. Observe where each guest lands and whether any guest is left without a valid node. Compare the result against the expected placement from the rule review. Guests that depend on local resources may not move, so confirm in advance which node-bound guests you expect to stay put, and plan how they will be handled. Only disarm HA for cluster-wide work after you have confirmed the rule behavior. Done means every guest has moved as expected or its exception is explained, and the node has been returned to service with HA healthy.

  6. Document the rules and their test results

    Record the final rule set, the inventory and owners, the prerequisite checks, the conflict review and the maintenance test results in a change record kept with your cluster documentation. Include the Proxmox VE version, the date of the test and the names of the people who approved each rule. Note any guest that cannot follow a rule and the compensating control, such as a manual procedure. Store the export or screenshots of the HA configuration alongside the record so that future changes can be compared against a known baseline. Done means the record is complete and an operator who was not involved can explain where each guest runs and why.

How rule conflicts show up and how to resolve them

Conflicting affinity rules rarely produce an error at the moment you save them. They show up later, when a guest does not start after a manual start, or when it stays unplaced after a node failure. A common case is a node pin that a separation rule forbids: the guest is told to run on one node while another rule says it must stay away from the guests that already use that node. Another is a pin to a small set of nodes where one of them is in maintenance or has failed, leaving too few eligible nodes for the resources that depend on them. In both cases the HA manager cannot satisfy every rule, so the affected resource is left in a non-running or error state instead of being placed somewhere it should not be.

After every rule change, check the HA resource state in the web interface or with ha-manager status on a node, and confirm that each affected resource reports a started state on the node you expect. Do this before you rely on the rule in a failover test, not after. Simulate a node outage in a non-production cluster and confirm that each guest is either recovered on an allowed node or left in a state you can explain. Keep a short list of which rules each critical guest depends on, so you can see at a glance which rule blocked a recovery.

Before go-live, confirm how your installed version reports unplaceable resources, because the state names, log messages and the place where the reason appears have changed between releases. Read the HA documentation for the exact version you run, and check the cluster logs after a test failover to see the wording used. Ask your partner or Proxmox support to confirm whether a resource that cannot be placed is retried automatically when capacity returns, or stays stopped until an operator intervenes. That answer decides whether your alerting needs to watch for a stuck resource or only for a failed one.

Security and operational risks of pinning and separation

Affinity rules decide where HA guests can recover, so each rule trades placement control for recovery capacity. The cards below cover the risks that follow from that trade, from capacity and hardware concentration to who can edit rules and how administrators sign in.

Pinned guests shrink recovery capacity

A guest pinned to a small set of nodes can only be restarted on those nodes after a failure. If the pinned nodes are already loaded, the guest may stay down even though the cluster has spare capacity elsewhere. Before go-live, check that each pinned group can run its full workload on the remaining nodes after one node fails, and record the answer as a test result rather than an assumption.

HA documentation

Rules can concentrate hardware risk

Grouping guests on one node, or tying them to a node with a single NIC, a single HBA or one power feed, places several services behind one failure point. Map each rule to the physical components it depends on, including storage paths and network links, and confirm that the rule does not put every member of a service on the same chassis or circuit.

Change control on HA configuration

Affinity rules are cluster configuration, so a single edit can move or stop many guests at once. Treat rule changes like firmware changes: write down the reason, the expected placement, the rollback step and the reviewer. Keep the rule definitions in version control where your process allows it, and test each change in a non-production cluster first.

Protect HA settings in the management plane

Anyone who can edit HA resources or rules can change where production guests run and which guests stop during a failure. Limit these rights to a small administrator group using Proxmox VE's permission model, and review who holds them each quarter. Remove standing rights from accounts that no longer need them, and log configuration changes in your central logging system.

Two-factor sign-in for administrators

Proxmox VE supports TOTP, WebAuthn, YubiKey OTP and recovery keys as second factors, and it can authenticate users against Linux PAM, the built-in authentication server, LDAP, Active Directory and OpenID Connect realms. Require a second factor for every account that can change HA rules, and confirm that recovery keys are stored offline with named custodians.

User management docs

Monitor HA state continuously

A rule that is violated or unsatisfiable can leave guests in a state that only shows up after the next failure. Check HA resource states, pending migrations and fencing status on a schedule, and alert when a guest is not in the state your rules expect. Confirm which alerts your monitoring stack can read from the cluster and which need a custom check.

Questions teams ask before configuring HA affinity rules

What does affinity rule work cost and what drives the effort?

The cost is the labor to design, configure and test the rules, and it rises with the number of cluster nodes, the number of guests that need pinning or grouping, how varied the hardware is, and how deep the testing goes. Pinning guests to nodes that carry passthrough devices or local storage adds planning, because each rule must be checked against the resources every node actually has. Most engagements are fixed-scope, so the written scope lists the nodes, guests, rules and test cases covered, and a quote follows from that scope. DeployOpen does not publish a price list. Ask for the quote to separate one-time design and build work from any retainer for later changes or retesting.

How long does validation take for HA affinity rules?

Validation time depends on how many rules exist, how many failure scenarios must be tested, and whether test windows are available on production-like hardware. A small cluster with a few rules is quicker to validate than a cluster where guests must stay together or apart across several nodes and where rule conflicts need to be forced on purpose. Tests should cover a planned node shutdown, an unplanned node failure, and a rule conflict where two constraints cannot both be met. Ask the partner to state the test matrix and the schedule in writing before work starts, and confirm which windows your team can give for node reboots and failover tests.

What must our internal team provide before the work starts?

Your team should provide a current inventory of nodes, CPU and memory, passthrough devices, local storage and network links, plus the list of HA guests and the business reason each one needs placement. You also need change windows for node reboots and failover tests, and test access to the cluster through the web interface or API with an account that can change HA settings. Confirm which guests can be stopped during testing and who approves rule changes in production. Missing inventory is the most common cause of rework, because an affinity rule that targets a node without the required device will not do what the design assumes.

Can our in-house team configure HA affinity rules without a partner?

Yes, a team that already runs Proxmox VE clusters can configure affinity rules in-house, since the rules are set through the cluster's HA configuration and the same administration tools. The harder part is testing: proving that a rule holds during a failover, that a conflict resolves the way you expect, and that maintenance on a pinned node does not strand a guest. Decide whether your team has spare capacity for that testing and whether it has written procedures for node maintenance. A partner is most useful when the cluster has many pinned guests, mixed hardware, or a compliance review that needs documented test evidence.

What does a Proxmox VE subscription change for affinity rules?

A subscription does not change which HA features are available, because all Proxmox VE subscription tiers include the same software features, and the software can be used without a subscription. What differs between tiers is support entitlement, including the number of support tickets and the response time, and access to the enterprise repository, which is the recommended repository for production. Check the current tier details on the vendor pricing page before you budget, since the subscription is priced per CPU socket per year. Confirm whether your team needs ticket support during a failover incident, because that determines the tier you need.

Which engineering checks should I run after affinity rules go live?

Check that every rule appears in the HA configuration, that each pinned guest has a target node with the device or storage it needs, and that the cluster reports healthy quorum before and after the change. Then run a controlled node shutdown and confirm where each guest lands, and test one deliberate conflict to see how the scheduler resolves it. Record the results with the rule version and date. Repeat these checks after every node addition, hardware swap or rule change, because an earlier passing test does not prove a new rule will hold.

What are the main risks of pinning guests to specific nodes?

The main risk is that a pinned guest has fewer places to run, so a single node failure or maintenance window can leave it without a valid target. Rules that keep guests apart can also conflict when the cluster is short of nodes, and a conflict may leave a guest stopped rather than moved. Local storage or passthrough devices tie a guest to one host, which limits recovery options. Document each exception, decide in advance which guests may stay down during a failure, and confirm the escalation path with your operations team.

Official Proxmox VE sources for affinity and HA behavior

Start with the Proxmox VE High Availability wiki before you write any affinity rule. It describes how HA depends on at least three cluster nodes for reliable quorum, shared storage for guests, redundant hardware, and watchdog-based fencing so a failed node is reset before its guests are recovered elsewhere. Those prerequisites set the limits within which node and resource affinity rules can work. Read the page for the exact rule types, their precedence and how the HA manager resolves conflicts, then compare it with the configuration you plan to deploy. Where the wiki and your version disagree, the version's documentation governs.

Next, read the Proxmox VE administration guide introduction for the platform model that the HA manager relies on. It explains the multi-master cluster design, where the Proxmox Cluster File System replicates configuration to every node, and it lists the storage types that guests can use. Affinity decisions depend on those facts, because a rule that pins a guest to a node is only useful if the guest's disks are reachable from that node. Confirm in the guide which storage types you intend to use, and confirm which node-local resources, such as passthrough devices or local ZFS or LVM volumes, would block a guest from moving.

Finally, read the release notes for the exact Proxmox VE version you run, and repeat that check after each upgrade. Affinity rules were introduced in Proxmox VE 9.0, which was released on August 5, 2025, so older clusters do not have them and any documentation you find for earlier releases will not describe them. Point releases such as 9.1 and 9.2 can change scheduling behavior, so confirm the behavior on your own version in a test cluster before you rely on it in production. Record the version and the sources you checked in your change record.

How DeployOpen scopes and delivers Proxmox VE HA placement

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including Proxmox VE clusters. For HA node and resource affinity rules, we start from which guests must stay on specific hardware, which must stay apart and which must move together, then build and test those rules in your cluster before handing them over.

How we scope

  • Inventory which guests need passthrough devices or local resources and which nodes can host them.
  • Map guests that must run together or apart, such as redundant pairs, and record each as a planned rule.
  • Agree the scope in writing before work starts, since most engagements are fixed-scope.
  • Confirm the Proxmox VE version and HA prerequisites with your team, including the node count and shared storage.

How we build

  • Create the affinity rules in a test cluster first, then review how HA behaves after a simulated node failure.
  • Check for rule conflicts, such as a guest that must be on a node that another rule excludes.
  • Verify placement against fencing and watchdog status so guests recover only after a failed node is reset.
  • Test maintenance and shutdown cases where local resources prevent a guest from moving.

How we hand over

  • Deliver a written placement map listing each rule, the guests it covers and the reason for it.
  • Document the recovery behavior you should expect after failures, with the steps to validate it.
  • Run a walkthrough with your platform and operations teams so they can change rules safely later.
  • Provide a test checklist your team can repeat after upgrades or hardware changes.

How we support

  • Review affinity rules when you add nodes, change hardware or move to a newer Proxmox VE release.
  • Retest placement after upgrades, since rule behavior should be confirmed on each target version.
  • Ongoing support, upgrades and continuous testing are available as a retainer.
  • Confirm support terms and response expectations with DeployOpen in the written quote.

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.