Join vCenter 6.5 Appliance to domain

Join vCenter Appliance to domain

Whenever you try to join vcenter to domain an error message show

“The format of the specified computer name is invalid”

This is issue is related to DNS and host name configuration during the appliance installation , especially when  you install vCenter without valid DNS server

To solve this issue there is 2 way

  1. From the vCenter web client
  • Use the vSphere Web Client to log in as administrator@your_domain_name to the vCenter Server instance in the vCenter Server Appliance (The address is of the type http://appliance-IP-address-or-FQDN/vsphere-client)
  • hover over the Home icon, click Home and select System Configurationation
  • Under System Configuration, click Nodes
  • Under Nodes, select a node and click the Manage tab
  • Under Common , select Networking, and click Edit.
  • Change the Hostname and the DNS
  • Go back to Node
  • Join the vcenter to domain
  • Click join
  • reboot the vcenter (for me it didn’t reflect till I reboot the vcenter)

2-the second way though command line

ssh the VCenter and run

 shell.set --enabled true
 shell
 cd /etc

 vi resolv.conf

be sure the DNS server IP address is added in this file —

save and exit

vi hosts

If the file output shows the ip address of vcenter and hostname ” localhost.localdom localhost” this mean no DNS used during the installation , in all cases be sure to replace   ” localhost.localdom localhost” with hostname e.g “vcenter.domain.com”,

save and exit

run the below command

/opt/likewise/bin/domainjoin-cli join domain.com Domain_Administrator Password

 

Leave a Reply

Your email address will not be published. Required fields are marked *