Why crontab didnt work for auto start VM?

admjral3

Member
Dec 22, 2020
32
1
13
31
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.
 

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!