Manually consolidate a broken or stuck snapshot chain for a VMware vSphere Virtual Machine (VM) using the vmkfstools command-line utility. When there are multiple virtual disks present on a VM and not all virtual disks have a snapshot present.
vSphere 8.0
vSphere 9.0
ESX VM snapshot deletion/consolidation is run on all disks simultaneously. When only one disk has a snapshot present manual steps must be taken.
Log in to the vSphere Client UI.
Select the target VM and navigate to Edit Settings.
Expand the Hard Disk section and check the Disk File Name.
Identify if the file name contains -000###.vmdk appended to it (e.g., VMname-000001.vmdk). This indicates the VM is running on a snapshot disk.
Shut down the guest operating system or select Power Off on the VM in vSphere.
Open an SSH session to the ESXi host and navigate to the VM's datastore directory:
cd /vmfs/volumes/<Datastore_Name>/<VM_Directory>/
Test the snapshot chain integrity against the latest snapshot descriptor file:
vmkfstools -e VMname-disk-0000###.vmdk
Confirm the command returns Snapshot consistent.
Important: If the output indicates the snapshot chain is not consistent, stop immediately. Review host logs (
vobd.log/vmware.log) and resolve chain corruption before attempting to clone.
Execute
vmkfstoolsto clone the target snapshot disk. This merges the entire snapshot chain into a single, consolidated.vmdkfile.vmkfstools -i VMname-disk-0000###.vmdk VMname-disk-consolidated.vmdk
In the vSphere UI, go to Edit Settings for the VM.
Locate the hard disk attached to the snapshot chain.
Click the X icon to remove the disk.
Crucial: Ensure you choose Remove from virtual machine only. Do NOT select "Delete files from datastore."
Click Add New Device > Existing Hard Disk.
Browse the datastore to locate and select the newly created VMname-disk-consolidated.vmdk.
Click Save / OK to apply the configuration.
Power on the VM.
Verify that the Guest OS boots cleanly and application performance is optimal.
After confirming stability, manually clean up or archive the orphaned base disk and snapshot files from the datastore.