Scheduled Reboots

CameronMG

New Member
Nov 15, 2022
19
0
1
Hi Everyone,

So I've been using Proxmox VE for a good few months now since transitioning from an ESXi environment. I have two nodes, one which predominantly handles Windows VMs and one that handles Linux VMs and containers.

I've currently got a task setup on all of the Windows VMs which are set to reboot every Sunday morning, however I'd like to reboot the node which has the windows VMs on it as well. I know this is not necessary, however this is something that I'd like to do as I check for updates weekly on the hosts.

At this stage, i'm not sure about how would be the best way about going about this. Would a cron job be suitable or is this something that I'm going to have to do manually (which I could be doing without). Effectively, I'd like to have the VMs shut down, the host to restart and then I'd just set the VMs to start "On start" etc.

Any assistance would be greatly appreciated.
 
Then write a line to /etc/crontab that tells the server to reboot. Something like 0 4 * * * root /usr/sbin/reboot to reboot the server each day at 04:00. Thats how it's done for nearly 50 years.
 
Last edited:
  • Like
Reactions: MALOW
Then write a line to /etc/crontab that tells the server to reboot. Something like 0 4 * * * root /usr/sbin/reboot to reboot the server each day at 04:00. Thats how it's done for nearly 50 years.
Many thanks for the heads up on this. Tested it earlier on with my test box and worked perfectly!
 

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!