A DisableDRSvMotion policy applied to a VM prevents DRS from migrating the VM to a different host unless the current host fails or is put into maintenance mode.

This type of policy can be useful for a VM running an application that creates resources on the local host and expects those resources to remain local. If DRS moves the VM to another host for load-balancing or to meet reservation requirements, resources created by the application are left behind and performance can be degraded when locality of reference is compromised.

A Disable DRS vMotion policy takes effect after a tagged VM is powered on, and is intended to keep the VM on its current host as long as the host remains available. The policy does not affect the choice of the host where a VM is powered on.

Prerequisites

This operation is restricted to users who have the CloudAdmin role.

Procedure

  1. Create a category and tag for each group of VMs that you want to include in a DisableDRSvMotion policy.
  2. Tag the VMs that you want to include in each group.
    You can use existing tags and categories or create new ones specific to your needs. See vSphere Tags and Custom Attributes for more about creating and using tags.
  3. Create a Disable DRS vMotion policy.
    1. In your SDDC, click OPEN VCENTER.
    2. From the vSphere Client, click Policies and Profiles > Compute Policies.
    3. Click Add to open the New Compute Policy Wizard.
    4. Fill in the policy Name and choose Disable DRS vMotion from the Policy type drop-down control.
      The policy Name must be unique within your SDDC.
    5. Provide a Description of the policy, then use the VM tag drop-down control to choose the VM category to which the policy applies.
      Unless you have multiple VM tags associated with a category, the wizard fills in the VM tag after you select the tag category.
    6. Click Create to create the policy.
  4. (Optional) To delete a compute policy, open the vSphere Client, click Policies and Profiles > Compute Policies to show each policy as a card. Click DELETE to delete a policy.