I am going to share step by step procedure on how to add esxi server to domain controller using the CLI. ESXi server needs to be added to the AD domain controller for providing access to ESXi servers via AD credentials to have the leverage of AD DC level security.
Let us see a step-by-step procedure via using CLI. There are some pre-requisite which need to be satisfied before you can make this happen.
First Pre-requisite: direct root login must be enabled or you have root-level access to the ESXi server.
Second Pre-requisite: You must have domain admin privilege in AD root forest for the ID you are going to use for this task.
Let us see step by step procedure to join the ESXi host to the domain via the command line as mentioned below.
1. Log in to v-Center and enable ssh and disable lockdown mode for the ESXi server in question.
2. Now you can use the tool whatever you are using to ssh to the server. Like Putty.
3. Login with root id to the ESXi server. Maybe you need to enable direct root login if it is not already enabled.
4. Start lwsmd Service
# /etc/init.d/lwsmd start
5. Make lwsmd Service Persistent across reboot
# chkconfig lwsmd on
6. Join esxi host into AD Domain using domainjoin-cli command
#/usr/lib/vmware/likewise/bin/domainjoin-cli join <DOMAIN> <ID>
Please make sure this command must return SUCCESS status and it will if your ID is having the privilege to add/remove objects in the domain controller.
That`s it about how to add esxi server to domain controller via CLI. I hope you will find it useful. If you like our work and our post have helped by any means request you to do subscribe to our blog and share it within your social media to allow us to reach to intended readers to get benefited from this content.
Other resources you may like…