qm suspend ?? todisk 1 for all vm possible?

srosco

New Member
Feb 3, 2025
2
0
1
Hello, is it possible to suspend all VMs in a single command (like qm suspend * --todisk 1 could have done it for example)? If possible by respecting the shutdown/startup order as the bulk suspend function does.
Thanks in advance for your help
 
Just be aware that AFAIK, you cannot tell all VMs to suspend to a given disk- they will suspend to whatever backing Storage the vdisk is being hosted on in the VM's Hardware config.

So if you have e.g. a win10 VM with:

C: using storage "local-lvm" for its vdisk, and
drive D: on ZFS, AFAIK both storage locations will be written to when hibernating the VM.

(Or it could be that the hibernation image is only written to the boot disk's storage. Somebody correct me if I'm wrong)
 
Hi,
for each VM, you can configure the VM State Storage in the VM's Options in the UI. That storage will be used for snapshots with RAM and hibernation. EDIT: The default is one of the VM disk's storages, with path-based local storages being preferred.

When hibernating, nothing extra is written to the disk files of the VM. This is not necessary since the full state is saved during hibernation including pending IO and all RAM.
 
Last edited:
  • Like
Reactions: Kingneutron