Joining a VM to a Domain with vCloud Director
Question. According to this KB http://kb.vmware.com/kb/1026326 , Windows VMs in vCloud Director need to be configured with DHCP to be able to join a Microsoft Active Directory domain. I have a VM with a static IP address. How do I get around this requirement?
Answer. The issue around DHCP is Microsoft-related and not VMware. The problem is that we rely on Sysprep to perform the customization and this is where the DHCP requirement comes in. As a workaround, we ran a script called SetupCommand.cmd which calls the netdom.exe command with the following syntax:
1netdom.exe join %COMPUTERNAME% /Domain:vmware.com /OU:OU=vApp-VMs,DC=vmware,DC=com /Userd:???? /PasswordD:???? /Reboot
To configure this:
- Before submitting the vApp to the catalog.
- Right click the VM and select Properties.
- Select the Guest OS Customization tab.
- Scroll down to the Customization Script sections and enter the command.