Migration without copy

Dec 12, 2024
39
0
6
Hello,
I am wondering if in a PROXMOX cluster with 4 machines if I can migrate a VM from one to another
wihtout copying and referring to the replication done 2 hours before ?
I explain better.
I have 4 nodes in the cluster p1, p2 p3 and p4 .
I have a virtual machine VM1 runniong on p1 and is replicated on p2 every 8 hours.
The replication time 8.00AM , 16.00 PM and 24.00 PM.
Now suppose it is 11.30 AM and I notice that my VM1 got a virus at 10.00. So the replication
is of 8.00AM is good and does not contain the virus.
I want to switch to run VM1 using the replication done on p2 without updating it.
How can I do it ?
If I use the GUI and select "Migrate" it will first update the replica and then switch but then I will
continue having the virus.

Thanks in advance for your help
/Franco
 
1. this is really not what replication is supposed to protect against (you want backups, or backups + snapshots)
2. when replication is enabled, both source and target must have an overlapping state/snapshot. you can just rollback to that snapshot manually on the CLI (after stopping the VM).
 
you'd need to manually rollback each disk of the VM to the snapshot you want. if you don't know how to do it, you should probably restore a backup instead ;)