A alberisca75 Member May 25, 2021 4 0 6 49 May 25, 2021 #1 Hi, is it possible to start and shut down an lxc or vm at a time set by the user? example start at 18 and turn off at 20!
Hi, is it possible to start and shut down an lxc or vm at a time set by the user? example start at 18 and turn off at 20!
oguz Proxmox Retired Staff Retired Staff Nov 19, 2018 5,207 803 118 May 25, 2021 #2 hi, you can have a cron job script calling the API, qm or pct tools can be used to start/stop VMs and containers respectively: Code: qm start VMID qm stop VMID and same for pct with container ID. Reactions: alberisca75 and Tux_1024
hi, you can have a cron job script calling the API, qm or pct tools can be used to start/stop VMs and containers respectively: Code: qm start VMID qm stop VMID and same for pct with container ID.
T Tux_1024 Member Mar 7, 2021 21 24 8 32 Germany May 25, 2021 #3 Hi, I guess you could use crontab to do this: root@pve:# crontab -e add the following: 0 18 * * * pct start <CT-ID> 0 20 * * * pct shutdown <CT-ID> Reactions: alberisca75
Hi, I guess you could use crontab to do this: root@pve:# crontab -e add the following: 0 18 * * * pct start <CT-ID> 0 20 * * * pct shutdown <CT-ID>