Am Samstag, 14. Juli 2012, 16:52:11 schrieb Xin Wang:
When I'm trying to uncompress images built by OBS (e.g. ) in
Windows, 7-Zip, PeaZip and WinRAR all fails. 7-Zip just failed to
recognize the tar ball, and WinRAR complained with message 'sparse
file is not supported'.
After some searching, I find this bug report for 7-Zip. It seems
that sparse tar package is not supported in 7-Zip either.
I saw from here that image compressing method is hard coded in
build_kiwi.sh, and using '-S' option for tar cmd.
Can this option be controlled by project config?
no, it can not atm. The best solution would be if kiwi would take over
So that appliances
which with Windows users as one of main audiances can be more friendly
(I'm buiding one now). It will be inconvenient if users have to use
GNUWin or Cygwin tools to uncompress the image, especially for
Yes, it should work easily for windows users. On the other side, we must avoid
that without sparse support the image sizes do explode. I can not remember
the details anymore, but we had the case that IIRC EC2 images were way to large
without. Interesting question is why ... shouldn't a compression algorithm compress
plenty zeros nicely?
I did some tests, use  as a base, here's the data:
size: 261M [A]
after bunzip2: 769M (ls & du) [B]
after tar xf: 895M (ls), 878M (du) [C]
tar & xz -2:
size: 217M [D]
after unxz: 895M (ls), 881M (du) [E]
after tar xf: 895M (ls & du) [F]
xz -2 (vmdk only):
size: 217M [G]
after unxz: 895M (ls), 881M (du) [H]
We can find that:
1. xz can compress sparse file [G. sparse vmdk file] and plenty zero
file [D. zero tar file] equally.
2. compression ratio of 'xz -2' is better than bzip2 here.
3. Use 'tar & xz -2', vmdk file will not be sparse after uncompress [F].
4. Use 'xz -2' to compress vmdk directly, sparse can be retained [H].
So can we use xz to compress vmdk directly, and then publish vmdk and
vmx file separately?
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-buildservice+owner(a)opensuse.org