my customer wanted some additional functionality, but was not compatible with Windows Server 2008, so I reconfigured the existing server, installed ESXi on it, and put back existing Windows 2008 server and additional Windows Server 2003.
Now, the problem is what to do with UPS automatic shutdown, which was fully functional on previous installation of Windows Server 2008? I have ESXi now, and things got complicated.
I might try to put thru the UPS signal, either via COM port, or via USB port, depending on what will ESXi let thru directly to Virtual Machine.
Then I would use UPS software on Windows 2008 server to shutdown this Virtual Machine, and configured the second VM (server 2003) in ESXi to shutdown too, when first machine shuts down. This is possible with ESXi.
But what about host ESXi? How could I shutdown host machine?
Couldn't I have some script, which would watch - let's say - guest's RAM usage and shutdown host ESXi when guest RAM usage is 0? Or something like this.
There was a discussion on the same subject http://communities.vmware.com/message/1002520;jsessionid=49C105BC09DFAA3F0B28925A99EA62AC
which ended with conclusion to just shutdown guest OS when power outage, and let host ESXi die.
But my question is:
any idea how to go one step further and shutdown also host ESXi with some script?