You can use Change SID and enable Join Domain for a Windows virtual machine template. With the Change SID option, all of the deployed virtual machines can acquire a unique security identifier (SID). Enable the option when you prepare a Windows virtual machine template. With the Join Domain option, the deployed virtual machines can become members of a specified Windows Active Directory domain.

About this task

If you need to deploy a large number of Windows virtual machines that must join a corporate managed domain, use Windows templates with preconfigured domain settings. For smaller deployments or deployments that need the flexibility of joining different domains, a more effective approach is to use Windows templates without the preconfigured domain settings and add the Join Domain Predefined Task in the execution plan for deployment. See Add Join Domain Predefined Task.

Prerequisites

  • Verify that you have correctly created a Windows vApp and configured the virtual machine template. See Create a vCloud Director vApp and Configure Windows Virtual Machine Template in vCloud Director.

  • Verify that the Windows domain name, domain account, and account password are readily available.

  • Verify that the virtual machine can connect to the designated domain controller.

    A DHCP service must be present on the network and the DNS server specified by the DHCP can resolve the domain name specified in the guest customization settings.

Procedure

  1. Instantiate a vApp from the source template and locate the associated Windows virtual machine.
  2. Log in to the Windows virtual machine as a user belonging to the local Administrators group.
  3. Configure all of the virtual machine network interfaces to use DHCP.
    1. Open the Network control panel.
    2. Select Network and Sharing Center > Change Adapter Settings.
    3. Open each network connection and select Properties.
    4. Set the Internet Protocol Version 4/6 to Obtain an IP address Automatically and Obtain DNS server address automatically.
  4. Shut down the Windows virtual machine and stop the vApp in vCloud Director.
  5. In vCloud Director, open the properties for the virtual machine and select the Guest OS Customization tab to enable Guest Customization.
  6. On the Guest OS Customization tab, select Change SID.
  7. Select Join Domain and enter the Windows domain name, domain account, and account password.
  8. Select Add to Library to create a new vApp template from the vApp.

Results

During deployment, Active Directory authenticates the login credentials and allows the Windows virtual machine to become a member of the domain.

What to do next

Add the vApp template to the vCloud Director library. See Add Windows Virtual Machine Templates to the vCloud Director Catalog.