CronJob um VM automatisch "Starten" zu lassen

mpl8580

New Member
Oct 2, 2018
6
0
1
43
Sehr geehrte Forenmitglieder,

ich bin Neuling und habe soweit alles hinbekommen, wie ich es wollte und mit Hilfe des tollen Forums.

Was ich leider überhaupt nicht verstehe und hinbekomme ist das automatische starten einer VM per Cron. Wie kann ich das lösen?

Was ich wohl weiss ist das der Befehl dazu: sudo qm start {Nummer VM} ist und das ganze irgendwie in nen crontab -.e muss.

Aber wohin muss die Datei (Pfad) oder ist es doch ne andere (Datei). Kann mir da jemand detailiert weiterhelfen?

Ich danke Euch allen sehr.

Mfg
 
Weil ich VM`s habe, die nur zu einer bestimmten Zeit laufen müssen. Kannst Du mir dabei helfen?
 
Last edited:
Wenn ich unter root einen crontab -e mache und in die Datei 56 09 * * * qm start 300 funktioniert es aber leider nicht. Das ist ja mein Problem
 
Wenn ich unter root einen crontab -e mache und in die Datei 56 09 * * * qm start 300 funktioniert es aber leider nicht. Das ist ja mein Problem

Was funktioniert nicht? Sie werden ja irgendwo eine Fehlermeldung erhalten (syslog)?
 
Es passiert nichts. Keine Fehlermeldung, kein Logeintrag. Ich melde mich über die Shell am Proxmox mit root an und mache über crontab -e diesen Eintrag 56 09 * * * qm start 300 i der erstellten Datei. Ist das richtig so?

Vielen Dank.
 

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!