Why creating VMs using api is failing with error "Cannot add VM. CPU Profile doesn't match provided Cluster"

Solution Verified - Updated -

Issue

  • Creating VMs using api is failing with below error .
Cannot add VM. CPU Profile doesn't match provided Cluster
  • It works fine on the cluster which is created first and everything else is failing with mentioned error.
  • Below payload is used to create VM. Issue is only with Blank template
<vm>
  <name>test_vm</name>
  <description>test_vm_description</description>
  <cluster>
    <name>test_cluster</name>
  </cluster>
  <template>
    <name>Blank</name>
  </template>
  <memory>17179869184</memory>
  <os>
    <boot>
      <devices>
        <device>hd</device>
      </devices>
    </boot>
  </os>
</vm>

Environment

  • Red Hat Virtualization 4.2
  • Red Hat Virtualization 4.1
  • Red Hat Virtualization 4.0
  • Environment upgraded from 3.5.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.