"Error: Failed to initialize swap file" powering on a virtual machine
book
Article ID: 342632
calendar_today
Updated On:
Products
VMware vCenter ServerVMware vSphere ESXi
Issue/Introduction
This article provides information to troubleshoot and fix problems when a VM fails to powering on due to swap file problems.
Symptoms:
Virtual machine (VM) fails to power on with the error:
Error: Failed to initialize swap file
The ESXi hostd.log shows messages similar to the below for the affected VM:
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. -->
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