ESXi fails to join the Active Directory (AD) domain. Attempting to start the Likewise Service Manager Daemon ( Lwsmd ) fails and returns LW_ERROR_NO_SUCH_SERVICE or unresponsive service errors.
The following symptoms are observed:
Domain join operations fail with the following errors: ERROR_FILE_NOT_FOUND [code 0x00000002]
Execution of the command /usr/lib/vmware/likewise/bin/lwsm list reveals that Likewise services (such as lsass, lwio, and netlogon) are in a stopped or dead state.
/usr/lib/vmware/likewise/bin/lwsm listlwreg running (sm: #######)eventlog stoppedlsass stoppedlwio stoppednetlogon deadrdr stopped
Manual initialization of the lwsmd service fails, outputting the following error: Error: LW_ERROR_SERVICE_UNRESPONSIVE (41203)
/etc/init.d/lwsmd start[starting lsass service] Starting service dependency: netlogonError: LW_ERROR_SERVICE_UNRESPONSIVE (41203)The service is not responding to requestsFailed to query status from LSA service. Error code 2 (ERROR_FILE_NOT_FOUND).VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
The Likewise registry database ( /etc/likewise/db/registry.db ) contains unexpected or inconsistent entries that prevent the lwsmd service from initializing correctly.
To resolve this issue, the corrupted database file must be replaced with a healthy file from a functional ESXi host.
Note: The functional ESXi host utilized for this procedure must be running the exact same version and build number as the affected host.
Stop the Likewise service.
/etc/init.d/lwsmd stop
Identify any stale lwsmd processes:
ps | grep lwsm
The first column is the Parent ID
If processes persist, terminate them:
kill -9 ####.
A functional ESXi host running the identical build must be identified.
On the functional host, the healthy database file must be located at /etc/likewise/db/registry.db and copied to a temporary location using a secure file transfer protocol (e.g., SCP or WinSCP).
On the affected host, the corrupted database file must be backed up by renaming it. This can be achieved by executing the following command:
mv /etc/likewise/db/registry.db /etc/likewise/db/registry.db.bak
The healthy registry.db file extracted in Step 3 must be transferred into the /etc/likewise/db/ directory on the affected host.
The file permissions and ownership on the transferred file must be verified to match the original settings.
chmod 600 /etc/likewise/db/registry.db
Restart lwsmd service.
/etc/init.d/lwsmd restart
Verify that all likewise service are started correctly
/usr/lib/vmware/likewise/bin/lwsm list
Once the host is online or services are restarted, the domain join operation must be retried.