pdm_pve_lxc_migrate
Relocate an LXC container to another node within the same Proxmox cluster via PDM. Supports dry-run planning and confirmed execution with optional stop-move-start migration.
Instructions
MUTATION: relocate a container to another node within the same cluster, through PDM.
For a move to a different PDM remote/datacenter use pdm_pve_lxc_remote_migrate; to drive a cluster directly without PDM use pve_guest_migrate. The container is moved, not copied — the source node stops hosting it (there is no separate source to delete). LXC has no live migration: online=True does a stop-move-start restart-migration (real downtime); the default (False) requires it already be stopped. Dry-run by default (returns a PLAN); confirm=True submits and returns a PDM task reference — track it with pdm_tasks_list (pve_task_status cannot poll a PDM UPID). Requires the wired PDM remote's token to permit migration (VM.Migrate).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmid | Yes | Numeric CTID of the container to migrate, as a string. | |
| 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. | |
| target | Yes | Destination node name within the same remote's cluster. | |
| confirm | No | False (default) returns a PLAN only; True submits it. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |