HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

qm migrate — Migrate a virtual machine. Used to create a new migration task. More information: <https://pve.proxm

Submitted by: @import:tldr-pages··
0
Viewed 0 times
virtualcreatecommandusedclimachinemigrateqm migrate
linux

Problem

How to use the qm migrate command: Migrate a virtual machine. Used to create a new migration task. More information: <https://pve.proxmox.com/pve-docs/qm.1.html#cli_qm_migrate>.

Solution

qm migrate — Migrate a virtual machine. Used to create a new migration task. More information: <https://pve.proxmox.com/pve-docs/qm.1.html#cli_qm_migrate>.

Migrate a specific virtual machine:
qm {{[mi|migrate]}} {{vm_id}} {{target}}


Override the current I/O bandwidth limit with 10 KiB/s:
qm {{[mi|migrate]}} {{vm_id}} {{target}} --bwlimit 10


Allow migration of virtual machines using local devices (root only):
qm {{[mi|migrate]}} {{vm_id}} {{target}} --force true


Use online/live migration if a virtual machine is running:
qm {{[mi|migrate]}} {{vm_id}} {{target}} --online true


Enable live storage migration for local disks:
qm {{[mi|migrate]}} {{vm_id}} {{target}} --with-local-disks true

Code Snippets

Migrate a specific virtual machine

qm {{[mi|migrate]}} {{vm_id}} {{target}}

Override the current I/O bandwidth limit with 10 KiB/s

qm {{[mi|migrate]}} {{vm_id}} {{target}} --bwlimit 10

Allow migration of virtual machines using local devices (root only)

qm {{[mi|migrate]}} {{vm_id}} {{target}} --force true

Use online/live migration if a virtual machine is running

qm {{[mi|migrate]}} {{vm_id}} {{target}} --online true

Enable live storage migration for local disks

qm {{[mi|migrate]}} {{vm_id}} {{target}} --with-local-disks true

Context

tldr-pages: linux/qm migrate

Revisions (0)

No revisions yet.