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

    Feature Request / Community Input – VM Boot Order & Delayed Startup

    Scheduled Pinned Locked Moved Management
    11 Posts 3 Posters 519 Views 4 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.
    • C Offline
      Cygace
      last edited by

      Hello everyone,

      I’m currently deploying a complete infrastructure for a client who previously used Hyper-V, where we could easily configure a VM boot order as well as startup delays between VMs.
      This ensured a clean sequence:
      1. XOA
      2. Domain Controller
      3. Application servers, etc.

      ⸻

      🔎 What I have verified so far

      I contacted the official XCP-ng / XOA support, and they confirmed that this functionality does NOT currently exist, even on the paid (Premium) version of XOA.

      They also confirmed that:
      • There is no native way to set a boot priority in XCP-ng
      • There is no parameter such as order= or delay= in xe vm-param-set
      • XOA does not provide a UI for this either
      • The orchestration engine does not currently support dependent startup

      ⸻

      ❓ What I’m asking the community

      Before I build something custom (scripts, hooks, cron jobs, etc.), I would like to know:

      👉 Has anyone implemented a reliable way to:
      • Force a boot order for VMs
      • Introduce a configurable delay between VM startups
      • Ensure XOA starts first, then the Domain Controller, then other servers

      👉 Is there perhaps:
      • A community script
      • A known workaround
      • A XenAPI trick
      • Or an unofficial feature hidden somewhere?

      ⸻

      📌 Environment
      • XCP-ng host
      • XOA Premium
      • ~5 VMs (DC, financial software, POS system, XOA itself, etc.)
      • Need clean deterministic startup order after host reboot or power outage

      ⸻

      Any insight or community solutions would be greatly appreciated!
      This is something my client relied on in Hyper-V, so I’m trying to replicate the behavior in XCP-ng as cleanly as possible.

      Thanks in advance!

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

        Hi,

        You can use vApp for that.

        1 Reply Last reply Reply Quote 0
        • C Offline
          Cygace @Cygace
          last edited by

          said in Feature Request / Community Input – VM Boot Order & Delayed Startup:

          Hello everyone,

          I’m currently deploying a complete infrastructure for a client who previously used Hyper-V, where we could easily configure a VM boot order as well as startup delays between VMs.
          This ensured a clean sequence:

          1. XOA
          2. Domain Controller
          3. Application servers, etc.

          ⸻

          🔎 What I have verified so far

          I contacted the official XCP-ng / XOA support, and they confirmed that this functionality does NOT currently exist, even on the paid (Premium) version of XOA.

          They also confirmed that:
          • There is no native way to set a boot priority in XCP-ng
          • There is no parameter such as order= or delay= in xe vm-param-set
          • XOA does not provide a UI for this either
          • The orchestration engine does not currently support dependent startup

          ⸻

          ❓ What I’m asking the community

          Before I build something custom (scripts, hooks, cron jobs, etc.), I would like to know:

          👉 Has anyone implemented a reliable way to:
          • Force a boot order for VMs
          • Introduce a configurable delay between VM startups
          • Ensure XOA starts first, then the Domain Controller, then other servers

          👉 Is there perhaps:
          • A community script
          • A known workaround
          • A XenAPI trick
          • Or an unofficial feature hidden somewhere?

          ⸻

          📌 Environment
          • XCP-ng host
          • XOA Premium
          • ~5 VMs (DC, financial software, POS system, XOA itself, etc.)
          • Need clean deterministic startup order after host reboot or power outage

          ⸻

          Any insight or community solutions would be greatly appreciated!
          This is something my client relied on in Hyper-V, so I’m trying to replicate the behavior in XCP-ng as cleanly as possible.

          Thanks in advance!

          Hello Olivier, vApp ???

          What do you mean ?

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            Pilow @Cygace
            last edited by

            @Cygace in advanced settings of VMs
            there is cdf4896a-6105-446e-9444-158626886878-image.png

            I know at scale it is not easy with 100+ VMs but...
            try to put 40s for all VMs, except 20s for domain controller, and 0 for XOA ?

            that will not change start order as you think it, but in case of a full restart should do the job ?

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

              https://docs.xcp-ng.org/appendix/cli_reference/#appliance-commands

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

                @olivierlambert hmmm could we consider an appliance as a "group of VMs" ?

                if appliance is destroyed, what about the underlying VMs ? still there ?

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

                  Yes, it's a way to group VMs and to get boot prio for them.

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

                    @olivierlambert nice !
                    a new discover...

                    no way to manage by UI in xo5/xo6 AFAIK ?

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

                      Nope, it was never a priority vs all the rest. But the API is there, so it's something we could do at some point. Adding @gregoire in the loop so we are sure it's somewhere in the backlog.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        Cygace
                        last edited by

                        Hello everyone,

                        We have use now XCP-ng Standalone (paid version) with a single host and about 8 VMs.

                        After opening a ticket with support, I received confirmation that there is currently no built-in feature in XCP-ng or XOA (even Premium) to control VM boot order or per-VM startup delays.

                        XOA’s Auto-Power-On option does not offer sequencing or delays.
                        The documentation mentions “appliances”, but even after reviewing that I don't understand how It can help me.

                        What I need is very simple:
                        1 Host 1 pool, around 8 VMs.
                        I need them to auto-start after a host reboot in a specific order, with a delay between each VM (e.g., XOA → Domain Controller → other servers, with 30 seconds delay).

                        If this cannot be done natively for now, I’ll create a startup script, but before doing that I would really appreciate feedback from others in the community who may have solved this.

                        Thanks in advance for any advice or ideas!

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

                          Create an appliance with all those VMs and configure the order and delay inside it.

                          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