Symptoms:
vmware.log :Cannot open the configuration file /vmfs/volumes/datastore/virtual machine.vmx.Failed to create temporary file, The file already exists (3). errno: 17An error occurred while creating temporary file for /vmfs/volumes/datastore/VM directory/VM name.vmx: The file already existTo resolve this issue, Delete the .vmx~ file:
vm name.vmx~cd /vmfs/volumes/datastore/VM directoryls -ltrah for file in *;do vmfsfilelockinfo -p "$file" | awk '{FS = "\n"; RS = ""} {print $2 , $7}';donevim-cmd vmsvc/getallvmsvim-cmd vmsvc/power.getstate <vmid from step 3>vim-cmd vmsvc/power.on <vmid from step 3>ls -ltrahmv vm name.vmx~ vm name.vmx_bakvim-cmd vmsvc/power.on <vmid from step 3>