VMware Cloud Community
atakacs
Enthusiast
Enthusiast

ZIP CLI to use compression within datastore ?

Hello

Is there any way to invoke zip (like) compression / decompression on datastore objects using ESXi command line ?

For instance I have to upload a large virtual disk file into a datastore and it would save me quite a lot of time to zip it first, fastSCP it and finally decompress directly on the target machine.

Any pointer most welcome.

Tags (3)
0 Kudos
6 Replies
nielse
Expert
Expert

You could try to export your VM as an OVF template and import that.

@nielsengelen - http://foonet.be - VCP4/5
0 Kudos
atakacs
Enthusiast
Enthusiast

Does OVF provide buil-in compression ?

0 Kudos
AndreTheGiant
Immortal
Immortal

ESXi include the unzip command. So you can connect with SSH and just use it to decompress an archive.

You can try to copy a static version of zip command to make compressed archives.

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
atakacs
Enthusiast
Enthusiast

Interresting - thanks !

As for the zip executable what distro would you get it from ?

0 Kudos
AndreTheGiant
Immortal
Immortal

Distro is not relevent.

The requirement is that must be a static version (to avoid library dependency).

To check if a file is static linked just use ldd (on Linux).

Or you can look for download the minizip contrib package of busybox.

But remember that adding custom binaries on ESXi is officially not supported.

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
atakacs
Enthusiast
Enthusiast

Or you can look for download the minizip contrib package of busybox.

I'd guess it would be the "cleanest" approach... but where would I find it as an executable  ? (to be honest I don't want to build the whole thing - I don't even have a *nix box handy right now...)

0 Kudos