"VM does not comply with compute policy" warning message is displayed for one or more Virtual Machine(s) in the VMware Cloud Director UI.
search cancel

"VM does not comply with compute policy" warning message is displayed for one or more Virtual Machine(s) in the VMware Cloud Director UI.

book

Article ID: 441388

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • In VMware Cloud Director UI, a Virtual Machine displays the following error: "VM does not comply with compute policy system default."
  • While attempting to make the VM compliant, the operation fails and generates the following error:

Environment

VMware Cloud Director 10.x

Cause

This issue occurs when the VM storage policy or the hard disk storage policy associated with the VM is mapped to a non-compliant storage policy.

Resolution

To resolve this issue set the VM storage Policy same on both VCD and vCenter:

  1. Confirm the storage policy configuration on the VM in Cloud Director
    1. Login to the Cloud Director Tenant UI. 
    2. Navigate to "Applications > Virtual Machines".
    3. Click the name of the virtual machine being worked on.
    4. On the General page, review and record the name of the VM stored in the "Name in vSphere" row.
    5. On the virtual machine navigate to "Hardware > Hard Disks". 
    6. Review and record the storage policy set on the VM level and on all individual hard disks. 

  2. Confirm the storage policy configuration on the VM in vCenter Server.
    1. Login to the vCenter Server UI.
    2. In the search box at the top of the page enter the name of the VM recorded earlier in step 1d.
    3. On the VM itself click the "Configure" tab.
    4. Select "Policies".
    5. Review and record the storage policy set on the VM Home and on all individual hard disks. 

  3. Compare and correct the storage policy settings identified in VMware Cloud Director and vCenter Server:

    a. If there is a mismatch of storage policy in VCD and vCenter, change the storage policy in vCenter Server to match that set in Cloud Director.
        To change the policy, select the "EDIT VM STORAGE POLICIES" button on the Policies page. Make the required changes and select OK.

    b. If a non-compliant storage policy is configured for any hard disk in both VCD and vCenter Server:
        Edit the hard disk settings from the VMware Cloud Director UI and Assign the correct storage policy