VM invalid state, cannot Register VM due to lock
search cancel

VM invalid state, cannot Register VM due to lock

book

Article ID: 392268

calendar_today

Updated On: 03-27-2025

Products

VMware vCenter Server

Issue/Introduction

.vmx fails to register in vCenter or host inventory, adding it to the inventory will show up as invalid with the full path to the .vmx.

Cause

A file lock is being held on the VM.

Resolution

Determine the file lock owner:

vmfsfilelockinfo -p /link/to/vmx -v <vCenterIP/FQDN> -u administrator@vsphere.local

Remove the lock


Additional resources:

Virtual machines appear as invalid or orphaned or inaccessible.