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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content