VMware Cloud Community
tdubb123
Expert
Expert

join domain kickstart

how do I join the domain in a kickstart file?

0 Kudos
22 Replies
Marko1902
Contributor
Contributor

Hi,

I have succed adding ESXi 4.1 U1 host to AD domain.

You need to crate AD computer account manualy on domain controller (just hostname, without FQDN) before joining host to domain.

Regard,

Marko.

0 Kudos
klich
Enthusiast
Enthusiast

Marko,

I'm not sure what is different in your configuration that is requiring you to create the computer object first, but in our deployment this step it is not required.

The only additional step we required was to grant the AD account that we use in the script the ability to create computer objects in the domain.

There are several ways to accomplish that, but for those looking for an example, look at: http://kb.vmware.com/kb/1007697

Regards,

klich

0 Kudos
virtuallysi
Enthusiast
Enthusiast

I've been updating my scripted install forESXi 5 and couldn't get the domain join script to work.  It seems that ESXi 5 now requires the root password included at the start of the script.

I amended the existing lines:

# mob url url = "https://localhost/mob/?moid=ha-ad-auth&method=joinDomain" # mob login credentials -- use password = "" for build scripting username = "root" password = ""
To the below (using an encoded password - Details on how to create this are mentioned in the code)

# mob url
url = "https://localhost/mob/?moid=ha-ad-auth&method=joinDomain"

# mob login credentials -- use password = "" for build scripting
username = "root"
encodedlocalpassword = "%ENCODEDPASSWORD%"
password = base64.b64decode(encodedlocalpassword)

Once I made this change the ESXi 5 build successfully joined to the domain.
0 Kudos