vCenter

 View Only
  • 1.  Schedule VM Guest reboot

    Posted Jan 16, 2009 08:49 PM

    I am trying to use VMware vCenter Server to schedule rebooting of a guest server. I only see the option through the scheduled tasks to change the power of the server. This option does not appear to shut down the guest OS prior to reseting the power. What is the procedure for shutting down the OS and then restarting the server?

    The guest OS is WIndows 2003 Standard.

    Thanks,

    Jeff



  • 2.  RE: Schedule VM Guest reboot

    Posted Jan 16, 2009 09:18 PM

    Hi,

    An alternative if you don't have a management agent installed in your system that will do the restart for you is to setup a scheduled task with the following command :

    c:\windows\system32\shutdown.exe /r

    We use management agent to do the restart jobs and haven't looked into Virtual Center. And for all I know you probably knew this already =)

    BTW I can't understand why restart guest isn't an option in the scheduler... or I might have missed something myself.



  • 3.  RE: Schedule VM Guest reboot

    Broadcom Employee
    Posted Jan 16, 2009 09:30 PM

    You actually have a few options:

    VMware VIX 1.6.2 and vmrun (installed on an Admin Window/Linux box) to shutdown the guestOS if you have VMware tools installed on the VM

    *Use the traditional CLI tool vmware-cmd on the ESX host itself

    *RCLI for either Windows or Linux

    *VI Perl Toolkit

    *Powershell

    Majority of these can be scripted and automated through some type of scheduled tasks depending on the executing host type (WIN/NIX)

    You can find some more info at: http://engineering.ucsb.edu/~duonglt/vmware/

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

    --William

    VMware ESX/ESXi scripts and resources at:



  • 4.  RE: Schedule VM Guest reboot

    Posted Jun 19, 2012 05:20 PM

    If you are using vCenter 4.1, then choose the change power option and in the second option in the wizard (after choosing which machine)  it will give you a number of options including power off and shutdown.