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

    Export to ova from command line

    Scheduled Pinned Locked Moved Solved Backup
    11 Posts 6 Posters 6.4k 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.
    • olivierlambertO
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Ping @julien-f

      1 Reply Last reply
      Reply Quote 0
      • DanpD
        Danp Pro Support Team
        last edited by

        Looks like you can do this with XO CLI --

        xo-cli vm.export vm=a01667e0-8e29-49fc-a550-17be4226783c @=vm.xva

        From https://github.com/vatesfr/xen-orchestra/blob/master/packages/xo-cli/README.md

        D 1 Reply Last reply
        Reply Quote 0
        • D
          Dude417 @Danp
          last edited by

          @Danp

          That looks like xva format ...not ova ??? unless I am reading something wrong ??

          VM export

          xo-cli vm.export vm=a01667e0-8e29-49fc-a550-17be4226783c @=vm.xva

          Or can I simply change the file extension ?? ( ie; @=vm.ova ) ??

          DanpD 1 Reply Last reply
          Reply Quote 0
          • DanpD
            Danp Pro Support Team @Dude417
            last edited by

            @Dude417 said in Export to ova from command line:

            That looks like xva format ...not ova ??? unless I am reading something wrong ??

            Ah... I overlooked that. Not sure if OVA is supported here without looking into it further.

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

              @Dude417 Hello, you need to use the format param for that:

              xo-cli vm.export vm=a01667e0-8e29-49fc-a550-17be4226783c format=ova @=vm.ova
              

              I've also just added OVA support for VM export in the REST API: https://github.com/vatesfr/xen-orchestra/blob/master/packages/xo-server/docs/rest-api.md#vm-export

              D 1 Reply Last reply
              Reply Quote 2
              • D
                Dude417 @julien-f
                last edited by

                @julien-f

                Awesome ! Thank you !
                I'll try to test that today.

                1 Reply Last reply
                Reply Quote 0
                • R
                  rfx77
                  last edited by

                  Can this also be done without compression?

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

                    @rfx77 Compression is only supported for XVA format and is disabled unless compress is passed.

                    A 1 Reply Last reply
                    Reply Quote 0
                    • A
                      ainsean @julien-f
                      last edited by

                      @julien-f said in Export to ova from command line:

                      compress

                      is there a way to export xoa via xe cli command?

                      A 1 Reply Last reply
                      Reply Quote 0
                      • A
                        ainsean @ainsean
                        last edited by

                        @ainsean got it
                        xe vm-export vm=uuid filename=path compress=true

                        1 Reply Last reply
                        Reply Quote 0
                        • olivierlambertO olivierlambert marked this topic as a question on
                        • olivierlambertO olivierlambert has marked this topic as solved on

                        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