Solved

Vm shutdown

Posted on 2015-01-26
5
177 Views
Last Modified: 2015-01-28
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
Comment
Question by:sara2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 120
ID: 40571020
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
 

Author Comment

by:sara2000
ID: 40573272
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
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40573301
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
 

Author Comment

by:sara2000
ID: 40573333
Thanks Andrew,
What is datastore broadcast , how that affect the shutdown /startu?
0
 
LVL 120
ID: 40573469
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question