VMware Cloud Community
danito
Contributor
Contributor

Script for start vmachines in blade server with Vmwre ESX

Hi to all,

My scenario is the following ... I have a Blade Server with ESX 3, in the ESX i have two virtual machines with Windows 2003 server. And i need to make a shutdown and startup in the windows 2003 servers virtual machines with a script.

i have a server with W2k3 Server that manage the blade server with VMWARE Infrastructure and a Blade CommandView.

I want to create a script, or task scheduled, that made shutdown and startup in the virtual machines all nights.

And it's the problem, how and where make the script.

Please help!!

Thanks in advance.

Un saludo.
Reply
0 Kudos
5 Replies
VirtualKenneth
Virtuoso
Virtuoso

From your W2K3 server with Virtual Center (I assume?) you can press "Scheduled Tasks" and create the tasks you want

Reply
0 Kudos
DFATAnt
Enthusiast
Enthusiast

I would use the Windows shutdown command and a Windows scheduled task to shutdown the servers at the required time.

I would create a VirtualCenter scheduled task to start the Windows servers at the required time.

Ant

Reply
0 Kudos
danito
Contributor
Contributor

I understand.

The shutdown command is not a problem.

But, how create a scheduled task in W2k3 to start a virtual machine in the Blade ESX??

Thanks.

Un saludo.
Reply
0 Kudos
VirtualKenneth
Virtuoso
Virtuoso

Read my post above, you need to do that from Virtual Center

Reply
0 Kudos
Mahoushi
Contributor
Contributor

You can start the VM from ESX server with a script that does executes the following command:

vmware-cmd -q path_to_your_vm_vmx_file start soft

then all you have to do is add the script to cron

Reply
0 Kudos