Joining VMs automatically to domains

The following section explains how to automatically make VMs join an Active Directory.

Getting ready

Understandably, we need a Windows VM in a vApp. But we also need an Active Directory that we can join. Last but not least, we need a network in which the VM is connected so it can talk to the Active Directory. A good test is to create a VM and manually join it to the AD, to make sure that the VM can connect directly to the AD.

In this example, we assume that you have an AD server in your organization (isolated org network) or one that you can connect to via an external network (direct connect org network).

For this example, we need all the credentials to be able to add a VM to AD.

How to do it...

Any vApp Author can ...

Get VMware vCloud Director Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.