VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
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.
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.