Unable to power on VM due to file lock
search cancel

Unable to power on VM due to file lock

book

Article ID: 393474

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

When attempting to start up a virtual machine (VM), it fails to power on stating it is unable to access a file since it is locked. You will receive any of these errors:

Unable to access file /vmfs/volumes/########-########-####-#########/<file/disk name> since it is locked

 

Failed to power on VM.
Could not power on virtual machine: Lock was not free.
Failed to initialize swap file "/vmfs/volumes/########-########-####-#########/<file/disk name>".
File system specific implementation of OpenFile[file] failed
File system specific implementation of CreateFile[file] failed

Environment

VMware vSphere ESXi (All Versions)

Cause

Locked virtual disks can occur as a result of, but are not limited to, the following:

  • A powered-on virtual machine contains locks on all files in use by the owning ESXi host to facilitate read and write access.
  • Other locks may be created by hot-adding disks to snapshot-based backup appliances during the backup process.
  • Failure to create a lock / start a virtual machine can occur if an unsupported disk format is used or if a lock is already present.

Resolution

Consult KB article 316576 for troubleshooting locked virtual disks:

Consult KB article 314365 for troubleshooting VM file locks on ESXi hosts: