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

    Automatic startup and shutdows VMs at the specified time

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    10 Posts 3 Posters 559 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.
    • abudefA Offline
      abudef
      last edited by

      Hello, I would like to ask if it is possible to set up automatic startup and shutdown of VMs at the specified time?

      1 Reply Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team @abudef
        last edited by

        @abudef Indeed, the delay is in milliseconds.

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

          Hi,

          That should be doable with the "job" section of XO.

          abudefA 1 Reply Last reply Reply Quote 0
          • abudefA Offline
            abudef @olivierlambert
            last edited by

            @olivierlambert said in Automatic startup and shutdows VMs at the specified time:

            Hi,

            That should be doable with the "job" section of XO.

            Yeah, that's exactly it, thank you very much, I missed it somehow. I'll check the documentation for details.

            1 Reply Last reply Reply Quote 1
            • olivierlambertO olivierlambert marked this topic as a question on
            • olivierlambertO olivierlambert has marked this topic as solved on
            • abudefA Offline
              abudef
              last edited by

              What units are used here? I can't find that information in the documentation 🤷

              2b0de075-4185-4a9e-9509-184c397e0602-obrazek.png

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

                Very likely seconds

                abudefA 1 Reply Last reply Reply Quote 0
                • abudefA Offline
                  abudef @olivierlambert
                  last edited by

                  @olivierlambert said in Automatic startup and shutdows VMs at the specified time:

                  Very likely seconds

                  Could someone please try this? I set it to 120, aka 2 minutes, and the VM practically immediately went into force shutdown.

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

                    Try 10000, if it's ms it will take 10s then

                    abudefA 1 Reply Last reply Reply Quote 0
                    • abudefA Offline
                      abudef @olivierlambert
                      last edited by

                      @olivierlambert Yeah, I used that of course, it looks like milliseconds, I just wanted to be sure because I couldn't track it down anywhere.

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

                        Ping @julien-f to be sure

                        1 Reply Last reply Reply Quote 0
                        • julien-fJ Offline
                          julien-f Vates 🪐 Co-Founder XO Team @abudef
                          last edited by

                          @abudef Indeed, the delay is in milliseconds.

                          1 Reply Last reply Reply Quote 1
                          • olivierlambertO olivierlambert has marked this topic as solved on
                          • First post
                            Last post