Is there any shell command using which I can determine the format of a disk image file? I want to check that disk image file is in which of these formats: vmdk, vhd of raw file.
Virtualization – Determine Disk Image File Format: VMDK, VHD, or Raw
disk-imageraw-diskvhdvirtualizationvmware-vmdk
Related Topic
- Poor performance with vmdk mounted as loop device even after conversion to raw
- ESXi 5 doesn’t recognize Raw disk image
- Qemu.img: conversion of a VMDK image failed with error “invalid VMDK image descriptor”
- Which is better image format, raw or qcow2, to use as a baseimage for other VMs
- Windows – How to deploy VHD image to physical disk
- VMware – Convert Multiple VMware Disk Images to Single Disk Image
- KVM image format convertion: raw thin provisioning to raw preallocated
- Virtualization – How to Convert .TIB File to .VHD/.VMDK
Best Answer
You can determine the format of a virtual disk image with the
qemu-img info
command. For example:Use
qemu-img -h
to see the supported formats for your specific version. They will appear near the end of the output. For example: