Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have several computers connected to a single APC SmartUPS 1500. The UPS status is monitored by a server running acpupsd. The other computers also have apcupsd installed, and poll the main computer over the network to get the UPS status, and they shut down if a power loss event occurs.

I want to add a computer running Hyper-V Server 2008 R2 (free version) into the mix, but as far as I can tell it isn't possible to install apcupsd or other UPS monitoring software in the hypervisor. How can I get this machine to shut down during a power loss event?

share|improve this question

2 Answers 2

up vote 7 down vote accepted
+75

Why not? I mean why isn't it possible? It is currently impossible to install the USB driver on x64 versions of windows, due to signing issues, but you only want to use the network client part, so I fail to see how that would be a problem. You'll just have to deal with everything from the command line.

Hyper-V Server 2008 R2 is just a Windows Server 2008 R2 Core install with all roles but Hyper-V server disabled, some helper scripts, and the odd funky behavior here and there. If you say it is not possible from a licencing point of view, we talked with MS at this one place where I work, and they explicitly told us that things like backup agents, extended hardware drivers (HP OpenView agents, etc) and somesuch were not considered "usage", and were perfectly fine.

In fact PowerChute Network Shutdown explicitly supports Hyper-V Server 2008 and Windows Server 2008 Core with Hyper-V role installs.

I don't have any Core installs available in my lab to try it, but I'm fairly confident it would work, apcupsd has very little windows-centric requirements, it is just a service, which should in theory work. If not, a bit of hacking could make it work.

If you report it does fail to work, I will setup a test vm with a Core install and give it a try, for kicks.

share|improve this answer
    
You were exactly right. I was confused about how to install software from the command line, but once I remembered NET USE it was easy. The only thing that doesn't work is the taskbar status icon, of course. Thanks for the advice! –  Nic Jul 9 '10 at 18:10
    
Glad to hear you got it working! :) –  mr_daemon Jul 13 '10 at 20:11

Just use PCNS 2.23 Windows (last one that does NOT check against Hyper-V) & use the script:

http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/01/30/shutting-down-a-hyper-v-virtual-machine.aspx

to run before shutdown

Works a treat

sebus

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.