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

verulian

Well-Known Member
Feb 18, 2019
179
21
58
44
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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!