Article ID: 111299, created on May 20, 2011, last review on Jun 17, 2016

  • Applies to:
  • Virtuozzo containers for Windows 6.0


To add containers to AD domain it is sufficient to install domjoin-pvc-pool application template.

  1. Download attached file

  2. Unzip the content

  3. Move domjoin-pvc-pool.efd to VIRTUOZZO_DIR\Templates\_cache folder, e.g. to D:\vz\Templates\_cache\

  4. Deploy the template:

    C:\>vzpkgdeploy -i domjoin-pvc-pool
  5. Find join_domain.vbs in template folder, e.g. D:\vz\Templates\domjoin-PVC-Pool-20081205\root\join_domain.vbs

  6. Edit the script and put correct credentials for user authorized to add computers to the domain:

    strDomain   = "VDI.LOCAL"

    strUser     = "USERNAME"

    strPassword = "PASSWORD"

    strAccountOU = "OU=Containers,DC=VDI,DC=local"

  7. To add a container to the domain install the template to that container either using Parallels Virtual Automation, Parallels Management Console or command line tool: vzpkgadd CTID domjoin-pvc-pool.

    After you install the above template to a container that container will be joined to the domain and rebooted in 10 seconds.

NOTE: Since container is rebooted in 10 seconds after template installation, it is strongly recommended to install the template in the last turn, when all other templates are already installed. Otherwise installation of other templates may fail due to container restart.

join_domain.vbs script is based on the instructions given in the following Technet article

Search Words

domain template

Join Domain



d02f9caf3e11b191a38179103495106f 965b49118115a610e93635d21c5694a8 2897d76d56d2010f4e3a28f864d69223 6f8e3eda12803cf88a9587e9782c9ed6

Email subscription for changes to this article
Save as PDF