VMware {code} Community
CoderMonkey123
Contributor
Contributor

Failure in CreateVM_Task: The request refers to an unexpected or unknown type.

I am trying to create a VM by constructing my own VirtualMachineConfigSpec object and calling CreateVM_Task but the operation is failing with the error: The request refers to an unexpected or unknown type.

vCenter 5.5 logs show:

2015-06-27T16:32:11.005-07:00 [05908 error 'Default' opID=58d52058] Section for VMware VirtualCenter, pid=6292, version=5.5.0, build=1312298, option=Release

-->

2015-06-27T16:32:11.011-07:00 [05908 info 'commonvpxLro' opID=58d52058] [VpxLRO] -- FINISH task-2650 -- group-v165 -- vim.Folder.createVm --

2015-06-27T16:32:11.011-07:00 [05908 info 'Default' opID=58d52058] [VpxLRO] -- ERROR task-2650 -- group-v165 -- vim.Folder.createVm: vmodl.fault.InvalidType:

--> Result:

--> (vmodl.fault.InvalidType) {

-->    dynamicType = <unset>,

-->    faultCause = (vmodl.MethodFault) null,

-->    argument = "ManagedObjectReference",

-->    msg = "",

--> }

--> Args:

-->

My VirtualMachineConfigSpec XML is as follows.

0 Kudos
0 Replies