Suspend (save) guest state instead of shutdown/reboot and restore on reboot?

verulian

Renowned Member
Feb 18, 2019
203
38
68
45
I have a situation where it would be very helpful to suspend or save guest virtual machine (and even LXC (if possible) guest) states instead of shutting down the guest operating system and then starting it back up on PVE reboot. Is this currently possible?

KVM/QEMU appear to have this functionality: https://unix.stackexchange.com/ques...-ram-and-cpu-state-to-disk-like-vmware-player

So I suspect I'm missing an option or maybe Proxmox has not yet implemented this functionality?
 
for qemu VMs you can use the hibernation feature:
https://pve.proxmox.com/pve-docs/chapter-qm.html#qm_hibernate

for containers this is not implemented, and since the technology for storing and restoring state for containers (CRIU) does not work reliably to our knowledge it won't be implemented.

I hope this helps!
 
@Stoiko Ivanov thanks for sharing that. Unfortunately it seems as though it has to be done manually. Is there no way to set up the hibernation function to automatically trigger on shutdown so that it also auto-restores on startup/reboot?