Foreman 2.0: Not able find disk unit while creating new VM

**Problem: Not able to provision new vm on vmware compute resource.
I am getting error “Failed to create a compute vCenter - xxxxx instance InvalidDeviceSpec: Invalid configuration for device ‘2’.”

**Expected outcome: disk volume should get recognize while provisioning.

**Foreman and Proxy versions: foreman 2.0

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:
tried adding below debug, in create_vm.rb to get device id. Please check below logs for more details"******************** disk #{disk}")"******************** disk after setting attributes #{disk}")"******************** vm config #{vm_cfg} #{vm_cfg.inspect}")


I can see similar issue has been fixed in fog -> . Maybe @Chris_Roberts can help in this case. Request to provide you production.log file when issue is reproducible.

1 Like

@upadhyeammit Thank you for your response, please find logs below.

Hi @preetesh I will start looking at this, sorry for the delay. I was out last week.

1 Like

@cintrix84, Is this issue because latest “RbVmomi” does not support vcenter 6.0 API’s?