0

I have uploaded a vmdk file to my esxi 6.7 host and when i try to unzip it from cli with

unzip largefile.zip

i get this error

Archive: largefile.zip
unzip: short read

Any ideas on what's going on?

4
  • I don't understand what you're doing. Why would you try to unzip a vmdk file?
    – joeqwerty
    Dec 19, 2020 at 15:33
  • You can't unzip a vmdk file anyway. It's not a zip file. Dec 19, 2020 at 18:03
  • i zipped it to be able to upload it faster. It got 110Gb from 240Gb. The file is a zip that contains a vmdk file. The checksum is ok so the file is not corrupted for sure but even with that running gzip -t on the file gives me the following error "gzip: invalid magic".
    – renegate
    Dec 19, 2020 at 19:25
  • 4
    Gzip and ZIP are two different archive formats. Therefore it is expected that gzip can not until your zip file. Another problem may be the ZIP file size. The original ZIP format is limited to may 4GB files (decompressed). For larger files the ZIP64 format is used. Make sure to use an ZIP64 capable tool for unzipping.
    – Robert
    Dec 19, 2020 at 20:55

2 Answers 2

2

You are unable to unzip this because the built-in unzip does not support large zipfiles (greater than 4GB).

You could fix this by uploading a version of unzip that supports zip64. I solved this by copying over the /usr/sbin/unzip binary from a VCSA VM to the host.

1
  • 's answer worked for me, VMware ESXi 7.0, still can't unzip larger files. Copied over unzip /usr/bin/unzip from vCenter Server, worked fine.
    – Stu
    Nov 16, 2023 at 17:26
-1

This may be a corrupt file! Recently, I uploaded a 20GB zip on vSphere 6.5, it takes a lot. But I checked that was a corrupt file, this may be due to the headers problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .