Solved

VM Startup/Shutdown

Posted on 2014-07-31
8
1,185 Views
Last Modified: 2014-08-01
We are running vCenter 5.1 with 3 ESXi hosts. We have about 50 VMs spread across the 3 hosts. We experienced a power loss, and all hosts went offline. Once the power cam back, all hosts came back online. Our environment has dependencies betweeen VMs. For example, the domain controllers need to come online first, then Exchange and so on.

I know I can configure Automatic startup/shutdown of VMs, but how do I make this setting global across all hosts in a datacenter? Time to time, we vMotion VMs across hosts to distribute resources evenly (we don't use DRS). Is there a way to tell vSphere to start VMs in a global order regardless of which host they are on?
0
Comment
Question by:pzozulka
  • 3
  • 3
  • 2
8 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 425 total points
ID: 40232047
Do you not have any UPS protection ?

VMware vSphere ESXi supports Auto Starting and Auto Stopping of VMs.

Auto Start and Shutdown Virtual Machines

Just log into your ESX server using the vSphere GUI Client, click on the host, then click the Configuration tab. In the 'Software' box, click the Virtual Machine Startup/Shutdown link. In the upper right click Properties.

http://www.vmadmin.co.uk/vmware/35-esxserver/111-esxautostartstop

You should be able to configure each host, to start and stop a specific VM.

HOWEVER, it would seem, you could be running a Cluster with VMware HA, because an uncontrolled shutdown, when VMware HA is configured protects the VMs, with HA, and in the event the hosts fail, the VMs will be restarted on hosts when they are restarted.....

Now, it's not supported in this case, for you to enable Auto Start and Stop when VMware HA is enabled.

see here

Note: The Virtual Machine Startup and Shutdown (automatic startup) feature is disabled for all virtual machines residing on hosts that are in (or moved into) a VMware HA cluster. Automatic startup is not supported when used with VMware HA. As a result, starting with vCenter Server 5.0 Update 1, the Allow virtual machines to start and stop automatically with the system is available though at this time does not have functionality when enabled.

Source
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=850
0
 
LVL 25

Assisted Solution

by:Zephyr ICT
Zephyr ICT earned 75 total points
ID: 40232087
Not counting HA, I think the only way is to use a script, if you have a UPS you could use the software that comes with it to start the script after restore of the power or such ...

A script that uses a txt file with the necessary servers in it, making sure that they are started in the necessary order.
0
 
LVL 8

Author Comment

by:pzozulka
ID: 40232143
We have UPS(s), but after they run out of juice the hosts shutdown. This last power outage happened at night so there was not much we couldnt have done.

We enabled HA recently. Are you telling me there's no way for us to startup VMs automatically when the hosts power ON?
0
 
LVL 8

Author Comment

by:pzozulka
ID: 40232147
In other words, I understand that if we have HA enabled that the VM Startup/Shutdown feature is disabled on each host which is fine, but is there any way to do this from within HA?
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 118

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 425 total points
ID: 40232470
There is no way to do this from HA yet, because under HA, an uncontrolled shutdown will power up all VMs...not just a select few, "because it gives you back the same state" at failure....

If you have GOOD UPS software...you can create rules, which will SHUTDOWN ALL VMs, to carry on conserving power for the IMPORTANT VMs, e.g. Domain Controllers and Exchange.

when the UPS batteries are then extended because you've reduced loading "it's called load shedding", then what the rules do, is MOVE ALL VMs to a single host, shutdown all the other hosts in the cluster maintaining the number required for important VMs.

FINALLY.......The VMs will be shutdown...

because everything was shutdown CONTROLLED

VMware HA WILL NOT restart VMs at Power ON, and then a script starts the VMs in your order you require

e.g. DC's first etc

VMware HA, DRS, and UPS Power Outage is a Design and Project to get working correctly...
0
 
LVL 8

Author Comment

by:pzozulka
ID: 40232544
There is no way to do this from HA yet
When you say yet, are you aware of this feature coming soon?
0
 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 40233445
I wouldn't count on it arriving soon ... But who am I :)

Like Hancock and I said, UPS with the necessary software should be able to do what you're looking for, had to do it several times.
0
 
LVL 118

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 425 total points
ID: 40233950
It has been requested as a feature request, however it would appear, UPS vendors are now creating their own solutions to this complex issue of "load shedding" and VMware HA/DRS.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now