Hi,
I have setup 2 clusters each having 2 ESX (vSphere 4.0) hosts configured. When I manually try to migrate the VM across the clusters using the vSphere client, the migration is successful. But when I try to do it programatically, I get "A specified parameter is not correct" error in the vSphere client.
The same code works fine when the target host is within the same cluster. But when the target host is in a different cluster, I get the above error message.
Below is the command that I am using:
ManagedObjectReference taskObjRef = VIM_SERVICE.MigrateVM_Task(vmObjRef, null, destHostObj.objRef, VirtualMachineMovePriority.highPriority, VirtualMachinePowerState.poweredOn, true);
Anyone faced this issue?
Regards,
Sudhir