Vmware esxi – vmkfstools returns error when trying to copy thin vmdk

vmware-esxi

When trying to copy a thin vmdk on esxi 5 using vmkfstools like this:

vmkfstools -i IPFire-flat.vmdk -d thin IPFire-Template-flat.vmdk

I get this error:

DiskLib_Check() failed for source disk. The file specified is not a
virtual disk (15).

I can perfectly use the vmdk in my vm so I am not exactly sure what is wrong.

How can I fix it?

Best Answer

Using vmkfstools, you need to target the small IPFire.vmdk file, not the -flat.vmdk file. Leave -flat out of the destination file name as well.