How to move a VM from one cluster to another

iwannabfishn

New Member
Aug 13, 2024
21
1
3
I have 2 Proxmox clusters, they are both connected to the same shared storage (where the disk images for the VM is now located). If I want to move a VM from one cluster to another, can I just move the .conf file from one cluster to another. Will this all the VM to run on the new cluster? I am just trying to figure out the easiest way to move which cluster is running the VM. Thanks!
 
Hi @iwannabfishn ,
The easiest method is not to go behind the curtain and manipulate the files outside of PVE. If you are running PVE9 on both sides, you can remote-migrate the VM, although it does require double the storage. Another option is to Backup and Restore.

If you do decide to circumvent the standard CLI/UI/API methods, you will not only need to move the VM config but also ensure that the disks can be found by the new cluster. You have not specified what type of storage you are using or how it is organized.
Keep in mind that this approach is not encouraged or endorsed and is at your own risk.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Johannes S
(where the disk images for the VM is now located). If I want to move a VM from one cluster to another, can I just move the .conf file from one cluster to another.
Having the datastore mounted on two separate clusters can be really dangerous, since the clusters dont share file locking information. That said, if you are able to make sure they dont try to consume the same resources at the same time, what you suggest is doable.

Out of curiosity, why do you have two separate clusters in this manner? I'd thing it would be more efficient to combine them.
 
  • Like
Reactions: Johannes S
So, I wanted to test a disaster recovery scenario. I have a test cluster of older servers. I wanted to see how hard it would be to stand up a new cluster and get the VMs running off the new server. My shared storage is NFS. I am running 8.4 of proxmox. I am waiting for Veeam to support V9 before I upgrade my cluster. Thanks for the information!
 
  • Like
Reactions: Johannes S
While it may copy more data than technically required it is made for multi-cluster management...
It is using remote-migrate under the hood, one can do the same it via "qm remote-migrate".

Now that we know they use NFS, presuming they are not sharing the same Export across clusters, they may be able to cp/mv/ln the required files. However, as mentioned - IDs may need to be changed both in config file and of the QEMU disks themselves. This would need to be a careful and deliberate process.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Johannes S
Proxmox Datacenter looks like a perfect solution. I hadn't installed the Alpha, but I will install the Beta and see how to use it. This looks like an easier way to manage multiple clusters. Thanks!
 
  • Like
Reactions: UdoB