Virtual Machine failed to power on due to NFSLock
search cancel

Virtual Machine failed to power on due to NFSLock

book

Article ID: 392291

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • Virtual Machine failed to power.
  • In the /var/log/vmkernel log file, there are entries similar to:
WARNING: NFSLock: ####: File is being locked by a consumer on host <ESXi hostname-01> with read-only lock.
 

Environment

VMware vSphere ESXi 7.0.3

Cause

There is this VM process running on <ESXi hostname-01>.
Example:
lsof | grep <Virtual Machine Name>
####  hostd  FILE  ## /vmfs/volumes/<Datastore>/<Virtual Machine Name>/####-flat.vmdk

Resolution

  • Restart hostd service on <ESXi hostname-01>.
  • Reboot <ESXi hostname-01>.