# Creating an RD Session Host template

## **Requirements**

To complete the tasks described in this section, the following requirements must be met:

* Requirements described in the "Requirements" subsection of [**Creating a VM template**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-19-Administrators-Guide/39941.htm).
* Network Discovery UDP port 137 must be enabled for a domain firewall profile in the guest OS. This can be done via domain group policies or manually in the guest OS.

## **Manual agent installation**

Normally, you will push install the necessary agent software in a source VM right from the Parallels RAS console. However, you can also install the software manually by running the Parallels RAS installer in Windows in the VM. When doing so, use the **Custom** installation option and select the following agent components RAS Guest Agent and RAS RD Session Host Agent to be installed in the source VM.

## **Create a template**

To create an RD Session Host template:

1. Add one of the supported provides, as described in [**Add a Provider**](/landing/ras-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/virtual-desktop-infrastructure-vdi/add-a-provider.md).
2. Go to **Farm > Site > RD Session Hosts > Templates** tab.
3. In the **Tasks** drop-down menu, click **Add** (or click the **\[+]** icon).
4. In the dialog that opens, select a host from which you would like to create a template and click **OK**.
5. The **Create Parallels Template Wizard** opens. Each wizard page is described below in the order they appear on the screen.
6. Verify that the Agent is installed and install it manually if needed as described in [**Step 1: Check and install the Agent**](/landing/ras-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/virtual-desktop-infrastructure-vdi/manage-vdi/manage-templates-vdi/creating-a-vm-template/step-1-check-and-install-the-agent.md). This step only appears if an on-premises Provider is used.
7. Configure the template as described in [**Step 2: Configure the template**](/landing/ras-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/virtual-desktop-infrastructure-vdi/manage-vdi/manage-templates-vdi/creating-a-vm-template/step-2-configure-the-template.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/rd-session-hosts/manage-rd-session-hosts/manage-templates-rd-session-hosts/creating-an-rd-session-host-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
