suspend on host poweroff

michabbs

Active Member
May 5, 2020
134
19
38
Can Proxmox automatically suspend all running vm's (instead of shutting down) on host poweroff/reboot? So that they could be resumed after host power up.
I do not see appropriate config option... On the other hand there is "qm suspend" command, so automating it should not be hard.
 
Can Proxmox automatically suspend all running vm's (instead of shutting down) on host poweroff/reboot? So that they could be resumed after host power up.
I do not see appropriate config option... On the other hand there is "qm suspend" command, so automating it should not be hard.

not yet but its no the roadmap.
 
Here is minimal solution - for those who do not want to wait:
Code:
#!/bin/sh
#
for A in `qm list|sed -e 's/^ *//'|grep " running "|cut -d ' ' -f 1`; do
    /usr/sbin/qm suspend $A --todisk 1
done
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!