2025-03-14 21:59:59 -06:00
|
|
|
# qm migrate
|
|
|
|
|
|
|
|
|
|
> Migrate a virtual machine.
|
|
|
|
|
> Used to create a new migration task.
|
|
|
|
|
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
|
|
|
|
|
|
|
|
|
|
- Migrate a specific virtual machine:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[mi|migrate]}} {{vm_id}} {{target}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Override the current I/O bandwidth limit with 10 KiB/s:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[mi|migrate]}} {{vm_id}} {{target}} --bwlimit 10`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Allow migration of virtual machines using local devices (root only):
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[mi|migrate]}} {{vm_id}} {{target}} --force true`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Use online/live migration if a virtual machine is running:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[mi|migrate]}} {{vm_id}} {{target}} --online true`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Enable live storage migration for local disks:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[mi|migrate]}} {{vm_id}} {{target}} --with-local-disks true`
|