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 2.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.
    • D Offline
      Dude417
      last edited by

      I know I can export VM's from the XO GUI to OVA format.
      (and it works fine)

      Is there any way to export VM's to OVA format using the command line ??
      (either on XCP or XO)

      I can find plenty of examples of exporting to the XVA format, but I can't seem to find much on exporting to the OVA format.

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

        Ping @julien-f

        1 Reply Last reply Reply Quote 0
        • DanpD Offline
          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 Offline
            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 Offline
              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 Offline
                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 1
                • D Offline
                  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 Offline
                    rfx77
                    last edited by

                    Can this also be done without compression?

                    julien-fJ 1 Reply Last reply Reply Quote 0
                    • julien-fJ Offline
                      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 Offline
                        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 Offline
                          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
                          • First post
                            Last post