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

    Auto Power ON says Invalid Parameters

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    21 Posts 4 Posters 2.2k Views 2 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.
    • M Offline
      msagautam @olivierlambert
      last edited by msagautam

      @olivierlambert Thank you.
      It looks like the backup generated from a different server does not work well for options such as "auto power on" when restored on a new server.
      But if I just build xo from source in a new VM on the new server, "auto power on" works perfectly.

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

        @msagautam said in Auto Power ON says Invalid Parameters:

        @olivierlambert Thank you.
        It looks like the backup generated from a different server does not work well for options such as "auto power on" when restored on a new server.
        But if I just build xo from source in a new VM on the new server, "auto power on" works perfectly.

        Pinging @julien-f if he knows about that.

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

          This should be fixed on master: https://github.com/vatesfr/xen-orchestra/commit/e171d8ed0e786772c9ccdb7dd4127d42faae141a

          0 julien-f committed to vatesfr/xen-orchestra
          fix(xo-server/vm.set): add `auto_poweron` to params
          
          Related to b8524732ce5fc466ef73664ff02cd4e09fca7ad9
          
          Fixes #4295
          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Yeah but is it affecting VMs backup before the fix? I mean, if you restore a VM with the issue, even with the fix, should it work?

            1 Reply Last reply Reply Quote 0
            • M Offline
              msagautam
              last edited by

              I backed up the server 3 days ago, which is when e171d8e commit has been made. So it is most likely that I have cloned from github and installed xo-server before this fix.
              To answer oliver's question, the restore would still have the issue because the xo-server built is before the fix. So I will have to fetch the update and rebuild xo-server again, and then I have to backup for future restores.

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

                Just to be clear: if you are on the latest commit, does restoring of an "old" backup (done when it was broken) works?

                1 Reply Last reply Reply Quote 0
                • M Offline
                  msagautam
                  last edited by msagautam

                  Are you asking whether I can auto-power on the restored VMs from the latest commit of orchestra?
                  Answer: Yes, it works!
                  Reason: Looks like the parameter was not available before and julien-f has fixed it by adding the parameter in this commit: https://github.com/vatesfr/xen-orchestra/commit/e171d8ed0e786772c9ccdb7dd4127d42faae141a
                  Thank you all!

                  0 julien-f committed to vatesfr/xen-orchestra
                  fix(xo-server/vm.set): add `auto_poweron` to params
                  
                  Related to b8524732ce5fc466ef73664ff02cd4e09fca7ad9
                  
                  Fixes #4295
                  C 1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Thanks for your feedback 🙂

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

                      @msagautam said in Auto Power ON says Invalid Parameters:

                      Are you asking whether I can auto-power on the restored VMs from the latest commit of orchestra?

                      He, without any doubt, wanted to know, if that also works with old backups, which have been created before the fix was submitted. (As of: Are old backups still broken?)

                      Your answer doesn't say if you power up old (pre fix) or new (post fix) created backups. 😉

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        msagautam @cg
                        last edited by

                        @cg it works on restored VMs from pre-fix backups.
                        I haven't tested post fix backups yet. However, it also works on newly installed VMs.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post