How to migrate KVM virtual machines to Proxmox running with DRBD?

  • Thread starter Thread starter valferon
  • Start date Start date
V

valferon

Guest
Hello,

I would like to migrate some of my servers running on KVM to my proxmox cluster.
Looks simple when I see on the wiki : Just create an new VM on Proxmox VE and add the existing disk image to this new VM, set the boot order and start..

The problem is that it doesn't store my image disk on drbd.

Any idea about how to do this?

Thanks.

Valentin
 
Just do a Backup/Restore, using the '--storage' option from qmrestore (see 'man qmrestore')
 
It works perfectly, thanks a lot!

Code:
vzdump --snapshot vmid
qmrestore --storage drbdvg vzdump-qemu-[.....].tar vmid