Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 224018

Adding disk on DatastoreCluster

$
0
0

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 224018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>