Poorly worded question. D is tempting, but with the word "must," best result would be obtained if VM uses cluster settings, with a "must" affinity rule to the host. Could be A or D.
You can use the VM/Host Rules under the Configure tab which would relate to answer "A. cluster settings" but this question is asking specifically how to configure DRS for a single VM.
Under the cluster, go to the Configure tab and click on VM Overrides.
There you can select a specific VM and choose to disable DRS.
D. Disable DRS for a specific VM.
Topic: Change Storage DRS Automation Level for a Virtual Machine
You can override the datastore cluster-wide automation level for individual virtual machines. You can also override default virtual disk affinity rules.
https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-0591F865-91B5-4311-ABA6-84FBA5AAFB59.html
Answer is correct. Child objects (VM) take precedence over parent object (Cluster). Disabling DRS on the individual VM will keep the VM from migrating. But, why isn't applying an Affinity Rule listed? That would be a better choice. So, can individual VM's be disabled for DRS? Than what is the point of "deploying" a VM to DRS enabled cluster?
D is correct. You can set vm override for a specific vms. But the question should be like "must not be vmotioned by drs" . If you want to place on the one specific host, you should set a vm/host drs rule.
http://www.yellow-bricks.com/2018/03/28/disable-drs-for-a-vm/
Question asks how DRS should be configure, and in order for the VM not to be affected by it, you can disable DRS on the VM
https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-B560341B-B377-4FA7-BF3B-98A4788AAE3A.html
Maybe the question should give some more clue, since both A and D allow to comply with what is required in the question.
Regarding A:
“If you want a Virtual Machine(s) to only run on a particular ESX/ESXi host, you must create affinity rules to prevent DRS from auto-migrating the virtual machines to other ESX hosts. ”
https://kb.vmware.com/s/article/1005508
Regarding D:
“Disabled: vCenter Server does not migrate the virtual machine or provide migration recommendations for it.”
https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.resmgmt.doc/GUID-C21C0609-923B-46FB-920C-887F00DBCAB9.html
Hi,
I agree with you as there is no option to disable DRS if it is enabled, but in cluster settings it is necesseray to decide about virtual machines options
https://kb.vmware.com/s/article/1005508
I guess if you disable DRS, the VM will still be possible to be manually moved to another host, but if you set a "must be" rule in cluster settigs to stay on that host, it will stay there and cannot be moved.
You can control the placement of virtual machines on hosts within a cluster by using affinity rules.
https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-FF28F29C-8B67-4EFF-A2EF-63B3537E6934.html
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Paranoiak
Highly Voted 5 years agoJoeTech88
Most Recent 3 years, 7 months agoGarbanzo9000
4 years, 4 months agosasaz
4 years, 10 months agotgortva
4 years, 11 months agotgortva
4 years, 11 months agohsezer
5 years agoGonzo77
5 years, 3 months agofreesc
5 years, 4 months agoOH
5 years, 7 months agogolem1987
5 years, 7 months agoJay_
5 years, 7 months ago[Removed]
4 years, 6 months agoKerry001
5 years, 1 month agoAlekZandre
5 years, 5 months ago