[Yandex Cloud documentation](../../../index.md) > [Yandex Compute Cloud](../../index.md) > [Step-by-step guides](../index.md) > Dedicated hosts > Creating a group of dedicated hosts

# Creating a group of dedicated hosts


You can create a group of [dedicated hosts](../../concepts/dedicated-host.md) solely for your VMs in Yandex Cloud.

By default, a cloud has a [zero quota](../../concepts/limits.md#compute-quotas) for using dedicated hosts. To change the [quota](https://console.yandex.cloud/cloud?section=quotas), contact [support](https://center.yandex.cloud/support).

To create a group of dedicated hosts:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the [folder](../../../resource-manager/concepts/resources-hierarchy.md#folder) you want to create your dedicated host group in.
  1. In the list of services, select **Compute Cloud**.
  1. In the left-hand panel, click ![image](../../../_assets/console-icons/ellipsis.svg) and select ![image](../../../_assets/console-icons/cubes-3-overlap.svg) **Dedicated host groups**.
  1. At the top right, click **Create host group**.
  1. Enter the name and description of the dedicated host group. The naming requirements are as follows:

      * Length: between 3 and 63 characters.
      * It can only contain lowercase Latin letters, numbers, and hyphens.
      * It must start with a letter and cannot end with a hyphen.
  
  1. Optionally, add a [label](../../../resource-manager/concepts/labels.md) to the dedicated host group.
  1. Select an [availability zone](../../../overview/concepts/geo-scope.md) for the dedicated host group.
  1. Select the [host type](../../concepts/dedicated-host.md#host-types).
  1. Specify the number of dedicated hosts in the group.
  1. Click **Create**.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. View a list of available dedicated host [types](../../concepts/dedicated-host.md#host-types):

      ```bash
      yc compute host-type list
      ```

      Result:

      ```bash
      +------------------------------+-------+--------------+-------+---------------+
      |              ID              | CORES |    MEMORY    | DISKS |   DISK SIZE   |
      +------------------------------+-------+--------------+-------+---------------+
      ...
      | intel-6338-c108-m704-n3200x6 |   108 | 755914244096 |     6 | 3198924357632 |
      +------------------------------+-------+--------------+-------+---------------+
      ```

  1. Create a group of dedicated hosts of the selected type. A group may contain one or more hosts.

      ```bash
      yc compute host-group create \
        --fixed-size <number_of_dedicated_hosts_in_group> \
        --type <dedicated_host_type> \
        --zone <availability_zone>
      ```

      Where:

      * `--fixed-size`: Number of dedicated hosts in the group.
      * `--type`: Type of dedicated hosts.
      * `--zone`: [Availability zone](../../../overview/concepts/geo-scope.md) to place your group in.

      Result:

      ```text
      done (6s)
      id: abcdefg1hi23********
      folder_id: m4n56op78mev********
      created_at: "2020-10-13T07:36:49Z"
      zone_id: ru-central1-a
      status: READY
      type_id: intel-6230-c66-m454
      maintenance_policy: RESTART
      scale_policy:
        fixed_scale:
          size: "2"
      ```

- API {#api}

  1. Select the host type using the [list](../../api-ref/HostType/list.md) REST API method for the [HostType](../../api-ref/HostType/index.md) resource or the [HostTypeService/List](../../api-ref/grpc/HostType/list.md) gRPC API call.
  1. Create a group of dedicated hosts using the [create](../../api-ref/HostGroup/create.md) REST API method for the [HostGroup](../../api-ref/HostGroup/index.md) resource or the [HostGroupService/Create](../../api-ref/grpc/HostGroup/create.md) gRPC API call.

{% endlist %}

#### Useful links {#see-also}

* [Creating a VM in a group of dedicated hosts](running-host-group-vms.md)
* [Creating a VM on a dedicated host](running-host-vms.md)