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.
This operation is restricted to users who have the CloudAdmin role.
- Create a category and tag for each group of VMs that you want to include in a DisableDRSvMotion policy.
- 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 Attributes for more about creating and using tags.
- Create a Disable DRS vMotion policy.
- In your SDDC, click OPEN VCENTER.
- From the vSphere Client, click .
- Click Add to open the New Compute Policy Wizard.
- 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.
- 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.
- Click Create to create the policy.
- (Optional) To delete a compute policy, open the vSphere Client, click to show each policy as a card. Click DELETE to delete a policy.