[SOLVED] Configure vm shutdown timeout

Leah

Well-Known Member
Aug 1, 2019
56
6
48
After searching the forum I read that the hart timeout before a VM is killed is 3min. In our setup this is by far not enough for some hosts. So my question is, if there is any option to increase this timeout (yes shutdown the vm from the inside is an option too). Killed databases aren't that great.
 
Last edited:
Hi,
qm shutdown <vmid> --timeout <integer> allows you to shutdown the VM with the given timeout in seconds.
 
Thanks for the hint with the VM options. Didn't expected this option under "Start/Shutdown order". I searched for a global option or an option thats exactly named like that. I guess there no way to set a custom default for that?
 
Thanks for the hint with the VM options. Didn't expected this option under "Start/Shutdown order". I searched for a global option or an option thats exactly named like that. I guess there no way to set a custom default for that?
No, but you can directly set it at VM creation if you check the advanced checkbox.
Another option is to set the option via the cli, e.g. qm set 100 --startup down=200
This can be easily scripted to set the timeout for several VMs.
Hope this helps!
 
  • Like
Reactions: Leah