Ciao
Hello
there are various possibilities the choice of the correct tool / flow to do the operation depends on which tools / SW you have supplied (such as backup / replica sw), on your infrastructure (vCenter, distance between source and destination) and if you have option to stop the source VM
For example:
- Through a backup and restore using your backup software
- Through a simple SCP
- They use replication tools (See Veeam Backup Replication)
- Exporting the VM to OVA
In all of these then you have to evaluate how much you want it to be automatic.
In theory you could make a script that:
- TI turns off the source VM (powercli)
- TI copies the disk to the second site (scp)
- As soon as the copy is finished, the source VM turns on you (powercli)
- TI turns off the recipient machine (powercli)
- Remove old disk from you (powercli)
- TI hooks the new disk (powercli)
- You turn on the recipient machine (powercli)
Then you have to understand how the OS of the recipient VM reacts to this operation.