Avatar of fieldj
fieldj
Flag for United Kingdom of Great Britain and Northern Ireland asked on

APC PowerChute Network Shutdown - A few questions regarding VMWare integration

Hi all,

I am halfway through configuring APC PowerChute Network Shutdown and have a few questions regarding the VMWare integration to automatically shutdown our VM's and hosts in the event of a loss of power.

Our set up consists of 2 x clusters (3 x VMware hosts in each cluster), all of which are on a single UPS.  These are managed by vCenter (which is installed on a VM)

With this in mind I have followed the advice in the instruction guide and installed PCNS on a separate physical windows server.  PCNS has successfully connected to vCentre and I am ready to fine tune me settings.

The main thing I am confused about is whether I need to do anything with Virtual Machine Startup and Shutdown settings in vSphere.  I have read a couple of guides which have said that you have to "configure VMware to gracefully shutdown the virtual machines".  This is done by going to Virtual Machine Startup and Shutdown settings and changing the Shutdown action to "Guest Shutdown":

Guest Shutdown option
However, on my vSphere this entire screen is greyed out and cannot be changed:

Greyed out
Is this because we have a cluster and the example used in the guides do not?  The guides seemed to make a big deal about this stage so I wanted to make sure I did the right thing at this stage!

Thanks
VMwareVirtualizationNetworking

Avatar of undefined
Last Comment
fieldj

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Normally, you would do this through the VMA ?
fieldj

ASKER
The recommendation according to the instruction guide is that if VMWare Hosts are in multiple clusters it should be installed on a physical Windows machine:

reccomendation
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

This is clearly a new updated version!


Yes it is because you have a Cluster and VMware HA enabled ?


Is this because we have a cluster

The main thing I am confused about is whether I need to do anything with Virtual Machine Startup and Shutdown settings in vSphere.  I have read a couple of guides which have said that you have to "configure VMware to gracefully shutdown the virtual machines".  This is done by going to Virtual Machine Startup and Shutdown settings and changing the Shutdown action to "Guest Shutdown":

If you have VMware HA enabled on your Cluster, making changes to Startup and Shutdown, is not Supported.

In the event of Host Failure, VMware HA will restart the VMs automatically, this is in the event of an uncontrolled failure!

Not a UPS shutdown, because that is controlled.

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

So what you are observing is normal.

BUT, it does mean, if you use APC to shutdown your VMs and Hosts via controlled shutdown, you will need to manually restart at Power On! because VMware HA will not restart them, if you leave the host just to fail on battery, all VMs will restart on power on! (because that is an uncontrolled failure!)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
fieldj

ASKER
OK, well that is a bit of a shame, but not a major disaster as I feel that it is probably an improvement on what we have at the moment.

At the moment, if we had a power failure during the day we would try to manually shutdown all the VM's and then the hosts before we lost the UPS.  When power is restored we would manually power them all up.

If we had a power failure overnight when no one was here we would just lose power to everything.  Things might automatically restart when power is restored, but in my experience things are normally in such a mess that a lot of manual tweaking is required in order to get things up and running again.

So I am correct in thinking that I will still be able to gracefully shutdown the VM's via PCNS?  Even though I dont have the ability to configure the "Virtual Machine Startup and Shutdown setting"
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Yes, you can shutdown VMs via PCNS, just like you would a physical computer, via Network Shutdown Software.
fieldj

ASKER
Are you saying that I would need to install PCNS on each VM though?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

You should be able to install Agents in the VMs, which communicate with PCNS, unless that has changed, just treat the VMs, the same as a physical computer.
fieldj

ASKER
Yes, that is possible, but a bit of a shame as we have A LOT of VM's so it would be nice to make use of the VMWare integration if possible and not just treat them like standard physicals.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

You can script an auto shutdown of ALL VMs, on a Power event, which is what most of our clients do.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
fieldj

ASKER
How would you do that?  Just a straight out script like this?:

shutdown -f -m \\Server1 -t 30
shutdown -f -m \\Server2 -t 30
shutdown -f -m \\Server3 -t 30
shutdown -f -m \\Server4 -t 30
shutdown -f -m \\Server5 -t 30
shutdown -f -m \\Server6 -t 30
shutdown -f -m \\Server7 -t 30

etc etc
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
fieldj

ASKER
ok great, some food for thought - thanks for your help