[root@hostname:~] vim-cmd vmsvc/snapshot.removeall 3
Remove All Snapshots:
Remove all snapshots failed: (vmodl.fault.SystemError) {
faultCause = (vmodl.MethodFault) null,
faultMessage = <unset>,
reason = "Fault cause: vim.fault.GenericVmConfigFault"
msg = "A general system error occurred: Fault cause: vim.fault.GenericVmConfigFault.
vSphere 7.0.x
vSphere 8.0.x
This issue can occur if one of the snapshot chain files is defective or corrupted.
To solve this issue, please apply the following steps:
# esxcli vm process list
# find /vmfs/volumes -iname <vm_name>.vmx
# cd /vmfs/volumes/<datastore_name>/<folder_name>/<vm_name>.vmx
# mkdir vm_snapshot_temp
# mv *.vmsn ./vm_snapshot_temp/
# vm *.vmsd ./vm_snapshot_temp/
Note: After moving the VMSN and VMSD files, you can re-register the virtual machine and select "Remove All Snapshots" to delete all existing snapshots.
If you intend to delete the virtual machine entirely, re-register the VM and then choose "Delete from Disk" to remove it completely.