Rebooting Servers
-
On Linux, I like to use a cronjob, for example. We do a full system update and then reboot so that we know it's got the latest patches just before the weekly reboot.
-
I like weekly for several reasons, but the biggest is because it is predictable and easy to understand. Monthly or lunar monthly is easy to forget.
-
I reboot everything Monthly when I apply Windows updates.
The non-Windows stuff gets updates sooner (dnf-automatic/yum-cron) but I do not bother to reboot them until I am in the Widows VMs to do the same.
I also reboot the Hypervisor at that time.
I do not usually reboot switches and routers, just because they are stable because of the design.
-
I do my systems here every week
-
I reboot them every month for WIndows Updates. There is always a maintenance time for us so our customers are aware.
Mostly the process is automated through GPO in Windows, for Linux security updates are done via cronjob.
-
I'd like to automate this.
I have Windows Hyper-V running. I'd like to shut down the Windows virtual machines and then when the virtual machines are stopped reboot the host.
Is there a way to detect when all virtual machines have stopped so that the physical machine waits to reboot until they are completely shut down?
-
@ccwtech said in Rebooting Servers:
I'd like to automate this.
I have Windows Hyper-V running. I'd like to shut down the Windows virtual machines and then when the virtual machines are stopped reboot the host.
Is there a way to detect when all virtual machines have stopped so that the physical machine waits to reboot until they are completely shut down?
Use a powershell script since it is windows.
Stop-VM will shut down the VM gracefully (or forcefully).
Get-VM will give you status information.But you don't have to do this.
If you specify the shutdown action in the VM settings, when you tell the host to reboot, it will perform that action first.
-
@jaredbusch said in Rebooting Servers:
@ccwtech said in Rebooting Servers:
I'd like to automate this.
I have Windows Hyper-V running. I'd like to shut down the Windows virtual machines and then when the virtual machines are stopped reboot the host.
Is there a way to detect when all virtual machines have stopped so that the physical machine waits to reboot until they are completely shut down?
Use a powershell script since it is windows.
Stop-VM will shut down the VM gracefully (or forcefully).
Get-VM will give you status information.But you don't have to do this.
If you specify the shutdown action in the VM settings, when you tell the host to reboot, it will perform that action first.
You are talking about the Automatic Stop Action?
-
@ccwtech said in Rebooting Servers:
@jaredbusch said in Rebooting Servers:
@ccwtech said in Rebooting Servers:
I'd like to automate this.
I have Windows Hyper-V running. I'd like to shut down the Windows virtual machines and then when the virtual machines are stopped reboot the host.
Is there a way to detect when all virtual machines have stopped so that the physical machine waits to reboot until they are completely shut down?
Use a powershell script since it is windows.
Stop-VM will shut down the VM gracefully (or forcefully).
Get-VM will give you status information.But you don't have to do this.
If you specify the shutdown action in the VM settings, when you tell the host to reboot, it will perform that action first.
You are talking about the Automatic Stop Action?
Yes.
-
I update and reboot weekly where I can.
There are a few systems that fall out of this process though.