• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

Vm shutdown

i am trying to find the way to shutdown all VMs housing on Esxi   Is there anyway I can shutdown all vms?
Have cluster with six esxis and 150 VMs.
0
sara2000
Asked:
sara2000
  • 3
  • 2
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
for what purpose ?

You could script it. There is an example script here

http://www.virtu-al.net/2010/01/06/powercli-shutdown-your-virtual-infrastructure/

or select all the VMs, in the Cluster in the vSphere Client, so select the Cluster Object > Virtual Machines > Select ALL VMs in the SAME STATE, e.g, Powered ON.

Hit CTRL-D (Shutdown Guest - this triggers VMware Tools to Shutdown the Guest correctly, and not just COLD Power OFF!
0
 
sara2000Author Commented:
In case if there is any long term power failure then the UPS are not going to last long. This case we may have to shut down the equipments.
We have Lunux, windows servers.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Also remember, if you Shutdown your VMs, if you have VMware HA, these VMs will *NOT* restart on startup of your ESXi hosts, so you will need to manually restart ALL your VMs.

Because VMware HA, only starts VMs, on uncontrolled failure, not controlled shutdown!

Ok, the above will work, and the converse is true on startup, select ALL, and Power On.

(but be careful of datastore broadcast storms, on shutdown and startup!)
0
 
sara2000Author Commented:
Thanks Andrew,
What is datastore broadcast , how that affect the shutdown /startu?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I should have written "datastore broadcast storm"

where ALL VMs at the same time, all access the disk, read and write, and cause HIGH I/O...

the affect, will cause all VMs to slow down, and become slow, for a while, so if you shutdown all at once, it will take longer to shutdown ALL 150 VMs at once, then stagger them!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now