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

    XE vm-export compress options

    Scheduled Pinned Locked Moved Xen Orchestra
    xo export
    8 Posts 4 Posters 4.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.
    • D Offline
      DustinB
      last edited by

      What are the two options for compression from the cli? Obviously I can use xe vm-export vm=uuid filename=path compress=true but within XO there are two options, how can I call those via the cli?

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

        Have you tried compress=zstd?

        See these commits --

        https://github.com/vatesfr/xen-orchestra/commit/270185d9dcaaad00899722112058fccda814d505

        https://github.com/vatesfr/xen-orchestra/commit/bce0bf05e587ca2df46fd78b57d4553a03887b92

        0 julien-f committed to vatesfr/xen-orchestra
        feat(xen-api/examples/export-vm): add --gzip and --zstd
        0 badrAZ committed to vatesfr/xen-orchestra
        feat(xo-server): provide zstd compression for VM export (#3878)
        
        See #3773
        S 1 Reply Last reply Reply Quote 1
        • S Offline
          Strebor @Danp
          last edited by

          @Danp

          When xe vm-export is run with compress=zstd, does the xe vm-import command need to be told that compression was used, or does the xe vm-import command see that zstd was used?

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

            @Strebor AFAICS, xe vm-import doesn't offer an option to specify the compression level, so I am going to assume that it handles this automatically.

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

              It's handled automatically.

              S 1 Reply Last reply Reply Quote 1
              • S Offline
                Strebor @olivierlambert
                last edited by

                @olivierlambert

                THANKS! That is a great addition!

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

                  Well, to be fair, it's pretty logical: you only have the control on compression format when you export. When you import, you already have your file in a previously selected format. So yeah, it's up to you to detect it, and that's what we do when we added zstd compression 🙂

                  S 1 Reply Last reply Reply Quote 1
                  • S Offline
                    Strebor @olivierlambert
                    last edited by

                    @olivierlambert

                    Haha, I lost belief in 'logical' many years ago. What I think is logical and what others think is logical, often is very different 😉
                    So, I still think it's great, cause it takes one command out of my CLI VM import pipe line

                    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