3

There is huge number of different formats for virtual storage files for desktop and server purposes (vmdk, qcow2, vdi, vdk, etc.). I'm writing a little script for manipulating them and would like the script to be able to distinguish between them.

Of course, it can be done via extension, but I want this to be more reliable. I tried commands file or qemu-img, but the results are not quite clear. Any idea improving my methods?

Jakub Žitný
  • 165
  • 1
  • 4

1 Answers1

1

qemu-img info should be able to recognize all the formats QEMU understands. Unfortunately, even with the formats QEMU supports, the proprietary vendors change the format, so qemu-img can't always use them

dyasny
  • 19,257