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
Solved

VM Startup/Shutdown

Posted on 2014-07-31
8
1,319 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 119

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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 119

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 119

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ESXi VM of Server 2003 Saving Slow. 7 83
Disjoin vCenter Server Appliance From Domain 5 50
Need To Expand VMware Disk Size 50 81
VMware - ESXi Cost and features? 2 40
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
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 log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

856 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