Hi sopon ,
welcome to the community .
To prevent duplicate access to active virtual machine files, ESX hosts establish a lock on these files. In certain circumstances, these locks may not be released when the virtual machine is powered off. The files cannot be accessed if they are locked, and the virtual machine cannot power on. These virtual machine files are commonly affected by lock issues: .vswp vmware.log -flat.vmdk .vmx Identifying the locked file To identify the locked file, try to power on the virtual machine. During power on, an error may display or be written to the virtual machine’s log. The error and the log entry identify the virtual machine. Connect VMware Infrastructure (VI) Client to either the ESX host or to the VirtualCenter Server. Locate the affected virtual machine, and try to power it on. Open a remote console window for the virtual machine. If the virtual machine is unable to power on, an error on the remote console screen may display with the name of the affected file. If an error does not display, proceed to the next step to look in the vmware.log file for the virtual machine. Log in as root to the ESX host using an SSH client. To confirm that the virtual machine is registered on the server and to obtain the full path to the virtual machine, run the command: [root@esxhostname]# vmware-cmd -l The output returns a list of the virtual machines registered to the ESX host. Each line contains the full path of a virtual machine’s .vmx file. For example: /vmfs/volumes///.vmx Record this information as it will be required in the remainder of this process. This is the referenced in the remainder of the article. Verify that the affected virtual machine appears in this list. If it is not listed, the virtual machine is not registered on this ESX host. The host on which the virtual machine is registered typically holds the lock. Ensure that you are connected to the proper host before proceeding. To move to the virtual machine’s directory, run the command: [root@esxhostname]# cd /vmfs/volumes// Use a text viewer to read the contents of the vmware.log file. At the end of the file, look for error messages that identify the affected file.