DRS provides an option to segregate VMs and ESXi hosts into their own groups. The groups are used with VM-Host affinity rules. These rules do not address individual VMs/hosts. These groups are created using the DRS Groups Manager.
The creation of DRS hosts/VMs groups is a prerequisite for the creation of affinity rules. This recipe covers how to create DRS host groups.
This is done on a DRS-enabled ESXi cluster, so make sure that you have access to a vCenter managing the intended DRS cluster.
The following procedure will help you create DRS host groups: