Virtual machine is not placed on the ESXi host specified by a soft affinity rule in a VM Placement Policy in VMware Cloud Director
search cancel

Virtual machine is not placed on the ESXi host specified by a soft affinity rule in a VM Placement Policy in VMware Cloud Director

book

Article ID: 435435

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • A Placement Policy is configured for the affected VM.

  • The VM group in placement policy is configured with a soft affinity rule so that the VM runs on specific hosts.

  • The VM is configured with a 100% CPU reservation.

  • When powering on the virtual machine from VMware Cloud Director, it does not start on the specified host.

  • Viewing Cluster > Monitor > vSphere DRS > Faults in the vSphere Client displays a message similar to the following:

    Could not fix soft vm/host affinity rule violation. 
    Insufficient capacity on each physical CPU. The host host-## can not satisfy requested #### Mhz per vCPU for this VM. Maximum core frequency is #### Mhz per physical CPU. 




  • The cluster contains ESXi hosts with mixed CPU speeds.

Cause

A virtual machine with a 100% CPU reservation cannot be powered on an ESXi host where the physical CPU (PCPU) speed is lower than the vCPU speed specified in the Organization VDC or the VM Sizing Policy.

Resolution

Adjust the vCPU speed in the Organization VDC or the VM Sizing Policy to match the ESXi host with the lowest CPU frequency in the cluster.