# UPS on Xen Guests

**URL:** <https://forums.suse.com/t/ups-on-xen-guests/22654>\
**Category:** SLES Virtualization\
**Created:** [May 22, 2012, 8:58pm UTC](https://forums.suse.com/t/ups-on-xen-guests/22654 "2012-05-22T20:58:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stelgenkamp](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@stelgenkamp](https://forums.suse.com/u/stelgenkamp)\
**Post date:** [May 22, 2012, 8:58pm UTC](https://forums.suse.com/t/ups-on-xen-guests/22654/1 "2012-05-22T20:58:38Z")

</div>

Hello all,  
Have recently purchased OES11 and installed on SLES11SP1 Xen host.  
Now I have installed several Guests ( both Windows and Linux )

But need some advice on installing my UPS.  
It is an APC with still a serial cable and I have Powerchute Business Edition with it.  
What would be best practice to install the APC and software ?

And how do I connect the other XEN Guests and Xen host to also shutdown ?  
Appriciate any advice.

Stephan

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [May 22, 2012, 9:40pm UTC](https://forums.suse.com/t/ups-on-xen-guests/22654/2 "2012-05-22T21:40:16Z")

</div>

stelgenkamp wrote:  
[color=blue]

> Hello all,  
> Have recently purchased OES11 and installed on SLES11SP1 Xen host.  
> Now I have installed several Guests ( both Windows and Linux )[/color]

Be aware that when you run OES on your Dom0 most services are  
unsupported. Check the documentation to verify supported configurations.

My preference is to only run OES in a DomU and use native SLES for my  
host/Dom0.  
[color=blue]

> But need some advice on installing my UPS.  
> It is an APC with still a serial cable and I have Powerchute Business  
> Edition with it.[/color]

That is not the correct solution to your problem. That is designed to  
communicate with a single computer.  
[color=blue]

> What would be best practice to install the APC and software ?
> 
> And how do I connect the other XEN Guests and Xen host to also  
> shutdown ?[/color]

If you want to automatically shutdown multiple servers (virtual or  
physical) you want:

The APC UPS Network Management Card  
[http://www.apcc.com/products/family/index.cfm?id=98](http://www.apcc.com/products/family/index.cfm?id=98)  
And the APC PowerChuteÂ® Network Shutdown software  
[http://www.apc.com/products/family/index.cfm?id=127](http://www.apc.com/products/family/index.cfm?id=127)

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are using the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![stelgenkamp](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@stelgenkamp](https://forums.suse.com/u/stelgenkamp)\
**Post date:** [May 23, 2012, 3:37pm UTC](https://forums.suse.com/t/ups-on-xen-guests/22654/3 "2012-05-23T15:37:19Z")

</div>

Dear Kevin,

Maybe I miswrote, yes I am running XEN on SLES11 only.  
OES is just the Guest.

But I have read some things about shutting all guests  
with an “xe” command.  
So that the Powerchute Software starts a batch file to shutdown all guests.

Stephan

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [May 23, 2012, 6:41pm UTC](https://forums.suse.com/t/ups-on-xen-guests/22654/4 "2012-05-23T18:41:50Z")

</div>

stelgenkamp wrote:  
[color=blue]

> But I have read some things about shutting all guests  
> with an “xe” command.[/color]

Here is a TID that may help:  
[http://www.novell.com/support/kb/doc.php?id=3029956](http://www.novell.com/support/kb/doc.php?id=3029956)

You can also search the Knowledgebase for additional information.  
[http://www.novell.com/support/](http://www.novell.com/support/)

Be aware that the “xm shutdown ” command only initiates a  
shutdown and that the DomU may not actually shutdown if there are  
problems. If you issue shutdown commands for all your DomU’s and then  
shutdown and power off your server after waiting “an appropriate period  
of time”, some of your DomU’s could still be running…

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are using the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![stelgenkamp](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@stelgenkamp](https://forums.suse.com/u/stelgenkamp)\
**Post date:** [May 29, 2012, 9:28pm UTC](https://forums.suse.com/t/ups-on-xen-guests/22654/5 "2012-05-29T21:28:53Z")

</div>

For shutting down multiple DOMU’s i have found this excellent solution ( I knew I had read it somewhere ) :  
APC UPC Deamon  
[http://www.apcupsd.org/](http://www.apcupsd.org/)

So what to do :

1. Install apcupcd on the dom0. With Suse this is available through the portal.
2. Setup the dom0 as apcupsd server by editing the config file :  
NETSERVER on  
NISIP 0.0.0.0 ( this is to listen on all ethernet cards, you can also specify your internal network ip )  
NISPORT 3551
3. Check if the local machine works, by starting the deamon.
4. On the domu’s install the same with :  
UPSCABLE ether ( connection through ethernet )  
UPSTYPE net  
DEVICE server-network-address:3551

And volia ! Your done.  
Work on both Linux and Windows.

More info can be found on :  
[http://www.apcupsd.org/](http://www.apcupsd.org/)

Good luck, Stephan
