Hello,
I have encountered a very strange problem which is occurring only in esxi 4.1.
Basically I am creating a VM and the logic is working perfectly fome on esxi 5.0+
However, when trying this on an esxi 4.1, all the non default devices, i.e. VirtualCdrom, VirtualDisk add VirtualController are being ignored and hence not created on the server. The default devices; i.e. VirtualIDEController, VirtualPS2Controller, VirtualPCIController, VirtualSIOController, VirtualKeyboard, VirtualMachineVMCIDevice and VirtualPointingDevice are created correctly. screenshot1.png illustrates the devices which are being created while screenshot2.png illustrates what devices are supposed to be created.
I am following closely the documentation on how to create a VM and hence the code is supposed to be correct (basically translating the sample code from Java to C#). There is no reference on the docs that there might be some unsupported stuff on 4.1 when it comes to the objects being used in the VirtualMachineConfigSpec.
Also, it is good to note that when I tried to create the same VM with the same config on an esxi 5.0 and 5.5, the devices where successfully created.
Apart from this, the API is not returning with any errors or exceptions. The CreateVM_Task call is successful but these aforementioned devices are not created on the server. This was tested with API versions 5.1 and 5.5
This looks like a VMware issue. Can anybody confirm or help on this matter?
Many thanks in advance.
Chris