VMware Cloud Community
Rohail2004
Enthusiast
Enthusiast
Jump to solution

schedule a VM reboot

Is it possible to setup a schedule a reboot for VM from VC or any other way?

Reply
0 Kudos
1 Solution

Accepted Solutions
RParker
Immortal
Immortal
Jump to solution

For schedule reboots, it's best to do this inside the guest, and not force a reboot from the VCenter.

For one the VCenter will just signal the tools to do it, but the tools don't always react if the VM itself is busy, but if you set the guest to reboot using task manager or something similar, you have more control over the reboot process, like forcing users out, waiting for a period of time to let users log out gracefully, etc.. if you just set the VM to reboot, that's how it will be treated a reboot now, and no interaction is possible.

View solution in original post

Reply
0 Kudos
3 Replies
lamw
Community Manager
Community Manager
Jump to solution

Not sure about vCenter, I don't recall there was a scheduled task for rebooting a VM. If you want to do this from the ESX Service Console do a search for cronjobs on the web on how to schedule a task and take a look at vmware-cmd and just do a reset with soft flag and if the VM has VMware Tools installed, you'll be able to reboot it

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos
RParker
Immortal
Immortal
Jump to solution

For schedule reboots, it's best to do this inside the guest, and not force a reboot from the VCenter.

For one the VCenter will just signal the tools to do it, but the tools don't always react if the VM itself is busy, but if you set the guest to reboot using task manager or something similar, you have more control over the reboot process, like forcing users out, waiting for a period of time to let users log out gracefully, etc.. if you just set the VM to reboot, that's how it will be treated a reboot now, and no interaction is possible.

Reply
0 Kudos
JohnADCO
Expert
Expert
Jump to solution

Interesting. Not really restarts, but we schedule shutdowns and restarts through VC (well foundation anyways)

We let WSUS reboot / restart for updates windows updates..

Reply
0 Kudos