desktopVM Migration in Proxmox (Complete Guide)

VM Migration in Proxmox (Complete Guide)

This article explains how to migrate virtual machines (VMs in Proxmox) using GUI and CLI methods, covering clustered, standalone, and offline/manual migration scenarios.

It is suitable for:

  • System administrators

  • IT / security engineers

  • Lab and production environments


1. What Is VM Migration in Proxmox?

VM migration is the process of moving a virtual machine from one Proxmox host to another. Depending on the setup, migration can be:

  • Live migration (VM keeps running)

  • Offline migration (VM is powered off)

  • Manual migration (no cluster / no shared storage)


2. Types of Proxmox VM Migration

Migration Type
Requires Cluster
Requires Shared Storage
Downtime

Live Migration

Yes

Yes

None

Offline Migration

Yes

Optional

Yes

Backup & Restore

No

No

Yes

Manual Disk Migration

No

No

Yes


3. Live Migration (Cluster + Shared Storage)

Requirements

  • Proxmox cluster configured

  • Shared storage (NFS, iSCSI, Ceph, ZFS over iSCSI)

  • Same CPU architecture

  • Same Proxmox version (recommended)


GUI Method (Live Migration)

  1. Select the VM

  2. Click Migrate

  3. Choose the target node

  4. Enable Online migration

  5. Click Migrate

The VM continues running during migration.


CLI Method (Live Migration)


4. Offline Migration (Cluster, No Shared Storage)

This method shuts down the VM and copies disks over the network.


GUI Method (Offline Migration)

  1. Shut down the VM

  2. Select Migrate

  3. Choose the target node

  4. Disable Online migration

  5. Start migration


CLI Method (Offline Migration)


This is the safest and cleanest method when hosts are not clustered.


Step 1: Create a VM Backup (Source Host)

GUI

  1. Select VM → Backup

  2. Choose storage

  3. Mode: Stop (recommended)

  4. Compression: zstd

  5. Click Backup


CLI

Backups are stored in:


Step 2: Transfer Backup to Destination Host


Step 3: Restore VM on Destination Host

GUI

  1. Go to Datacenter → Storage → local → Backups

  2. Select backup file

  3. Click Restore

  4. Choose new VMID or keep original


CLI


6. Manual VM Migration (No Cluster, No Backup)

Used when backup is not possible or disk-level access is required.

High-Level Process


GUI Method (Manual Disk Migration)

Source Host

  1. Enable Disk image on local storage

  2. VM → Hardware → Disk → Move Disk

  3. Target: local, Format: qcow2

Disk appears at:


Destination Host

  1. Create VM with same configuration

  2. Delete auto-created disk

  3. Copy qcow2 file using rsync

  4. VM → Hardware → Move Disklocal-lvm


CLI Method (Manual Disk Migration)


7. Common Migration Issues & Fixes

Issue
Cause
Solution

VM won’t boot

BIOS mismatch

Match UEFI / SeaBIOS

Network missing

New MAC

Update DHCP / static config

Windows disk missing

No VirtIO

Install VirtIO drivers

Slow migration

No compression

Use zstd


8. Best Practices

✔ Prefer backup & restore for standalone hosts ✔ Use live migration only with shared storage ✔ Match CPU type between nodes ✔ Always test migration in staging ✔ Keep Proxmox versions aligned


9. Migration Method Decision Guide

Scenario
Best Method

Production cluster

Live migration

Cluster without shared storage

Offline migration

Standalone hosts

Backup & restore

Disk-level recovery

Manual migration


10. Summary

Proxmox provides flexible VM migration options:

  • Live migration for zero downtime

  • Offline migration for simple clusters

  • Backup & restore for standalone nodes

  • Manual migration for advanced scenarios

Choosing the correct method ensures data safety, minimal downtime, and predictable results.


End of article


REFERENCES

Last updated