Suspend, copy and resume a KVM VM

Erk

Renowned Member
Dec 11, 2009
166
6
83
I am trying to work out at the command line, how to suspend a running KVM VM so I can ftp a copy to another machine and resume it. Kind of like how the migrate facility does when you have shared iSCSI/DRBD storage, but obviously much slower using ftp. Is there a command line utility for suspending the VM and resuming it on another server without having to resort to vzdump/qmrestore?

I intend to use ZFS snapshot replication to keep both servers reasonably updated, so I will only be copying a small diff file between them.

What I am looking for is the proxmox equivalent of the virsh save and restore commands that save the memory snapshot of the running VM to disk.
 
Last edited:
Was something like this what you was looking for?

# virsh save {domain-name, domain-id or domain-uuid} filename

This stops the guest you specify and saves the data to a file, which may take some time given the amount of memory in use by your guest. You can restore the state of the guest with the restore (Restore a guest) option. Save is similar to pause, instead of just pausing a guest the present state of the guest is saved.


Did you find any solution?