pdm_pve_lxc_remote_migrate
Migrate an LXC container across Proxmox datacenters using PDM. Specify target bridge and storage mappings. Optionally delete source after success. Dry-run to plan, then confirm to execute.
Instructions
MUTATION: migrate a container to a DIFFERENT PDM-registered remote (datacenter-to-datacenter).
For a VM use pdm_pve_qemu_remote_migrate; for a same-cluster move use pdm_pve_lxc_migrate. target_bridge and target_storage mappings are required (e.g. 'vmbr0:vmbr0', 'local-lvm:local-lvm'). delete=True removes the source after a successful move (irreversible). Dry-run by default (PLAN); confirm=True submits and returns a PDM task reference — track it with pdm_tasks_list (pve_task_status cannot poll a PDM UPID).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmid | Yes | Numeric CTID of the container to migrate, as a string. | |
| delete | No | True deletes container after successful move (destructive). | |
| online | No | True attempts online (restart) migration — real downtime for LXC; else the container must be stopped. | |
| remote | Yes | PDM-registered remote (Proxmox cluster) hosting the container. | |
| confirm | No | False (default) returns a PLAN only; True submits it. | |
| target_vmid | No | CTID on the destination; omit to keep same CTID. | |
| target_bridge | Yes | Source-to-target network bridge mapping, e.g. 'vmbr0:vmbr0'. | |
| target_remote | Yes | Destination PDM-registered remote (a different datacenter). | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. | |
| target_storage | Yes | Source-to-target storage mapping, e.g. 'local-lvm:local-lvm'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |