If you are planning on adding your ESXi host to Active directory Likewise agents are used on ESXi 5.x and ESXi 6.x and ESXi 7.x to facilitate joining the host to an Active Directory domain and subsequent user authentication attempts.
When you are having trouble adding the ESXi host to the Active directory, the logs of likewise agents are very helpful during the troubleshooting, but the likewise agent do not generate a log file by default.
Please follow the below steps to enable the logging for the likewise agents.
Note: Enabling likewise logging increases the space in the /var/log. This should be enabled only when diagnosing an issue and then disable the logging to prevent out of space issues.
ESXi 6.x and 7.X-the logging for Likewise agents are configured using the command-line.
To confirm if the current Likewise agent logging settings,
- Log in to the ESXi host as root using the console or SSH.

2. Start the lwsmd service by running the below command,
/etc/init.d/lwsmd start

3. Use the below command to set the log file location:
/usr/lib/vmware/likewise/bin/lwsm set-log file /var/log/likewise.log
To confirm the current log file location use the below command:
/usr/lib/vmware/likewise/bin/lwsm get-log
(/var/log/likewise.log)

4. Use the below command to set the logging level:
/usr/lib/vmware/likewise/bin/lwsm set-log-level loglevel
There are different valid logging levels as below,
- always
- error
- warning
- info
- verbose
- debug
- trace
Ex: /usr/lib/vmware/likewise/bin/lwsm set-log-level INFO
