XE vm-export compress options
-
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? -
Have you tried
compress=zstd
?See these commits --
https://github.com/vatesfr/xen-orchestra/commit/270185d9dcaaad00899722112058fccda814d505
https://github.com/vatesfr/xen-orchestra/commit/bce0bf05e587ca2df46fd78b57d4553a03887b92
-
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?
-
@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. -
It's handled automatically.
-
THANKS! That is a great addition!
-
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 -
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