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?

Andrew Schulman
  • 8,561
  • 21
  • 31
  • 47
renegate
  • 1
  • 1
  • 1
  • I don't understand what you're doing. Why would you try to unzip a vmdk file? – joeqwerty Dec 19 '20 at 15:33
  • You can't unzip a vmdk file anyway. It's not a zip file. – Michael Hampton Dec 19 '20 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 '20 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 '20 at 20:55

1 Answers1

0

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.

Moazzam
  • 1
  • 1