New-PveNodesLxcMigrate
Migrate the container to another node. Creates a new migration task.
API: POST /nodes/{node}/lxc/{vmid}/migrate, Proxmox VE API viewer
Aliases: Move-PveLxc
Syntax
Section titled “Syntax”New-PveNodesLxcMigrate [-PveTicket <PveTicket>] [-Bwlimit <float>] -Node <string> [-Online <bool>] [-Restart <bool>] -Target <string> [-TargetStorage <string>] [-Timeout <int>] -Vmid <int> [<CommonParameters>]Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
-PveTicket |
PveTicket |
No | Ticket data connection. |
-Bwlimit |
float |
No | Override I/O bandwidth limit (in KiB/s). |
-Node |
string |
Yes | The cluster node name. |
-Online |
bool |
No | Use online/live migration. |
-Restart |
bool |
No | Use restart migration. |
-Target |
string |
Yes | Target node. |
-TargetStorage |
string |
No | Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value ‘1’ will map each source storage to itself. |
-Timeout |
int |
No | Timeout in seconds for shutdown for restart migration. |
-Vmid |
int |
Yes | The (unique) ID of the VM. |
Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.
Output
Section titled “Output”A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.