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

    Managing vAPPs with XOA

    Scheduled Pinned Locked Moved Xen Orchestra
    10 Posts 5 Posters 1.0k Views 5 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 Offline
      Ajmind 0
      last edited by

      We are managing in XCP-ng Center vAPPs in order to group VMs and to start, restart or stop them in a controlled order and time.

      I have not found this to be possible XOA from the sources. Is this not implemented, (yet)?

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

        Hi,

        We tried to add that, but we've seen little benefit in the end, nobody asked neither, so we dropped it.

        1 Reply Last reply Reply Quote 0
        • T Offline
          Toni
          last edited by

          vApps are the main reason for me to use XCP-ng Center.

          For all my systems I always create a vAPP, which I call Start.
          The start order for all VMs and the time delay are then stored here.
          When you shut down, this list is automatically processed in reverse order.

          vApps is one of the features I miss most in XenOrchestra.

          If necessary, from XCP-ng 8.3 onwards I have to switch to the command line to work with vApps.

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

            Well, you are the first one to report this 🙂

            Thanks for your feedback, hopefully, more people or companies are doing the same and tell us!

            A P T 3 Replies Last reply Reply Quote 0
            • A Offline
              Ajmind 0 @olivierlambert
              last edited by Ajmind 0

              @olivierlambert

              Ups, I was this first here to report the lack of managing vAPPS.

              And I second the requirement to include it. 🤗
              I do not know how else I could manage the start order and start delay of included VMs.

              1 Reply Last reply Reply Quote 0
              • P Offline
                P6R @olivierlambert
                last edited by

                @olivierlambert

                I'll third the suggestion. There is no other way that I can find to manage startup and shutdown order of VMs which is critical for our infrastructure.

                1 Reply Last reply Reply Quote 0
                • T Offline
                  Toni @olivierlambert
                  last edited by Toni

                  @olivierlambert
                  Hello,
                  there's actually not much missing for implementation.
                  start-delay is already present in the VM settings.

                  Two parameters are missing:

                  • order
                  • shutdown-delay (In case you need a delay when shutting down. I have no idea if anyone needs this.)

                  The vApp is created with the following command:

                  xe appliance-create name-label=name-label [name-description=name-description]
                  

                  The VMs are added to the vApp with the following command:

                  xe vm-param-set uuid=VM-UUID appliance=appliance-uuid
                  

                  Remove from vApp:

                  xe vm-param-set uuid=VM-UUID appliance=
                  

                  vApp-Start:

                  xe appliance-start uuid=appliance-uuid [paused=true|false]
                  

                  vApp-Stop:

                  xe appliance-shutdown uuid=appliance-uuid [force=true|false]
                  

                  If multiple VMs have the same order number, the longest start delay wins before VMs with the next order number are started. The same applies in reverse order for the shutdown-delay when shutting down a vApp.

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

                    I was talking about an UI implementation. vApps already exists in XAPI.

                    C 1 Reply Last reply Reply Quote 1
                    • C Offline
                      cocoon XCP-ng Center Team @olivierlambert
                      last edited by

                      I would just add a wish here:

                      Would be great for future (of course best tomorrow) to have all the features from VMware vCloud Director regarding Template vApps + API 😸

                      Just a short compact list:

                      • Save vApps as templates containing all VMs
                      • Organize these Templates in Catalogs
                      • Save Network and Firewall Rules with it (in vCloud DIrectory you can isolate each vApp so be able to really contain same MAC-Addresses identical clones and use a router / fw appliance automatically deployed that uses NAT rules to get into the isolated environments, NSX previous vShield Manager)
                        a short youtube video (there might be other better ones but it shows the process): https://www.youtube.com/watch?v=fzoV371vnzs
                      • be able to use API for automation to deploy vApps and modify network / fw rules

                      ...

                      • Tenants might be overkill ^^
                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO Offline
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        That's a bit re-inventing the wheel vs Terraform maybe? 🤔

                        1 Reply Last reply Reply Quote 0
                        • cairotiC cairoti referenced this topic on
                        • First post
                          Last post