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

    Managing vAPPs with XOA

    Scheduled Pinned Locked Moved Xen Orchestra
    11 Posts 6 Posters 2.4k Views 6 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.
    • 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
                      • G Offline
                        gb.123
                        last edited by

                        @olivierlambert
                        +1 For creating vApps GUI in XO
                        Reason:
                        I recently had this configuration:

                        VM1 - Delay 90 Seconds
                        VM2 - Delay 100 Seconds
                        VM3 - Delay 0 Seconds

                        The VM3 instead of starting first, always starts last without fail.
                        One difference I noticed is that VM3 is UEFI vs VM1 & 2 being in BIOS mode.

                        I read elsewhere in the forum that vApps is the only reliable way to have an order.
                        Maybe if we can somehow ensure that delay works, vApps will become less significant ?

                        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