# Adding Dedicated Hosts

## Adding Dedicated Hosts to launch EC2 instances

Use Dedicated Hosts to launch Amazon EC2 instances and provide additional visibility and control over how EC2 instances are placed on a physical server; enabling you to use the same physical server, if needed.

### Prerequisites

Configure the DuploCloud Portal to allow for the creation of Dedicated Hosts.

1. In the DuploCloud Portal, navigate to **Administrator** -> **System Settings**.
2. Click the **System Config** tab.
3. Click **Add**. The **Add Config** pane displays.
4. In the **Config Type** field, select **Flags**.
5. In the **Key** field, select **Allow Dedicated Host Sharing**.
6. In the **Value** field, select **true**.
7. Click **Submit**. The configuration is displayed in the **System Config** tab.

<div align="left"><figure><img src="/files/t6oXuZ2tdlNuVXElC7ty" alt=""><figcaption><p><strong>Add Config</strong> pane configured to <strong>Allow Dedicated Host Sharing</strong></p></figcaption></figure></div>

### Creating Dedicated Hosts to launch EC2 instances

1. In the DuploCloud Portal, navigate to **Cloud Services** -> **Hosts**.
2. In the EC2 tab, click **Add**. The **Add Host** page displays.
3. After completing the required fields to configure your Host, select **Advanced Options**. The advanced options display.
4. In the **Dedicated Host ID** field, enter the ID of the Dedicated Host. The ID is used to launch a specific instance on a Dedicated Host. See the screenshot below for an example.
5. Click **Add**. The Dedicated Host is displayed in the **EC2** tab.

<figure><img src="/files/MRQwI6QF0TVGqUXmP6Yy" alt=""><figcaption><p><strong>EC2</strong> page with <strong>Dedicated Host ID</strong></p></figcaption></figure>

### Viewing Dedicated Hosts to launch EC2 instances

After you create Dedicated Hosts, view them by doing the following:

1. In the DuploCloud Portal, navigate to **Cloud Services** -> **Hosts**.
2. In the **EC2** tab, select the **Host** from the Name column. The **Dedicated Host ID** card on the Host page displays the ID of the Dedicated Host.

<figure><img src="/files/0XZrvLJMNLUihIWJe0Ib" alt=""><figcaption><p><strong>Dedicated Host ID</strong> card on the Host page displaying ID of the Dedicated Host</p></figcaption></figure>


---

# 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.duplocloud.com/docs/automation-platform/overview/use-cases/hosts-vms/adding-dedicated-hosts.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.
