ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XenServer and APC UPS protection

    IT Discussion
    xenserver ups apc protection vms windows
    4
    25
    4.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      So this topic here outlines what needs to be done to power off your VM's and host.

      Sadly it requires a physical installation of Windows, with XenCenter, and APCs PowerChute software to operate. This to me seems insane.

      So what are others doing to shutdown your VM's and hosts using your UPS?

      travisdh1T 1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403
        last edited by

        I know XO has the emergency shutdown function, but there has to be some way (besides the above) to be able to do this.

        1 Reply Last reply Reply Quote 0
        • travisdh1T
          travisdh1
          last edited by

          apcupsd should handle this for you. It's worked for me with a number of different UPS brands, on XenServer.

          You'll might need to get fix the base yum repo fixed to get dependencies installed, it's been a while so I'm not remembering what issues I had if any.

          1 Reply Last reply Reply Quote 1
          • travisdh1T
            travisdh1 @DustinB3403
            last edited by

            @DustinB3403 said in XenServer and APC UPS protection:

            So this topic here outlines what needs to be done to power off your VM's and host.

            Sadly it requires a physical installation of Windows, with XenCenter, and APCs PowerChute software to operate. This to me seems insane.

            So what are others doing to shutdown your VM's and hosts using your UPS?

            My config just shuts down the host with 10 minutes of battery power left. XenServer tries to shut down any guests nicely before turning off. The standard wait time is 3 minutes for shutting down the guests, which is why I start it at the 10 minute mark.

            1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              I wonder if this could be integrated into XO some how.. . .

              travisdh1T 1 Reply Last reply Reply Quote 1
              • travisdh1T
                travisdh1 @DustinB3403
                last edited by

                @DustinB3403 said in XenServer and APC UPS protection:

                I wonder if this could be integrated into XO some how.. . .

                Ah, here we go the Mint repos have apcupsd-cgi. Which is a web interface. Even if it's not already implemented, it shouldn't be to hard to integrate it as an add on.

                1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403
                  last edited by

                  Hrm... I'll take a look into it.

                  1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403
                    last edited by

                    I wonder if APCUPSD works with networked UPS as well..

                    As that would be the goal, completely skip USB integration and go to the network.

                    travisdh1T 1 Reply Last reply Reply Quote 1
                    • travisdh1T
                      travisdh1 @DustinB3403
                      last edited by

                      @DustinB3403 said in XenServer and APC UPS protection:

                      I wonder if APCUPSD works with networked UPS as well..

                      As that would be the goal, completely skip USB integration and go to the network.

                      I think it can, but I haven't set that up. Would be silly to me if it couldn't, but I've seen to many silly missing things in my life already, one more wouldn't be a surprise.

                      1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403
                        last edited by

                        Yeah.. my issue is that XS integration with USB means you either have to grant all VM's access to the device, or nothing at all.

                        Which is what I'd want to avoid. Having to dedicate a Windows system just to operate XC in the event of losing power, while simple, seems really stupid and expensive, not to mention dangerous has you have to have a system connected to your hosts using the root credentials through XC, but it most likely would be completely un-monitored.

                        XO's emergency mode is a good solution, but it requires action from an administrator.

                        travisdh1T 1 Reply Last reply Reply Quote 0
                        • travisdh1T
                          travisdh1 @DustinB3403
                          last edited by

                          @DustinB3403 said in XenServer and APC UPS protection:

                          Yeah.. my issue is that XS integration with USB means you either have to grant all VM's access to the device, or nothing at all.

                          Which is what I'd want to avoid. Having to dedicate a Windows system just to operate XC in the event of losing power, while simple, seems really stupid and expensive, not to mention dangerous has you have to have a system connected to your hosts using the root credentials through XC, but it most likely would be completely un-monitored.

                          XO's emergency mode is a good solution, but it requires action from an administrator.

                          Either you completely missed my point, or I wasn't very clear.

                          XenServer shuts down the guests for you, no need for them all to have access to the usb.

                          JaredBuschJ DustinB3403D 2 Replies Last reply Reply Quote 1
                          • JaredBuschJ
                            JaredBusch @travisdh1
                            last edited by

                            @travisdh1 said in XenServer and APC UPS protection:

                            @DustinB3403 said in XenServer and APC UPS protection:

                            Yeah.. my issue is that XS integration with USB means you either have to grant all VM's access to the device, or nothing at all.

                            Which is what I'd want to avoid. Having to dedicate a Windows system just to operate XC in the event of losing power, while simple, seems really stupid and expensive, not to mention dangerous has you have to have a system connected to your hosts using the root credentials through XC, but it most likely would be completely un-monitored.

                            XO's emergency mode is a good solution, but it requires action from an administrator.

                            Either you completely missed my point, or I wasn't very clear.

                            XenServer shuts down the guests for you, no need for them all to have access to the usb.

                            Right, you tell the hypervisor to shut down. Its normal process should already be setup to handle graceful shutdown of the guests.

                            1 Reply Last reply Reply Quote 1
                            • JaredBuschJ
                              JaredBusch
                              last edited by

                              @DustinB3403 also depending on the model of your UPS, you could go with an Raspberry Pi and either NUT or APCUPSD to monitor the UPS and send the shutdown command to XS.

                              DustinB3403D 1 Reply Last reply Reply Quote 1
                              • DustinB3403D
                                DustinB3403 @travisdh1
                                last edited by

                                @travisdh1 said in XenServer and APC UPS protection:

                                @DustinB3403 said in XenServer and APC UPS protection:

                                Yeah.. my issue is that XS integration with USB means you either have to grant all VM's access to the device, or nothing at all.

                                Which is what I'd want to avoid. Having to dedicate a Windows system just to operate XC in the event of losing power, while simple, seems really stupid and expensive, not to mention dangerous has you have to have a system connected to your hosts using the root credentials through XC, but it most likely would be completely un-monitored.

                                XO's emergency mode is a good solution, but it requires action from an administrator.

                                Either you completely missed my point, or I wasn't very clear.

                                XenServer shuts down the guests for you, no need for them all to have access to the usb.

                                No I didn't miss the point, the official way to do this from Citrix is to dedicate a physical windows system. That was my point.

                                travisdh1T 1 Reply Last reply Reply Quote 0
                                • DustinB3403D
                                  DustinB3403 @JaredBusch
                                  last edited by

                                  @JaredBusch said in XenServer and APC UPS protection:

                                  @DustinB3403 also depending on the model of your UPS, you could go with an Raspberry Pi and either NUT or APCUPSD to monitor the UPS and send the shutdown command to XS.

                                  I considered this, but don't have any to work with.

                                  1 Reply Last reply Reply Quote 0
                                  • travisdh1T
                                    travisdh1 @DustinB3403
                                    last edited by

                                    @DustinB3403 said in XenServer and APC UPS protection:

                                    @travisdh1 said in XenServer and APC UPS protection:

                                    @DustinB3403 said in XenServer and APC UPS protection:

                                    Yeah.. my issue is that XS integration with USB means you either have to grant all VM's access to the device, or nothing at all.

                                    Which is what I'd want to avoid. Having to dedicate a Windows system just to operate XC in the event of losing power, while simple, seems really stupid and expensive, not to mention dangerous has you have to have a system connected to your hosts using the root credentials through XC, but it most likely would be completely un-monitored.

                                    XO's emergency mode is a good solution, but it requires action from an administrator.

                                    Either you completely missed my point, or I wasn't very clear.

                                    XenServer shuts down the guests for you, no need for them all to have access to the usb.

                                    No I didn't miss the point, the official way to do this from Citrix is to dedicate a physical windows system. That was my point.

                                    They must have a reason for it, but, why? Just, why? Is this another "Software RAID is bad" scenario from them?

                                    DustinB3403D 1 Reply Last reply Reply Quote 0
                                    • DustinB3403D
                                      DustinB3403 @travisdh1
                                      last edited by

                                      @travisdh1 said in XenServer and APC UPS protection:

                                      @DustinB3403 said in XenServer and APC UPS protection:

                                      @travisdh1 said in XenServer and APC UPS protection:

                                      @DustinB3403 said in XenServer and APC UPS protection:

                                      Yeah.. my issue is that XS integration with USB means you either have to grant all VM's access to the device, or nothing at all.

                                      Which is what I'd want to avoid. Having to dedicate a Windows system just to operate XC in the event of losing power, while simple, seems really stupid and expensive, not to mention dangerous has you have to have a system connected to your hosts using the root credentials through XC, but it most likely would be completely un-monitored.

                                      XO's emergency mode is a good solution, but it requires action from an administrator.

                                      Either you completely missed my point, or I wasn't very clear.

                                      XenServer shuts down the guests for you, no need for them all to have access to the usb.

                                      No I didn't miss the point, the official way to do this from Citrix is to dedicate a physical windows system. That was my point.

                                      They must have a reason for it, but, why? Just, why? Is this another "Software RAID is bad" scenario from them?

                                      Yeah I don't know, the ups monitoring solution is use a Windows system, install the software and connect xencenter to your servers.

                                      DustinB3403D 1 Reply Last reply Reply Quote 0
                                      • DustinB3403D
                                        DustinB3403 @DustinB3403
                                        last edited by

                                        @DustinB3403 said in XenServer and APC UPS protection:

                                        @travisdh1 said in XenServer and APC UPS protection:

                                        @DustinB3403 said in XenServer and APC UPS protection:

                                        @travisdh1 said in XenServer and APC UPS protection:

                                        @DustinB3403 said in XenServer and APC UPS protection:

                                        Yeah.. my issue is that XS integration with USB means you either have to grant all VM's access to the device, or nothing at all.

                                        Which is what I'd want to avoid. Having to dedicate a Windows system just to operate XC in the event of losing power, while simple, seems really stupid and expensive, not to mention dangerous has you have to have a system connected to your hosts using the root credentials through XC, but it most likely would be completely un-monitored.

                                        XO's emergency mode is a good solution, but it requires action from an administrator.

                                        Either you completely missed my point, or I wasn't very clear.

                                        XenServer shuts down the guests for you, no need for them all to have access to the usb.

                                        No I didn't miss the point, the official way to do this from Citrix is to dedicate a physical windows system. That was my point.

                                        They must have a reason for it, but, why? Just, why? Is this another "Software RAID is bad" scenario from them?

                                        Yeah I don't know, the ups monitoring solution is use a Windows system, install the software and connect xencenter to your servers.

                                        Which to me seems insane, the hypervisor should support this without the need to use a Windows system.

                                        Although it's simple, it just seems like a poor solution.

                                        JaredBuschJ 1 Reply Last reply Reply Quote 1
                                        • JaredBuschJ
                                          JaredBusch @DustinB3403
                                          last edited by

                                          @DustinB3403 said in XenServer and APC UPS protection:

                                          @DustinB3403 said in XenServer and APC UPS protection:

                                          @travisdh1 said in XenServer and APC UPS protection:

                                          @DustinB3403 said in XenServer and APC UPS protection:

                                          @travisdh1 said in XenServer and APC UPS protection:

                                          @DustinB3403 said in XenServer and APC UPS protection:

                                          Yeah.. my issue is that XS integration with USB means you either have to grant all VM's access to the device, or nothing at all.

                                          Which is what I'd want to avoid. Having to dedicate a Windows system just to operate XC in the event of losing power, while simple, seems really stupid and expensive, not to mention dangerous has you have to have a system connected to your hosts using the root credentials through XC, but it most likely would be completely un-monitored.

                                          XO's emergency mode is a good solution, but it requires action from an administrator.

                                          Either you completely missed my point, or I wasn't very clear.

                                          XenServer shuts down the guests for you, no need for them all to have access to the usb.

                                          No I didn't miss the point, the official way to do this from Citrix is to dedicate a physical windows system. That was my point.

                                          They must have a reason for it, but, why? Just, why? Is this another "Software RAID is bad" scenario from them?

                                          Yeah I don't know, the ups monitoring solution is use a Windows system, install the software and connect xencenter to your servers.

                                          Which to me seems insane, the hypervisor should support this without the need to use a Windows system.

                                          Although it's simple, it just seems like a poor solution.

                                          Does a shutdown command to XS from an SSH session initiate the guest shutdowns?

                                          If so, any UPS monitor tool will work because they can all initiate commands.

                                          DustinB3403D 1 Reply Last reply Reply Quote 0
                                          • DustinB3403D
                                            DustinB3403 @JaredBusch
                                            last edited by

                                            @JaredBusch Yes SSH works to shutdown a host and guest.

                                            BRRABillB 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post