Why crontab didnt work for auto start VM?

admjral3

Member
Dec 22, 2020
32
1
13
32
I want to auto start VM window and i add command in crontab but it didn't work pls help.me, thank you
unknown-1.png
 
Just curiosity, what file is that (or how did you open it with nano)? First time I see a crontab with "user-name" column
I solved, just without # and then * * * * * user command,and edit crontab with nano /etc/crontab
 
Whats the Reason for not using the autostart feature in PVE?

Datacenter > Virtual Machine > 400 > Options > Start at boot

//EDIT: Or do you only want to start it at a specific time?
 
I solved, just without # and then * * * * * user command,and edit crontab with nano /etc/crontab
Ok, I usually edit user crontab, so I become root and issue
Bash:
crontab -e
I've the feeling that /etc/crontab could be overwritten if you update the crontab package, not an expert of crontab but maybe you'd better have a look at possible consequences
 
Whats the Reason for not using the autostart feature in PVE?

Datacenter > Virtual Machine > 400 > Options > Start at boot

//EDIT: Or do you only want to start it at a specific time?
Probably he does not have Proxmox reboot every day, but instead someone using the VM and shutting sometime it (the VM ony) down by accident at the end of the working day, then complaining that "does not work" the day after.