A Detailed Guide to Performing Domain Join Operations for ESXi Hosts
VMware ESXi 7.x
VMware ESXi 8.x
Domain join operations on ESXi hosts are failing using both the Host Client and vCenter Server, resulting in generic error messages such as "Errors in Active Directory operations" or "ERROR_GEN_FAILURE [code 0x0000001f]"
This indicates a potential issue with the underlying network connectivity, Active Directory permissions, time synchronization, or the Likewise service.
This guide outlines the steps necessary to prepare an ESXi host for joining an Active Directory domain. While the steps can be performed in any order, it is crucial to complete each step before moving on to the next.
1. Establish Network Connectivity
2. Configure Time Synchronization
3. Configure the ESXi Firewall
4. Configure and Manage the Likewise Service
[root@Host_name:~] /etc/init.d/lwsmd startStarting Likewise Service Manager[memory reservation set]Enabling activeDirectoryAll firewall rulesetErrors: Failed refresh FirewallRuleset ., Failed to enable activeDirectoryAll firewall ruleset ...failedUnable to complete Sysinfo operation. Please see the VMkernel log file for more details.: Vmkernel module necessary for this vsi call not loaded: VSI node (5007:)esxcli network firewall load, followed by starting the Likewise service using /etc/init.d/lwsmd start.5. Prepare for Domain Join
6. Join the ESXi Host to the Domain
When attempting to join an ESXi host or Linux client to the a domain, the process may fail with error "NERR_DCNotFound [code 0x00000995] ". The likewise.log or system logs show multiple CLDAP timed out messages for various Domain Controllers.
Log entries may look similar to:
Likewise.log:2025-12-08T15:42:53.058 INFO lsass: Domain join request:{ pszHostname = "XXXXX" pszHostDnsDomain = "XXXXX.net" pszDomain = "XXXXXXX" pszOU = <null> pszUsername = "XXXXXXXX" pszPassword = <sensitive> pszOSName = "unknown" pszOSVersion = "unknown" pszOSServicePack = "Likewise Open 8.0.3" dwFlags = 1}YYYY-MM-DDTHH:MM:SS.058 INFO lsass: Joining domain xxxxxxxxxx.CORPYYYY-MM-DDTHH:MM:SS.061 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS061 ERROR netlogon: CLDAP ping to cached DC xxxxxxxxxxx.corp (X.X.X.X) failed, new DC will be looked upYYYY-MM-DDTHH:MM:SS.077 INFO netlogon: Filtering list of 46 servers with list of 0 black listed serversYYYY-MM-DDTHH:MM:SS.079 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxYYYY-MM-DDTHH:MM:SS.079 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.079 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.079 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.079 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.079 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: CLDAP timed out:xxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.080 ERROR netlogon: Timed out after waiting for 5 seconds while performing CLDAP pingsYYYY-MM-DDTHH:MM:SS.081 ERROR lsass: Failed to find DC for domain xxxxxx.CORPYYYY-MM-DDTHH:MM:SS.081 ERROR lsass: Failed to run provider specific request (request code = 8, provider = 'lsa-activedirectory-provider') -> error = 2453, symbol = NERR_DCNotFound, client pid = 2120184YYYY-MM-DDTHH:MM:SS.686 ERROR lsass: Failed to run provider specific request (request code = 12, provider = 'lsa-activedirectory-provider') -> error = 2692, symbol = NERR_SetupNotJoined, client pid = 2120311YYYY-MM-DDTHH:MM:SS.692 ERROR lsass: Failed to run provider specific request (request code = 12, provider = 'lsa-activedirectory-provider') -> error = 2692, likewise.logYYYY-MM-DDTHH:MM:SS.072 INFO lsass: AD_JoinDomain():provider-main.c:2244: Joining domain xxxxxxxxx.CORPYYYY-MM-DDTHH:MM:SS.072 DEBUG netlogon: LWNetSrvGetDCName():dcinfo.c:134: Looking for a DC in domain 'xxxxxxxCORP', site '<null>' with flags 10YYYY-MM-DDTHH:MM:SS.074 ERROR netlogon: LWNetSrvPingCLdapProcessConnections():lwnet.c:488: CLDAP timed out: xxxxxxxxxxxxxxxxxxxxxxxx.corpYYYY-MM-DDTHH:MM:SS.074 DEBUG netlogon: LWNetSrvPingCLdapArray():lwnet.c:630: Error at ../netlogon/server/api/lwnet.c:630 [code: 2453]YYYY-MM-DDTHH:MM:SS.074 ERROR netlogon: LWNetSrvGetDCName():dcinfo.c:281: CLDAP ping to cached DC xxxxxxxxxxxxxxxxxw.corp (X.X.X.X) failed, new DC will be looked upYYYY-MM-DDTHH:MM:SS.074 DEBUG netlogon: LWNetGetPreferredDcList():lwnet-plugin.c:184: Error at ../netlogon/server/api/lwnet-plugin.c:184 [code: 2453]YYYY-MM-DDTHH:MM:SS.074 DEBUG netlogon: LWNetSrvGetDCNameDiscoverInternal():lwnet.c:897: Error at ../netlogon/server/api/lwnet.c:897 [code: 2453]YYYY-MM-DDTHH:MM:SS.083 VERBOSE netlogon: LWNetDnsGetAddressArrayForServer():lwnet-dns.c:1113: Getting address for 'xxxxxxxxxxxxxxxxxxx.corp'YYYY-MM-DDTHH:MM:SS.084 VERBOSE netlogon: LWNetDnsGetAddressArrayForServer():lwnet-dns.c:1113: Getting address for 'xxxxxxxxxxxxxxxxxxx.corp'YYYY-MM-DDTHH:MM:SS.084 VERBOSE netlogon: LWNetDnsGetAddressArrayForServer():lwnet-dns.c:1113: Getting address for 'xxxxxxxxxxxxxxxxxxx.corp'YYYY-MM-DDTHH:MM:SS.084 VERBOSE netlogon: LWNetDnsGetAddressArrayForServer():lwnet-dns.c:1113: Getting address for 'xxxxxxxxxxxxxxxxxxx.corp'YYYY-MM-DDTHH:MM:SS.084 VERBOSE netlogon: LWNetDnsGetAddressArrayForServer():lwnet-dns.c:1113: Getting address for 'xxxxxxxxxxxxxxxxxxx.corp'YYYY-MM-DDTHH:MM:SS.085 VERBOSE netlogon: LWNetDnsGetAddressArrayForServer():lwnet-dns.c:1113: Getting address for 'xxxxxxxxxxxxxxxxxxx.corp'YYYY-MM-DDTHH:MM:SS.085 VERBOSE netlogon: LWNetDnsGetAddressArrayForServer():lwnet-dns.c:1113: Getting address for 'xxxxxxxxxxxxxxxxxxx.corp'
The logs indicate that the lsass (Likewise) service is successfully resolving DC hostnames via DNS, but it is failing the CLDAP (Connectionless LDAP) ping.
Ensure UDP Port 389 is bi-directionally open between the ESXi Management Network and the Domain Controllers