How to migrate LXC containers between Proxmox VE nodes
To migrate an LXC container between Proxmox VE nodes, you move it from one cluster node to another while the cluster keeps its configuration in sync, and the service inside the container is interrupted for the duration of the move. Teams usually need this when a node must be taken out for maintenance, when one host is running short of CPU or memory, or when hardware is being refreshed. The key question before you start is what your container's storage looks like, because that decides how the data reaches the target node and how long the service is down. Unlike a live VM migration, which can keep a KVM guest running while its memory is copied, a container migration in Proxmox VE is an offline or restart-style move. Confirm the exact behavior for your Proxmox VE version in the Proxmox VE administration guide and test it on a non-production container first.
Plan the move around three facts about your environment. First, list every mount point and local volume the container uses, since local volumes are copied over the network to the target while the container is stopped, and the copy time grows with their size. Second, check whether the target node has enough free storage under the same storage ID or whether you need to choose a different target storage. Third, decide who owns the service outage: tell application owners the expected window, and confirm with a test run how long the container takes to stop, transfer and start. Bind mounts from the host do not move with the container, so the target node must already provide the same path with the same permissions, and unprivileged containers need matching UID mapping on the target. Shared storage, such as a network storage backend available on every node, simplifies the move because less data has to be copied. Confirm the storage types and HA behavior for your setup in the Proxmox VE High Availability wiki, because HA recovery depends on shared storage and fencing being in place.
Choosing between offline, restart and HA-driven moves
Planned maintenance is the most controlled case. The node is healthy, the operator chooses the window, and the goal is to empty the node so it can be patched, rebooted or repaired without taking services down for longer than needed. For containers, the operator normally stops the container on the source node and starts it on the target, which means the service is unavailable for the duration of the move and the restart. The operator sets the timing and can notify application owners in advance.
- Trigger: a scheduled patch window, a hardware repair or a planned reboot of the source node.
- Operator action: check the target node has enough free memory, CPU and storage, then move each container and confirm it starts and serves traffic.
- Expected interruption: the container is down from stop to start on the target. Confirm the actual duration in a test with your own container sizes and storage.
- Storage requirement: a local volume must be copied to the target over the network, or the container must use shared storage that both nodes can reach.
- Live migration: treat live migration of containers as a point to confirm with current Proxmox documentation before planning a zero-downtime window.
Before the window, confirm which containers use local storage, which use bind mounts, and which will stay on the source node. Verify the result by checking service health after each move.
Rebalancing moves containers to spread load when one node runs hot or when a new node joins the cluster. The trigger is usually a capacity observation rather than a fault, so the operator has time to plan. Because the source node is still healthy, the move follows the same stop, copy and start pattern as maintenance, and the operator decides which containers to move and in what order.
- Trigger: sustained high CPU or memory pressure on one node, or a newly added node that needs workload.
- Operator action: pick containers whose resource needs fit the target, move them one at a time and watch the target's load after each move.
- Expected interruption: the same restart-based outage as planned maintenance. Schedule rebalancing outside peak hours for user-facing services.
- Storage requirement: the target must reach the container's storage. Large local volumes make the copy longer, so measure copy time for your largest volumes.
- Dynamic balancing: the Proxmox VE 9.2 dynamic load balancer, announced in the Proxmox press releases, is a separate feature. Confirm how it selects and moves guests before relying on it.
Rebalancing is a good time to review which containers should move at all. A container with a large local disk may be better left alone, and the decision should follow from the storage analysis, not from the CPU graph alone.
Recovery after a node failure is driven by high availability rather than by an operator choosing a move. The Proxmox VE High Availability design needs at least three cluster nodes for reliable quorum, shared storage for guests, redundant hardware and watchdog-based fencing. Fencing resets the failed node before its guests are recovered elsewhere, which prevents the same guest from running on two nodes at once. The outage is the time needed to detect the failure, fence the node and start the guest on another node.
- Trigger: a node stops responding or loses quorum, and the HA manager decides its guests must recover.
- Operator action: confirm the cluster state, check that the failed node is fenced, and verify recovered guests start correctly.
- Expected interruption: longer than a planned move, because detection and fencing happen first. Ask your team to measure this in a test on your hardware.
- Storage requirement: HA recovery depends on shared storage that the other nodes can read. Containers on node-local storage cannot be recovered elsewhere from that disk.
- Container-specific check: confirm in the HA documentation which container configurations are supported for HA, since containers and VMs may differ.
An HA-managed container on local storage is a design gap, not a recovery plan. Check the HA resource list and storage layout before an incident, not during one.
Migration options compared for container moves
This table compares the ways an LXC container can move between Proxmox VE nodes, from a stopped move to HA-managed relocation. Read each row against your storage layout and tolerance for interruption, then use the verification column as the checklist to run after the move.
| Move type | When it fits | What interrupts service | Storage it needs | What to verify afterward |
|---|---|---|---|---|
| Offline move | Maintenance windows where the container can be stopped and downtime is acceptable | Full stop for the whole copy and start on the target | Target node must reach the volume, or the root disk and mount points must be copied | Container starts, network config matches the target, mount points present |
| Restart move | Containers that tolerate a planned restart and need to change node without manual copying | Container is stopped, moved and started, so the outage covers the transfer | Local volumes are copied over the network to the target storage | Application health checks, IP and VLAN reachability, bind mount paths and permissions |
| Move with local volumes copied | Containers on node-local storage such as LVM-thin, ZFS or directory storage | Downtime scales with the amount of data copied, so confirm sizes before scheduling | Free space on target storage at least matching the source volumes | Volume sizes and storage IDs, backup job targets updated, old volume removed only after checks pass |
| Move on shared storage | Clusters with network storage where the volume is already visible from every node | Limited to stop and start of the container, since no data is copied | Shared storage such as NFS, iSCSI, Ceph RBD or CephFS reachable from both nodes | Storage mounted on the target, ownership and UID mapping for unprivileged containers, quotas |
| HA-managed relocation | Containers registered as HA resources that must recover automatically after a node failure | Relocation is a restart on another node, and a failed node is fenced before recovery | Shared storage for guest disks, since HA cannot rely on local volumes | HA resource state, quorum, watchdog status, and the container running on the expected node |
| Migration of a running container | Only where the platform documents live migration for the container type and storage | Confirm the behavior for your Proxmox VE version before planning, since it differs from VM live migration | Confirm storage requirements in the current Proxmox VE documentation | Confirm with Proxmox VE documentation and a test move in a non-production cluster |
Steps to plan and run a container migration in a cluster
This sequence moves an LXC container between cluster nodes with a known starting state, a current backup and a verified result. Each step ends with a check so the service owner can confirm the container runs as expected on the target node.
Confirm cluster health and quorum
Before touching any container, the operator confirms that every node is online, the cluster has quorum, and no node is in a degraded state. Run
pvecm statuson a node and confirm the expected vote count matches the number of members, then check that the web interface shows all nodes green. Also confirm there are no pending HA errors or failed jobs from earlier work. The step is done when quorum is reported and no node is missing from the membership list.Check target node storage and free capacity
The operator compares the storage IDs configured on the source and target nodes, since a container's root disk and mount points must resolve to storage that exists on the destination. Run
pvesm statuson the target node and confirm each required storage is active and has enough free space for the root volume plus any local volumes that will be copied. Confirm the storage type matches what the container uses, for example a directory or ZFS pool. The step is done when every storage the container needs is listed as active on the target with headroom to spare.Review mount points and bind mounts
Bind mounts point to paths on the source host, so they do not move with the container's root filesystem. The operator lists the container's configuration with
pct config <vmid>and notes everympentry and any bind mount path, then confirms the same host paths exist on the target node with the same permissions and ownership. Unprivileged containers also depend on UID and GID mapping, so the operator checks that the mapping on the target matches the source. The step is done when each mount point has a documented destination on the target that the operator has verified exists.Take a current backup
The operator creates a fresh backup of the container before any change, using the backup mode the service owner has approved. Run a backup from the web interface or with
vzdump <vmid>and confirm the task finishes without errors in the task log. Record the backup file name and storage location so a restore is possible if the migration fails. Restoring a test copy to a different VMID is a useful extra check when the service is important. The step is done when the backup task reports success and the archive is listed on the backup storage.Schedule the window with the service owner
The service owner agrees on a window in which the container may be stopped, because an offline or restart migration interrupts the service. The operator confirms with the owner which applications depend on the container, which clients connect to it, and how they will be notified. Agree on a rollback decision point and who makes the call to return the container to the source node. Ask the vendor or project documentation for the specific downtime expectations of the application. The step is done when the owner has signed off on the window, the contact list and the rollback trigger in writing.
Run the container migration
During the agreed window, the operator starts the migration from the web interface or with
pct migrate <vmid> <targetnode>, adding the target storage option when the local volumes need a different storage name. If the container runs, use the restart option only after the owner confirms that a stop and start is acceptable. Watch the task log until it reports completion, and note any warnings about copied volumes. The step is done when the container shows as configured on the target node and the task log ends with no errors.Verify networking, services and HA state
After the container starts on the target node, the operator confirms it has the expected IP address and default route, and that DNS and any firewall rules still apply. Run
pct exec <vmid> -- ip addrand test connectivity from a client the owner names. Check each service inside the container is running and answering, and confirm the mount points are present and writable. If the container is managed by HA, confirm its resource state in the HA view matches the expected node and status. The step is done when the owner confirms the service works and the HA state reflects the new location.Close out and document the new location
The operator updates the inventory, monitoring and backup jobs so they reference the container's new node and storage, and removes any leftover copies on the source node after the owner accepts the result. Record the task log, the backup reference and the verification results in the change record. Confirm the next scheduled backup runs successfully from the target node. The step is done when the change record is complete, monitoring points to the new node and the first post-migration backup has finished.
How a container move flows across cluster nodes
The move starts on the source node, where the container configuration lives in the shared cluster file system and its root and mount volumes sit on local or shared storage. The cluster configuration then tells the target node which container to start, while the storage copy travels over the migration network, separate from the management network. Before the source instance is retired, check that the container runs on the target, that its mount points and network settings are intact, and that a backup or snapshot exists for rollback.
Container move path across management and storage networks.
How HA changes container recovery after a node failure
High availability can restart a container on another node only when the cluster can agree a node has failed, the guest's storage is reachable from the surviving nodes, and the failed node is fenced first. Each card below is a check to run in your own environment before you rely on HA for containers.
Three nodes for reliable quorum
Proxmox VE HA needs at least three cluster nodes to keep quorum reliable. With two nodes, losing one leaves the survivor unable to decide safely whether the other is down, so HA recovery cannot be trusted. Confirm the cluster has three or more voting nodes, or plan a QDevice for a two-node design, and check that each node has enough spare memory and CPU to absorb containers from a failed peer.
- Minimum cluster nodes
- 3
Shared storage for HA-managed guests
HA can only restart a container elsewhere if its root disk and mount points are on storage every candidate node can reach. A container whose volume sits on node-local storage has nothing to restart from on another host. Confirm each HA-managed container's volumes are on shared storage such as Ceph, NFS or iSCSI-backed pools, and check the storage is defined for all nodes in the cluster.
Watchdog fencing before recovery
Before HA recovers guests, the failed node must be reset by a watchdog so it cannot keep writing to shared storage while its containers start elsewhere. This fencing step is what prevents two copies of the same container from running at once. Confirm that watchdog-based fencing is active on every node and test that a fenced node is reset as expected in a maintenance window.
Local-only containers are not HA-recoverable
A container on local LVM, directory or ZFS storage that is not replicated stays on its original node. If that node fails, HA cannot start it elsewhere because the data is not there. Inventory every container, note its storage type, and decide for each whether it needs shared storage, a scheduled replica with a documented recovery point, or a restore from backup as its recovery path.
Confirm HA group and restart settings
Each HA-managed container is placed in an HA resource with a group that defines which nodes are eligible and in what priority. An ineligible or overloaded target can leave a container stopped after a failure. Confirm the HA groups list the nodes you expect, that the target nodes have capacity, and that you know which containers are set to start automatically after recovery.
Questions teams ask before moving containers
What does moving an LXC container between Proxmox VE nodes cost in effort, and who does the work?
The cost is mostly staff time: someone must inventory containers, map storage, rehearse the move, schedule the window and verify the result. Your in-house team pays that cost directly, while a partner bills it against a written scope. Proxmox VE itself is open source and can be used without a subscription, so software licensing is not the main variable. Subscription pricing is set per CPU socket per year, with Community at 120 euros, Basic at 370 euros, Standard at 550 euros and Premium at 1,100 euros, according to the Proxmox VE pricing page. Ask any quote to separate one-time migration effort from recurring subscription and support costs.
How long does a container migration take to cause downtime?
Downtime depends on the migration mode, the size of local volumes and the network between nodes. An offline migration stops the container, copies its data and starts it on the target, so the outage covers the whole copy. Restart-style moves shorten the window only when storage is shared or replicated. Local volumes must cross the network, so a container with a large root or mount point will be unavailable longer than a small one on the same link. Measure copy time in a rehearsal on your own hardware and network before promising a window to application owners.
What must our team provide before a container move can be scoped?
Provide an inventory of containers with their IDs, resource limits, mount points and dependencies, plus a storage map showing which volumes live on local storage and which sit on shared storage. Add the target node and storage pools, network bridges and VLANs the container needs, and the owners who sign off on each change window. Confirm backup status before any move, since a failed copy is far easier to recover from when a recent backup exists. Also agree who can roll back and how long the rollback window stays open.
Can one in-house administrator move containers alone?
A single experienced Proxmox VE administrator can usually move a few non-critical containers between nodes, provided the cluster is healthy, the target has room and a rollback path exists. The risk rises with the number of containers, shared dependencies between services and the lack of a second person to verify results. Clustering and quorum behavior matter too, because moves on a degraded cluster can fail in ways that need a second pair of eyes. Decide in advance who approves changes, who checks services after each move and who is on call during the window.
What drives the cost and effort of a container migration up or down?
The main drivers are cluster size, storage layout and testing scope. More nodes and storage types mean more target combinations to validate. Local volumes, large mount points and bind mounts increase copy time and need extra attention for file ownership on unprivileged containers. Testing scope grows with the number of applications that must be re-verified after each move. Ask for a quote that lists the containers in scope, the storage types involved, the number of rehearsal runs and the verification steps for each service.
When should we bring in a partner for container migration?
Bring in a partner when containers carry production services with tight windows, when storage is mixed across local, network and replicated pools, or when your team lacks time to rehearse and document each move. A partner also helps when the cluster is part of a compliance scope and evidence of each change is required. DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts.
What breaks most often when a container moves to another node?
The most common failures are missing storage on the target, bridges or VLANs that do not exist on the new node, and mount points whose file ownership no longer matches the container's user mapping. Services that depend on a fixed IP address or a host-specific path also fail quietly. Check each container's configuration against the target node before the move, run a test restore into a staging area and confirm that each service starts and answers requests after the transfer.
How DeployOpen plans and delivers container migrations
DeployOpen plans LXC container migrations between Proxmox VE nodes as a fixed-scope piece of work inside your own cluster. We start from the container inventory, storage layout and downtime each workload can accept, then build, test and document the moves before handing them over.
How we scope
- Inventory of containers, their storage volumes, mount points and current node placement
- Downtime tolerance per workload, agreed with the owners before any move is scheduled
- Written scope listing which containers move, the target nodes and the acceptance checks
- Confirmation of network, storage and cluster prerequisites, including the path used to copy local volumes
- Agreed deliverables and timeline in writing before work starts, as engagements are fixed-scope
How we build
- Test every container move in a non-production copy of the cluster before touching live workloads
- Verify that target nodes see the same storage names and network bridges as the source
- Run offline and restart migrations in a sequence agreed with each application owner
- Check that HA-managed containers are configured on shared storage and tested for failover
- Record the commands, configuration changes and rollback steps used for each container
How we hand over
- Runbook covering each migration method, expected downtime and post-move verification steps
- Post-migration report listing every container, its new node, storage location and test results
- Walkthrough with your platform team so they can repeat moves without us
- Documented rollback procedure for each container, reviewed against your change process
- Handover of configuration and inventory records stored in your own infrastructure
How we support
- Ongoing support is available as a retainer for later moves, node additions and cluster changes
- Retesting of HA behavior and migration paths after Proxmox VE upgrades
- Review of new container templates and mount point changes before they reach production
- Support scope and response expectations confirmed in writing with the retainer agreement
- Ask us to confirm what is covered in each retainer tier before you sign

