[SOLVED] Configure vm shutdown timeout

Leah

Active Member
Aug 1, 2019
56
6
28
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

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!