Container/VM shutdown nach bestimmter Zeit

Dominik Wimmer

New Member
Feb 8, 2022
11
3
3
23
Liebes Proxmox Team,
gibt es eine Möglichkeit eine VM und einen Container nach einer bestimmten Zeit herunterzufahren? Wenn ich z.B. in meiner Host console
"qm shutdown 100 -h 60" eingebe, soll die VM in 60 Sekunden herunterfahren. Nach ausführen des Befehls kommt diese Fehlermeldung: "Unknown option: h"
welche Option gibt also die Zeit an, wenn die VM herunterfahren soll?

Liebe Grüße von Dominik
 
hi,

du kannst sleep 60 && qm shutdown 100 probieren.

Nach ausführen des Befehls kommt diese Fehlermeldung: "Unknown option: h"
ja, weil es keine solche flag bei dem qm kommando gibt. um die available flags und subkommandos zu schauen: man qm
 

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!