YYYY-MM-DDTHH:MM:SSZ info hostd[2##1##6] [Originator@6876 sub=Vimsvc.TaskManager opID=esxui-8##a-6##f user=<username>] Task Created : haTask-22-vim.VirtualMachine.createSnapshot-3###4YYYY-MM-DDTHH:MM:SSZ verbose hostd[2##1##6] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/<datastore>/<vmname>/<vmname>.vmx opID=esxui-8##a-6##f user=<username>] Create Snapshot: Test, memory=false, quiescent=false state=5YYYY-MM-DDTHH:MM:SSZ info hostd[2##1##6] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/<datastore>/<vmname>/<vmname>.vmx opID=esxui-8##a-6##f user=<username>] State Transition (VM_STATE_ON -> VM_STATE_CREATE_SNAPSHOT)YYYY-MM-DDTHH:MM:SSZ verbose hostd[2##1##6] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/<datastore>/<vmname>/<vmname>.vmx opID=esxui-4##8-5##4] Handling vmx message 439443190: The snapshot operation is not allowed on this VM due to a missing or renamed configuration file.--> If the file or path has been renamed, shut down this VM and restart VMware ESX.-->YYYY-MM-DDTHH:MM:SSZ info hostd[2##1##6] [Originator@6876 sub=Vimsvc.ha-eventmgr opID=esxui-4##8-5##4] Event 37147 : Error message on <vmname> on <ESXi_host> in ha-datacenter: The snapshot operation is not allowed on this VM due to a missing or renamed configuration file. If the file or path has been renamed, shut down this VM and restart VMware ESX.YYYY-MM-DDTHH:MM:SSZ verbose hostd[2##1##6] [Originator@6876 sub=Vigor.Vmsvc.vm:/vmfs/volumes/<datastore>/<vmname>/<vmname>.vmx opID=esxui-4##8-5##4] Create Snapshot translated error to vim.fault.InvalidSnapshotFormatYYYY-MM-DDTHH:MM:SSZ verbose hostd[2##1##6] [Originator@6876 sub=Vigor.Vmsvc.vm:/vmfs/volumes/<datastore>/<vmname>/<vmname>.vmx opID=esxui-4##8-5##4] Create Snapshot message: An error occurred while saving the snapshot: A required file was not found.--> An error occurred while taking a snapshot: A required file was not found.-->YYYY-MM-DDTHH:MM:SSZ verbose hostd[2100304] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/datastore/<vmfolder>/vmname.vmx opID=esxui-4###8-5###4] UpdateFileInfo: Failed to find file size for /vmfs/volumes/datastore/<vmfolder>/vmname.vmdk: No such file or directoryYYYY-MM-DDTHH:MM:SSZ verbose hostd[2100304] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/datastore/<vmname>/vmname.vmx opID=esxui-4###8-5###4] UpdateFileInfo: Failed to find file size for /vmfs/volumes/datastore/<vmname>/vmname.vmx: No such file or directoryThe root cause is a missing or inaccessible virtual machine file (typically the .vmx or .vmdk file) at the path specified in the VM configuration. This occurs when a file referenced in the inventory has been manually deleted, renamed, or moved on the datastore while the VM is registered, leading to a state where the management agent (hostd) cannot calculate file sizes or lock the required resources for a snapshot operation.
Specific scenarios identified in the logs include:
To address the issue, please refer the below resolution.
Scenario 1: vmname.vmkd files of the VM hard disk is missing.
Scenario 2: Orphaned snapshot file
cd /vmfs/volumes/datastore/vmname/
ls -l
mkdir delete_me
mv snapshot_file ./delete_me
mv vmname-000001.vmdk ./delete_me
mv vmname.vmsd ./delete_me
Scenario 3: vmname.vmx file is missing.