Copy KVM VM from one iscsi to another

copymaster

Member
Nov 25, 2009
183
0
16
Hi

maybe simple, but i do not know how to do this:

I have 2 iscsi targets configured in proxmox, both with lvm on top.

"ISCSI 1" is used for a KVM Machine 103

Now i want to copy this VM to the second "ISCSI 2" Storage.

Can someone please explain the steps?

Thank you
 
well, a very basic way: backup from 1 and restore to 2

otherwise you have to use dd and similar tools, but let's wait udo for the details, i am not expert :-)

Marco
 
If someone is interested, i managed it as follows:

Storagelayout is:
LVM(ISCSI1) - named LVM1-STORAGE
LVM(ISCSI2) - named LVM2-STORAGE
DIRECTORY - named BACKUP

first, create a local directory storage "Backup"
then, used vzdump --storage BACKUP --snapshot <VMID>
After that, do a
qmrestore --storage LVM2-STORAGE /backup/vzdump-<nameofmachine>.tar <NEWVMID>

With this procedure you are able to copy a running Vm from one ISCSI storage with help of local storage to another ISCSI Storage