Quantcast
Viewing all articles
Browse latest Browse all 230900

Adding disk on DatastoreCluster

Hi,

 

I am trying to add two disks to my VM. I want disk 1 on to stay on datastoreCluster1 & disk2 on datastoreCluster2

I am using VmwareVsphere 5.1 JAVA SDK.

 

And i am getting following error

java.lang.RuntimeException: A specified parameter was not correct.  Key does not match StoragePlacementSpec.podSelectionSpec.initialVmConfig    

at vm.create.StorageDRSVMDiskCreate.getTaskResultAfterDone(StorageDRSVMDiskCreate.java:389)

 

If i add each disk to VM separately, it works well. But addiing two disks simultaneously fails with above error.

Sample program attached.

 

Have anybody faced this error before?

Any kind of help will be appreciated.


Viewing all articles
Browse latest Browse all 230900

Trending Articles