cronjob, um VM zu starten, stoppen etc.

Peter123

Well-Known Member
Mar 5, 2018
47
2
48
54
Was muss im crontab als Befehl eingetragen werden, um VMs zeitgesteuert zu starten, stoppen etc?

Z.B. "00 20 * * * vm start 102" geht nicht, weil vm als Befehl nicht erkannt wird. Im syslog steht dann: "/bin/sh: 1: qm: not found"
 
war nur ein typo hier im Forum :) Ich hatte qm eingegeben, wie man ja auch im syslog-Eintrag sieht
 
Der qm Befehl muss als root ausgeführt werden. Der Pfad ist /usr/sbin/qm

Note: /usr/sbin/ ist nicht im default cron path
 
Danke, jetzt lüppt´s.

Wäre schön, wenn so eine Zeitsteuerung in die GUI eingebaut werden könnte.

Ein backup-Server als VM muss ja nicht den ganzen Tag laufen :)
 

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!