An administrator needs to prevent two virtual machines from running on the same host at any time.
Which DRS rule should the administrator apply?
A. vm-to-vm affinity
B. vm-to-host affinity
C. vm-to-vm anti-affinity
D. vm-to-host anti-affinity
Correct Answer: C
Explanation/Reference:
Explanation:
We need to create a vm-to-vm anti-affinity rule to ensure that the two VMs do not run on the same host at any time.
A VM-VM affinity rule specifies whether selected individual virtual machines should run on the same host or be kept on separate hosts. This type of rule is used to create affinity or anti-affinity between individual virtual machines that you select.
When an affinity rule is created, DRS tries to keep the specified virtual machines together on the same host. You might want to do this, for example, for performance reasons.
With an anti-affinity rule, DRS tries to keep the specified virtual machines apart. You could use such a rule if you want to guarantee that certain virtual machines are always on different physical hosts. In that case, if a problem occurs with one host, not all virtual machines would be placed at risk.
Incorrect Answers:
A: A VM-to-VM affinity would ensure that the two VMs always run on the same host. We need to ensure they run on separate hosts. Therefore, this answer is incorrect.
B: A VM-Host affinity rule specifies an affinity relationship between a group of virtual machines and a group of hosts. This would ensure that the VMs always run on particular hosts, but it would not ensure that the VMs do not run on the same host. Therefore, this answer is incorrect.
D: A VM-Host anti-affinity rule specifies an anti-affinity relationship between a group of virtual machines and a group of hosts. This would ensure that the VMs do not run on particular hosts, but it would not ensure that the VMs do not run on the same host. Therefore, this answer is incorrect.
References:
https://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.vsphere.resmgmt.doc/GUID-94FCC204-115A-4918-9533-BFC588338ECB.html
https://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.vsphere.resmgmt.doc/GUID-2FB90EF5-7733-4095-8B66-F10D6C57B820.html
Explanation/Reference:
Explanation:
We need to create a vm-to-vm anti-affinity rule to ensure that the two VMs do not run on the same host at any time.
A VM-VM affinity rule specifies whether selected individual virtual machines should run on the same host or be kept on separate hosts. This type of rule is used to create affinity or anti-affinity between individual virtual machines that you select.
When an affinity rule is created, DRS tries to keep the specified virtual machines together on the same host. You might want to do this, for example, for performance reasons.
With an anti-affinity rule, DRS tries to keep the specified virtual machines apart. You could use such a rule if you want to guarantee that certain virtual machines are always on different physical hosts. In that case, if a problem occurs with one host, not all virtual machines would be placed at risk.
Incorrect Answers:
A: A VM-to-VM affinity would ensure that the two VMs always run on the same host. We need to ensure they run on separate hosts. Therefore, this answer is incorrect.
B: A VM-Host affinity rule specifies an affinity relationship between a group of virtual machines and a group of hosts. This would ensure that the VMs always run on particular hosts, but it would not ensure that the VMs do not run on the same host. Therefore, this answer is incorrect.
D: A VM-Host anti-affinity rule specifies an anti-affinity relationship between a group of virtual machines and a group of hosts. This would ensure that the VMs do not run on particular hosts, but it would not ensure that the VMs do not run on the same host. Therefore, this answer is incorrect.
References:
https://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.vsphere.resmgmt.doc/GUID-94FCC204-115A-4918-9533-BFC588338ECB.html
https://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.vsphere.resmgmt.doc/GUID-2FB90EF5-7733-4095-8B66-F10D6C57B820.html