[SOLVED] Move VM to Different Cluster

cclloyd

Active Member
Dec 4, 2018
17
1
43
48
If I want to move a VM from 1 cluster to another where the VM would need to have a different ID (because it is taken on the new cluster), how would I do that?

I tried doing a backup, renaming the backup to the new desired ID, then copying the VMID.conf to the new server and renaming it to NEWID.conf, then restoring it. But it seems that the new vm uses the old ID for the disk image in local-lvm, so the restore fails.


What would be the best way to go about moving a VM to a different cluster with a new ID?
 
How did you do the backup? Manually yourself? The build in backup tool would be the right choice. Make the backup file available on the new cluster and restore it. At restore you can define the storage and VMID and such
 
Last edited:
If I want to move a VM from 1 cluster to another where the VM would need to have a different ID (because it is taken on the new cluster), how would I do that?

I tried doing a backup, renaming the backup to the new desired ID, then copying the VMID.conf to the new server and renaming it to NEWID.conf, then restoring it. But it seems that the new vm uses the old ID for the disk image in local-lvm, so the restore fails.


What would be the best way to go about moving a VM to a different cluster with a new ID?
when you restore a backup , you can choose the targetid and storage too

#qmrestore <yourbackup.vma> <vmid> --storage <storage>

no need to edit the vmconfig file.
 
Thanks for he help. Worked using qmrestore but not from the gui for some reason.