This article provides information to troubleshoot and fix problems when a VM fails to powering on due to swap file problems.
Symptoms:
YYYY-MM-DDTHH:MM:SS.538Z verbose hostd[2101409] [Originator@6876 sub=Vigor.Vmsvc.vm:/vmfs/volumes/DatastoreName/VMFolder/VM.vmx opID=esxui-aaaa-2140] Power On message: Module 'MonitorLoop' power on failed.
--> Directory entry insert operation failed on <FD c0 r9> with: Already exists.
--> File system specific implementation of CreateFile[file] failed
--> Failed to initialize swap file '/vmfs/volumes/DatastoreName/VMFolder/VM.vswp' : Not found
--> Could not power on virtual machine: Not found.
--> Failed to power on VM.
--> Failed to start the virtual machine.
-->
VMware vSphere 8.x
VMware vSphere 7.x
VMware vSphere 6.x
VMX Swap Files
Using Swap Files
Failed to power on virtual machine
Impact/Risks:
Swap file problems prevent VMs from being able to power on
Reducing virtual machine memory can cause performance problems with guest operating system applications