The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
Cannot power on a virtual machine located in an NFS datastore (2037507)
- You are unable to power on a virtual machine located in an NFS datastore.
- Powering on a virtual machine that is located in a NFS datastore fails.
- You see an error similar to:
Failed to lock the file. Cannot open the disk '/vmfs/volumes/UUID/VM_Name/VM_Name.vmdk' or one of the snapshot disks it depends on.
- The /vmfs/volumes/datastore_name/virtual_machine_folder/vmware.log file, contains entries similar to:
vmx| DISKLIB-VMFS : "/vmfs/volumes/UUID/VM_Name/VM_Name-flat.vmdk" : failed to open (Failed to lock the file): AIOMgr_Open failed. Type 3
vmx| DISK: Cannot open disk "/vmfs/volumes/UUID/VM_Name/VM_Name.vmdk": Failed to lock the file (16392).
vmx| Msg_Post: Error
vmx| [msg.disk.noBackEnd] Cannot open the disk '/vmfs/volumes/UUID/VM_Name/VM_Name.vmdk' or one of the snapshot disks it depends on.
- The /var/log/vmkernel file, contains entries similar to:
NFSLock: 2819: failed to get lock on file VM_Name.vmdk 0x000000000000 on ip> (ip): Busy
WARNING: NFSLock: 2128: disk is being locked by other consumer
NFSLock: 2819: failed to get lock on file <VM_Name>-flat.vmdk 0x000000000000 on ip (ip): Busy
To resolve this issue, delete the .lck-xxxx file located in the virtual machine folder.
To delete the .lck-xxxx file:
- Ensure the virtual machine is powered off.
- Connect to the ESXi/ESX host using Secure Shell (SSH). For more information, see Connecting to an ESX host using a SSH client (1019852).
- Go to the virtual machine folder, run the command:
- List all files including the hidden files, run the command:
- Remove the lock file, run the command:
Where xxxx is a sequence of numbers. For example, lck-001455721.
Note: Ensure the virtual machine is not running.
- Power on the virtual machine.
Note: When the virtual machine is powered on, you see a new .lck-xxxx file generated in the virtual machine folder. This is expected behavior.
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.