Consolidate' task for a Virtual Machine fails with error:An error occurred while consolidating disks: Unable to save snapshot file. Checkpoint operation not supported for PCI Plugin."/var/run/log/hostd.log:
YYYY-MM-DD <Time> In(166) Hostd[2103533] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/<Datastore-UUID>/<VM-name>/<VM-name>.vmx opID=esxui-####-#### sid=######## user=root] State Transition (VM_STATE_ON -> VM_STATE_CONSOLIDATE_ALL_DISKS)YYYY-MM-DD <Time> Db(167) Hostd[2103535] [Originator@6876 sub=Vigor.Vmsvc.vm:/vmfs/volumes/<Datastore-UUID>/<VM-name>/<VM-name>.vmx] Consolidate Disks message: An error occurred while consolidating disks: Unable to save snapshot file.YYYY-MM-DD <Time> In(166) Hostd[2103546] [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 133136 : Virtual machine <VM-Name> disks consolidation failed on <ESXI-FQDN> in cluster <ESXI-FQDN> in ha-datacenter./vmfs/volumes/<datastore-UUID>/VM-Name/vmware.log has the following entries:YYYY-MM-DD <Time> In(05) vmx ######-######-auto-####-h5:####-##-##-#### SnapshotVMX_Consolidate: Starting online snapshot consolidate operation.YYYY-MM-DD <Time> In(05) vmx ######-######-auto-####-h5:####-##-##-#### Vix: [mainDispatch.c:4211]: VMAutomation_ReportPowerOpFinished: statevar=3, new AppState=1880, success=1 additionalError=0YYYY-MM-DD <Time> In(05) vmx ######-######-auto-####-h5:####-##-##-#### Turning on snapshot info cache. VM=<VM-name>.vmx.YYYY-MM-DD <Time> Er(02) vmx ######-######-auto-####-h5:####-##-##-#### DecryptWithPadding: Failed because padding is too short or too longYYYY-MM-DD <Time> Er(02) vmx ######-######-auto-####-h5:####-##-##-#### DecryptWithPadding: Failed because padding is too short or too longYYYY-MM-DD <Time> In(05) vmx ######-######-auto-####-h5:####-##-##-#### DISKLIB-VMFS: "vsan://<UUID>/<VM-ID>" : open successful (1114117) size = 0, hd = 0. Type 20
VMware vSphere ESXi 8.x
This issue occurs when a VM is encrypted while a backup or snapshot task is in progress, leading to a discrepancy in key-value pairs.
To resolve this issue, affected VM files have to be decrypted or encryption has to be disabled before attempting to consolidate the disks by following the steps below:
To Decrypt the VM:
"Unable to save snapshot file" error.Note: If vTPM device is configured on the Virtual Machine, remove the device and then perform the backup.