Registering a VM using template fails on a NFS Datastore with "A component of the virtual machine is not accessible on the host."
search cancel

Registering a VM using template fails on a NFS Datastore with "A component of the virtual machine is not accessible on the host."

book

Article ID: 414257

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • Create a Virtual Machine using a template or a .vmtx file fails with error "A component of the virtual machine is not accessible on the host."

 

  • In /var/run/log/hostd.log of the Host where the registration attempt is made, it complains of not being able to open the .vmtx file.

    Hostd[]: [Originator@6876 sub=Libs opID=<ID> sid=<ID> user=vpxuser:<domain-user-ID>] FILE:open error on /vmfs/volumes/<NFS Datastore>/<VM Folder>/<VM Name>.vmtx.lck: Read-only file system
    Hostd[]: [Originator@6876 sub=Libs opID=<ID> sid=<ID> user=vpxuser:<domain-user-ID>] FILE: FileIO_Lock on 'vmfs/volumes/<NFS Datastore>/<VM Folder>/<VM Name>.vmtx' failed: Read-only file system


  • To further validate the same, any attempts to create or copy a file to the same datastore fails with "Read-only file system" error.

Environment

VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x

Cause

Creating or registering a Virtual Machine is an operation that fundamentally requires write access to the datastore. In case the underlying datastore is in a Read-Only mode it won't allow to create/provision virtual machines inside it.

Resolution

To fix the issue, unmount and remount the problematic NFS Datastore on the ESXi Hosts which report a "Read-only" file system error for the NFS filesystem.

Additional Information