Joining an ESXi host to Active Directory fails with the error: Failed to Leave the domain domainname.com: The user or group named 'xyz\groupname' does not exist.
search cancel

Joining an ESXi host to Active Directory fails with the error: Failed to Leave the domain domainname.com: The user or group named 'xyz\groupname' does not exist.

book

Article ID: 375899

calendar_today

Updated On:

Products

VMware vSphere ESXi 7.0

Issue/Introduction

Symptoms:

ERROR DESCRIPTION : Failed to Leave the domain domainname.com: The user or group named 'xyz\groupname' does not exist.

Error Screenshot :

 

Environment

VMware vSphere ESXi 

Cause

This issue may occur due to the stale entry of the Group using the same domain in the ESXI Host .

When you attempt to leave an ESXi host to Active Directory, the process fails with the error:

Failed to Leave the domain domainname.com: The user or group named 'xyz\groupname' does not exist.

  • This occurs due to a stale entry of the same domain added on the ESXI Host. 
2024-08-29T09:00:01.050Z verbose hostd[xxxxxx] [Originator@6876 sub=Solo.Vmomi opID=6c05a716 user=root] Arg accessMode:

--> "accessReadOnly"

2024-08-29T09:00:01.050Z info hostd[xxxxxx] [Originator@6876 sub=Solo.Vmomi opID=6c05a716 user=root] Throw vim.fault.UserNotFound

2024-08-29T09:00:01.050Z info hostd[xxxxxx] [Originator@6876 sub=Solo.Vmomi opID=6c05a716 user=root] Result:

--> (vim.fault.UserNotFound) {

-->    principal = "Domain_xyz",

-->    unresolved = false,

-->    msg = "",

Resolution

  • Using the command Please check if the group present with the same name. < esxcli system permission list > . 
  • Run the below command 
    • /usr/lib/vmware/busybox/bin/busybox addgroup domain\\alias\groupname      -- Run this command and try to leave the domain in the ESXI UI. (You may found multiple group register with the same domain. Re-run multiple times accordingly.)
    • Leave the domain in the ESXI Host UI 
    • /usr/lib/vmware/busybox/bin/busybox delgroup domain\\alias\groupname       --Run this command once you leave the domain.