Migrating your VMs to a new Proxmox instance is a straightforward process if you follow the correct steps. This guide will walk you through backing up your VMs, installing the new Proxmox environment, and restoring your VMs efficiently. Let’s get started!
Connect the USB Disk to Your Proxmox Server:
lsblk
mkdir /mnt/usb
mount /dev/sdX1 /mnt/usbReplace /dev/sdX1 with the actual device name of your USB disk.
Backup Each VM:
vzdump <vmid> --dumpdir /mnt/usbThis will create a .tar.lzo or .tar.zst file for each VM.
Verify Backups:
ls /mnt/usbUnmount the USB Disk:
umount /mnt/usbCreate a bootable USB stick using tools like Rufus (Windows) or dd (Linux):
dd if=proxmox-ve.iso of=/dev/sdX bs=4M status=progressReconnect the USB Disk:
mount /dev/sdX1 /mnt/usbTransfer Backups (Optional):
cp /mnt/usb/*.tar.lzo /var/lib/vz/dump/Restore Each VM:
qmrestore /mnt/usb/<backup-file>.tar.lzo <vmid> --storage <storage-name>Check the VM configuration:
qm config <vmid>Start the VM:
qm start <vmid>Unmount the USB Disk:
umount /mnt/usbUpdate Proxmox:
apt update && apt dist-upgrade -yInstall QEMU Guest Agent on VMs:
apt install qemu-guest-agentBy following this guide, you can successfully migrate your VMs to a new Proxmox installation while maintaining data integrity and minimizing downtime.