Solved

VM Startup/Shutdown

Posted on 2014-07-31
8
1,402 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
[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
  • 3
  • 2
8 Comments
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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
 
LVL 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) 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 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
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 …
Suggested Courses

623 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