Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

As the title says, kvm disks that I converted and moved to ESXi are useless because I cannot use snapshots due to the fact that they are sparse disks. Does anyone have a resolution for this issue? esxi 5 free

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Log onto ESXi server using SSH and convert with vmkfstools:

vmkfstools -i mysparedisk.vmdk -d eagerzeroedthick mythickdisk.vmdk

or alternatively...

vmkfstools -i mysparedisk.vmdk -d thin mythindisk.vmdk
share|improve this answer
    
What if it was set to split at 2GB so that I have multiple vmdk files for a single virtual disk? Do I have to consolidate them first? If so what is the recommended way over ssh in esxi free (5.1)? If I don't, how do I do it without consolidating first? –  user160910 Sep 9 '13 at 2:43
    
vmkfstools does it all for you. Usually you have a disk1.vmdk file. This is a text file you can view in an editor. It references the real data files which are named like disk1-flat_<number>.vmdk or maybe disk1-s<number>.vmdk. Don't use vSphere's datastore browser as it'll hide stuff from you. Enable ssh support on your ESXi: kb.vmware.com/selfservice/microsites/… –  Martin Sep 9 '13 at 22:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.