XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How to create xen orchestra plugins

    Scheduled Pinned Locked Moved Unsolved Advanced features
    11 Posts 3 Posters 2.5k Views 3 Watching
    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.
    • A
      Ahkh3e
      last edited by

      Im looking into creating a vm power controller plugin compatible with MAAS webhook power controls,

      im confused about how the plugin can call actions, i would also like it to expose as its own endpoint on the xo api or fqdn,

      Is this possible or am i chasing ghosts?

      I 1 Reply Last reply
      Reply Quote 1
      • olivierlambertO
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Question for @julien-f

        In the meantime, can you explain more in details what do you have in mind? This will be helpful to point you to the right direction 🙂

        1 Reply Last reply
        Reply Quote 1
        • I
          irtaza9 @Ahkh3e
          last edited by

          is there any documentation for building the plugin and how to use in XO?

          1 Reply Last reply
          Reply Quote 0
          • A
            Ahkh3e
            last edited by

            @olivierlambert took sometime digging through the other plugins and also having github copilot look it over,

            made a working plugin here

            https://github.com/Ahkh3e/xo-server-webhook-vm-control

            allows for webhook control of vms with a status return

            I olivierlambertO 2 Replies Last reply
            Reply Quote 1
            • I
              irtaza9 @Ahkh3e
              last edited by irtaza9

              @Ahkh3e How you then imported this in XO?

              1 Reply Last reply
              Reply Quote 0
              • olivierlambertO
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                There is a "demo" plugin in here: https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-server-test-plugin

                1 Reply Last reply
                Reply Quote 1
                • olivierlambertO
                  olivierlambert Vates 🪐 Co-Founder CEO @Ahkh3e
                  last edited by

                  @Ahkh3e Why not using the REST API which is doing exactly that out of the box?

                  A 1 Reply Last reply
                  Reply Quote 1
                  • A
                    Ahkh3e @olivierlambert
                    last edited by

                    @olivierlambert would be so much easier with the existing REST, i think it was only working with cookie auth, MAAS required header auth which was why i went down this rabbit hole

                    1 Reply Last reply
                    Reply Quote 0
                    • olivierlambertO
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

                      Ping @mathieuRA about this. Maybe that would be more efficient if you asked from the start what do you need, to know if it's doable on our side (maybe it's not, but it's better to ask in case it's trivial 🙂 )

                      A 1 Reply Last reply
                      Reply Quote 1
                      • A
                        Ahkh3e @olivierlambert
                        last edited by

                        @olivierlambert Ty! sorry!, that would have been more efficient

                        1 Reply Last reply
                        Reply Quote 0
                        • olivierlambertO
                          olivierlambert Vates 🪐 Co-Founder CEO
                          last edited by

                          Don't worry it's for you 😉

                          1 Reply Last reply
                          Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post