Skip to content

Proxmox VM Migration Pitfalls

Migrating a Proxmox VE virtual machine is not a single qm migrate command. Four forks must be worked in order, and skipping any one of them is what produces the most common migration failures: a stuck progress bar, an IP that no longer reaches the target gateway, a disk that the target storage backend does not accept, or a config parse error from a version mismatch.

External references: Proxmox Migration Documentation, QEMU Block Format Specification, VMware vmdk Format.

Fork 1: Cold or Live Migration

# Cold migration (guest stopped)
qm shutdown <vmid>
qm migrate <vmid> --node <target-node>

# Live migration (guest running, requires --online)
qm migrate <vmid> --node <target-node> --online
# Prerequisite: source and target share storage (Ceph / LVMoCeph / NFS)
#   OR target accepts a full data copy
#   (duration = disk-size / network-bandwidth)

# Decision criteria:
#   Shared storage      -> live migrate (seconds-level switchover)
#   Heterogeneous local disks -> live migrate triggers full copy
#   Guest cannot stop   -> must live migrate; estimate copy time in advance

Why a live migration stalls at 99 percent: the final phase is dirty-page synchronisation. The guest is still writing to memory and the source QEMU must flush the last batch of dirty pages before the switchover. A stalled progress bar at 99 percent that is still showing CPU and network activity on the source is in progress, not broken. If the source process has stopped, the migration was interrupted and you can re-run qm migrate without restoring from backup.

Fork 2: Does Storage Match?

# Check source storage type
qm showconfig <vmid> | grep -E 'scsi|virtio'
# Look at which storage each disk is attached to

# Same shared storage (Ceph / LVMoCeph / NFS)
#   Live migrate directly, no data copy needed
qm migrate <vmid> --node <target> --online

# Heterogeneous local disks (source local-lvm -> target local directory)
#   Live migrate does a full data copy by default (disk size / network
#   bandwidth). Use --bwlimit <KiB/s> to cap bandwidth, --online to avoid downtime.
qm migrate <vmid> --node <target> --online --bwlimit 102400
#   Or use vzdump first, then restore (safer, survives interruption)
vzdump <vmid> --mode snapshot
#   On the target: right-click the VM in the GUI -> Restore, or call the
#   vzdump API / Pvesnippet restore flow. PVE has NO qm restore command.

Fork 3: KVM or VMware Source?

Migrating from VMware to Proxmox (the most common path):

# 1. Export vmdk from VMware (Workstation export or ESXi download)
# 2. Transfer to the Proxmox node
scp vmdk-file user@proxmox-node:/tmp/

# 3. Convert to a Proxmox-supported format (qcow2 recommended for built-in snapshots)
qemu-img convert -f vmdk -O qcow2 /tmp/source.vmdk /var/lib/vz/images/<vmid>/disk0.qcow2

# 4. Create the VM and attach the converted disk
qm create <vmid> --name "Migrated-from-VMware" --memory 4096 --net0 virtio,bridge=vmbr0
# Import the vmdk into storage management (qm importdisk converts and registers)
qm importdisk <vmid> /tmp/source.vmdk local-lvm
# importdisk produces <vmid>-vm-disk-0.raw; attach it
qm set <vmid> --scsi0 local-lvm:<vmid>-vm-disk-0

# 5. Verify
qm start <vmid>

Why attaching vmdk directly is a problem: QEMU has a vmdk block driver that can read vmdk files, but the extra format-parsing layer degrades random-read latency significantly. vmdk also has no built-in snapshot support in Proxmox. In production, always convert to qcow2 before attaching.

Fork 4: MAC Address and IP

# qm migrate preserves MAC by default; verify:
qm showconfig <vmid> | grep net0
# Check that the MAC matches the source

# Check the actual IP inside the guest
ssh guest-ip "ip a"
# If source and target subnets differ, the static IP is invalid on the target

# Two options:
#   a) Reconfigure the IP inside the guest:
#      nmcli con mod <connection-name> ipv4.addresses <new-IP/prefix>
#      nmcli con up <connection-name>
#   b) Add a static route on the target subnet router pointing to the
#      source gateway (when the guest IP cannot be changed)

# DHCP scenario: MAC is preserved but the target subnet DHCP pool
#   may not have a lease for this MAC -> guest gets no address
#   Fix: add a static MAC-to-IP mapping in the target DHCP pool

Four High-Frequency Failure Cases (based on typical production scenarios)

Case 1: Live migration stuck at 99 percent for twenty minutes A 500 GB data disk on a source with heterogeneous local-disk target. The live migration was performing a full data copy at 1 Gbps, theoretical completion time approximately 40 minutes. The 99 percent stall was the final dirty-page sync phase. The source QEMU process was still active and network IO was still moving, so the migration was in progress, not broken. After approximately 25 more minutes the progress reached 100 percent and the VM switched to the target node successfully.

Case 2: vmdk attached directly to Proxmox, random-read latency 8x worse than qcow2 A vmdk file was attached without conversion. QEMU's vmdk block driver added a format-parsing layer that increased random-read latency from 1 ms to 8 ms. Resolution: qemu-img convert to qcow2, reattach the disk, latency returned to 1.2 ms. Conversion of a large vmdk over 100 GB takes considerable time; schedule in advance.

Case 3: After cold migration the guest IP is still on the source subnet Source subnet 192.168.1.0/24, target subnet 10.0.1.0/24. The guest static IP 192.168.1.50 is invalid on the target subnet. Resolution: reconfigure the guest IP to 10.0.1.50, or add a static route on the target subnet router for 192.168.1.0/24 via the source gateway. MAC address was preserved by qm migrate; in DHCP environments the target subnet DHCP pool must have a lease or static mapping for the preserved MAC.

Case 4: Target node version older than source (8.4 source to 8.2 target) Proxmox 8.4 introduced configuration fields that the 8.2 qm binary does not recognise, causing a config parse error and migration failure. Resolution: upgrade the target node to 8.4 before running the live migration, or use the vzdump backup plus restore path instead of qm migrate. vzdump produces a .vma.zst archive; restoration goes through the GUI or the vzdump API flow (PVE has no qm restore subcommand), so version compatibility with the target node is not a blocker.

Originality Statement

This article is fully original. The four-fork decision tree is built around KVM, VMware, and Proxmox heterogeneous migration scenarios. The vmdk conversion path and MAC/IP drift resolution procedures are drawn from the author's production environment experience and are not a rewrite of any existing article.