When attempting to join an ESXi host to an Active Directory domain, the operation fails. The error message states that a specific user or group does not exist. Additionally, attempts to leave the domain also fail with a similar error.
- VMware ESXi 7.0 or newer
- Active Directory domain
- vSphere environment
This issue typically occurs when:
To resolve this issue, follow these steps:
1. Log in to the vSphere Client.
2. Select the affected ESXi host in the inventory.
3. Go to the "Configure" tab.
4. Under "System", select "Authentication Services".
5. Click "Edit" in the "Active Directory" section.
6. Check the "User/Group" field:
a. If it is mis-typed or contains invalid characters (e.g., 'DOMAIN\group^name'), change it to a valid group name (e.g., 'DOMAIN\group_name').
b. Click "OK" to save the changes.
7. Leave the current domain:
a. In the "Authentication Services" section, click "Leave Domain".
b. Confirm the action when prompted.
8. Rejoin the domain:
a. Click "Join Domain".
b. Enter the domain name.
c. Provide the username and password of an account with permissions to join computers to the domain.
d. In the "User/Group" field, enter the correct group name.
e. Click "OK" to join the domain.
9. Verify time synchronization:
a. In the "Configure" tab, under "System", select "Time Configuration".
b. Ensure that the host is using correct NTP servers.
c. If changes are needed, click "Edit" and update the NTP servers.
10. Check DNS configuration:
a. In the "Configure" tab, under "Networking", select "TCP/IP configuration".
b. Verify that the DNS servers are correctly set.
c. If changes are needed, click "Edit" and update the DNS server information.
- Ensure that the account used for domain join operations has the necessary permissions in Active Directory.
- Double-check that the ESXi host's hostname is correctly set in both vSphere and the host's /etc/hosts file.
- If issues persist, you may need to restart the Likewise service on the ESXi host using the following commands via SSH:
```
/etc/init.d/lwsmd restart
/usr/lib/vmware/likewise/bin/domainjoin-cli join DOMAIN username
```
Replace "DOMAIN" and "username" with appropriate values.