• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

ESXi and UPS

  • Thread starter Deleted member 12106
  • Start date
D

Deleted member 12106

Guest
Got a new server on the way, so we are looking to run ESXi on it.

What I am looking into now is safely shutting down the server/guests in the event of a power failure.

The UPS's I have do not have a network management card in them. They are usb. From what I gather is I will have to use some sort of a USB>ip to use USB ports on a guest.

Now, I am not a scripting guru, so, this is where I hit the wall.

How can I set it up so when the power goes out, the VM's are suspended and the system is shut down?
 
The way I last scripted it was a small system sitting there that had a traditional connection to the UPS. When power failed, it started an internal countdown, then sent shutdown commands, using the autostart scripts built in to ESX to get things down safely.

APC is working on powerchute, but I don't think it will ever run on ESXi, only classic.
 
The way I last scripted it was a small system sitting there that had a traditional connection to the UPS. When power failed, it started an internal countdown, then sent shutdown commands, using the autostart scripts built in to ESX to get things down safely.

APC is working on powerchute, but I don't think it will ever run on ESXi, only classic.

So basically, I will need to use the powerchute software on one of the guests to directly interface into the ups(s) then kick out a script to suspend the vm's and shut down the esxi box...

I found this...http://communities.vmware.com/docs/DOC-9531

Most guides are based on using a unit that have network connectivity. Mine do not:(
 
Have a look at apcupsd, an open source daemon for APC UPS devices. I have implemented it in our environment by modifying these instructions to suit, if you have VI or vSphere (and thus write access to ESXi with the RCLI) then the updated version doesn't require ssh access to ESXi.

Basically we have one "traditional" server running Server 2003 x64 connected to the UPS via USB, this has the windows version of apcupsd(1) installed in server mode. Then there is the VMware vMA appliance under ESXi with the Linux version of apcupsd(2) installed in client mode. The two apcupsd installs communicate over the LAN.

When the power goes out apcupsd1 tells apcupsd2, starts a timer for the UPS shutdown and then shuts down it's host. Apcupsd2 gets the signal and calls a script in ESXi over ssh, this script shuts down the VM's and then the ESXi host gracefully.

I have found apcupsd pretty flexible and very reliable, the price is perfect too.
 
Have a look at apcupsd, an open source daemon for APC UPS devices. I have implemented it in our environment by modifying these instructions to suit, if you have VI or vSphere (and thus write access to ESXi with the RCLI) then the updated version doesn't require ssh access to ESXi.

Basically we have one "traditional" server running Server 2003 x64 connected to the UPS via USB, this has the windows version of apcupsd(1) installed in server mode. Then there is the VMware vMA appliance under ESXi with the Linux version of apcupsd(2) installed in client mode. The two apcupsd installs communicate over the LAN.

When the power goes out apcupsd1 tells apcupsd2, starts a timer for the UPS shutdown and then shuts down it's host. Apcupsd2 gets the signal and calls a script in ESXi over ssh, this script shuts down the VM's and then the ESXi host gracefully.

I have found apcupsd pretty flexible and very reliable, the price is perfect too.

basically what I did, but a bit cleaner :)
 
I will have to dig out the thread i used to setup my two APC units but mine both have network mgmt cards.
 
basically what I did, but a bit cleaner :)

We like it dirty over here in small business;)
Usually goes like this:
Boss: We need to do such and such.
Me: Easy, we'll need one of these and a licence for that.
Boss: No way, make it happen for free.

By cleaner I'm assuming you mean without using the "unsupported" console and ssh.
I can only dream of such luxury.
 
We like it dirty over here in small business;)
Usually goes like this:
Boss: We need to do such and such.
Me: Easy, we'll need one of these and a licence for that.
Boss: No way, make it happen for free.

By cleaner I'm assuming you mean without using the "unsupported" console and ssh.
I can only dream of such luxury.

well, I simply relied on the autostart scripts, instead of sending shut down commands to the vms.
 
Thanks, that takes care of one of my issues, I think...
 
Back
Top