VMware Cloud Community
mocansey
Contributor
Contributor

Join DomainVMware vCenter to Domain

Dear Team,

I trust you're all doing well.

I'm in the middle of joining our VMware vCenter Server to local domain controller but having an error message as below

 "java.lang.reflect.InvocationTargetException"

Can you advise what I should do to get the issue resolve?

Best regardsjava.lang -1.PNG

Michael 

0 Kudos
2 Replies
MerlevedeN
Enthusiast
Enthusiast

Hi Michael,

Did you also tried joining using command line?

1. Connect vCenter Server Appliance with SSH. (Login to PSC Appliance in case of External PSC)
2. Type "shell" to go to shell prompt.
3. Execute  "/opt/likewise/bin/domainjoin-cli join [domain] [user name]"
    Example: /opt/likewise/bin/domainjoin-cli join mylab.com labadmin"
4. Enter the password of the AD user you specified in the command.
5. Reboot the Appliance with command "reboot"
6. Login again via ssh and verify AD join status with below command.
    /opt/likewise/bin/domainjoin-cli query
 
Regards
0 Kudos
markey165
Expert
Expert

@MerlevedeN - Note that whilst your command will work, it will drop vCenter into the Default Computers container, unless the AD Computer object has been pre-staged first.

As long as you have sufficient permissions in AD, you can use the --advanced switch below to control placement of the computer object

 

/opt/likewise/bin/domainjoin-cli join --advanced --ou "OU=VMware,OU=Servers,DC=domainname,DC=com" domainname.com "domainjoin-account@domainname.com"

 

HTH 

_____________________________________________
If this post helps you, please leave Kudo | or mark this reply as an answer
0 Kudos