schedule reboot vmware


Is it possible to schedule reboots on my guest machines through the Vcenter console using the tools? I know you can change the behaviour of the virtual machiens do when the host is powered on/off but i want to schedule one or two of my guest Vm';s to reboot in teh evening. I knwo i can do this at the windows level, but wanted to see if i could achieve through Vcenter. Vsphere 4.1.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can't schedule a the only power state option you can't set. All others (Power on, Power off, Shut down, Suspend, & Reset) you can schedule.

What you can do is set a scheduled task inside the VM (Windows) to reboot the guest OS.
See vCenter options in image below.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

MJB2011Author Commented:
So this way i can say reset a particular VM to reboot each evening through the Power Options?
Well, all options above are, by default, "hard" VM power options, meaning configuring any one of them does NOT do a graceful Windows shutdown. But you can configure the options to do a "soft" (graceful shutdown) reset. See Eric Siebert's article here:
MJB2011Author Commented:
Sorry im sure if i made myself clear. I understand the different behaviors of cycling the power through vmware, but can i schedule a reboot through the VM Tools? i want to schedule the reboot each evening. ]

Sorry if i missing the point here. But what you have described is for changing how the vmtools behave when executing the various power options?
You mentioned in your orig post you wanted to "sched reboot......through 'vCenter Console' using 'tools' ". My assumption by that statement is you wanted to configure a Scheduled Task for a couple of your VMs through vCenter Server, is that correct? If not, are you saying you want to use VMware Tools within the Guest OS? If the latter of the 2, you can't do a schedule through VMware Tools within the Guest (VM). You have to Sched Task in vCenter. So, in using vCenter, my screenshot provides the only options you have, which does not include a "Restart". Now, a 'Reset' is close to what you want to do. The problem with 'Reset' is it, by default, does a "hard" reset, meaning the Guest OS (Windows) is NOT gracefully shut down during the Reset (restart). So, what you have to do is configure the .vmx file for the VM (or VMs since you want to schedule this for 2 VMs) to do a "soft" Reset action. So, configure your .vmx file for the VM as noted in the article I provided by Eric. Then, Schedule a Task in vCenter (click the Home menu -> Scheduled Tasks) for the VM. If you have a non-critical or test VM, I would configure the options on that first to test the functionality to see if it does what you want.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Why don't you just use the task scheduler on each machine, to issue a Shutdown and Restart in the OS, via a task schedule via a cmd file. (just like you would on a physical computer or server).
Well, that is my suggestion as well, but he mentioned he didn't wanna do that. A 'Reset' will do what he wants, with a minor .vmx configuration. So, that should work as well.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.