[Satellite 6]: Provisioning using hammer fails when specifying Virtual Machine hardware version.

Solution Verified - Updated -

Issue

  • Provisioning virtual machines with custom hardware version via hammer fails with below error:
# hammer host create --name test-vm --domain "lab.example.com" --organization "RedHat" --location "India" --hostgroup "RHEL7" --compute-resource "VMware" --provision-method build --build true --managed true --build true --interface "subnet_id=1,managed=true,provision=true,primary=true,compute_type=VirtualVmxnet3,compute_network=VM Network" --compute-attributes="cpus=1,corespersocket=1,memory_mb=1024,start=true,version=10,thin=true"
  • Error:
Could not create the host:
  Failed to create a compute Test (VMware) instance vmware.example.com: failed to create vm: CannotAccessVmComponent: A component of the virtual machine is not accessible on the host.

Environment

  • Red Hat Satellite 6.x
  • Hammer

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