VM hibernation

skir

New Member
Feb 28, 2018
4
0
1
43
Hello,
Is there any way of making VMs suspend to disk instead of shutdown during pve node poweroff?
Or maybe possible to overwrite default shutdown command to VMs (when clicking Shutdown button in GUI) (qm shutdown <vmid>) to (qm agent <vmid> suspend-disk)?

Thank you
 
Hi,

No we have no suspend but you can workaround it.
Make a snaspshot include memory. Then stop the VM.
To start the VM make a rollback.
 
Hello, thank you for reply.
Ok, then where can I put command for taking snapshot, so this command would automaticaly execute during VM shutdown?
 
You have to write your own scripts there is no start/start hooks.