Hi All,
I'm using below soap call to create VM. I'm looking a solution on how to place a VM on DatastoreCluster instead of Datastore directly. How do i pass DatastoreCluster id to the below soap call.
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<operationID>9F5D7810-000000D9</operationID>
</soap:Header>
<soap:Body>
<CloneVM_Task xmlns="urn:internalvim25">
<_this xsi:type="ManagedObjectReference" type="VirtualMachine" serverGuid="336D9B47-253F-4025-B90F-22808DD3F1CA">vm-43</_this>
<folder type="Folder" serverGuid="336D9B47-253F-4025-B90F-22808DD3F1CA">group-v22</folder>
<name>tempWin27</name>
<spec>
<location>
<datastore type="Datastore" serverGuid="336D9B47-253F-4025-B90F-22808DD3F1CA">datastore-30</datastore>
<pool type="ResourcePool" serverGuid="336D9B47-253F-4025-B90F-22808DD3F1CA">resgroup-27</pool>
<disk>
<diskId>2000</diskId>
<datastore type="Datastore" serverGuid="336D9B47-253F-4025-B90F-22808DD3F1CA">datastore-30</datastore>
<diskBackingInfo xsi:type="VirtualDiskFlatVer2BackingInfo">
<fileName></fileName>
<diskMode></diskMode>
<thinProvisioned>true</thinProvisioned>
</diskBackingInfo>
</disk>
</location>
<template>false</template>
<customization>
<options xsi:type="CustomizationWinOptions">
<changeSID>true</changeSID>
<deleteAccounts>false</deleteAccounts>
</options>
<identity xsi:type="CustomizationSysprep">
<guiUnattended>
<password>
<value>/E41SYPa0zwCILBAkEAsvnHBzyqMdUNDYt92OSGDAAC2us6hyWmYwikRENI4XgdXV7zrwMxJVLK1jKX0D8YebHsrCJENlHKxAN/VhnCLGTzgJLbDlYcjy4k5Nw0ievv9dYpVNolZ595x7LumfOWpTy7/60MKKF662WdjT2FEeoLk7DwFM7wswZ/hZ+UaQIISFvxCirsaKCXoqOa3eZQ3bmuvEFu/43uEkOoskOmRc7ItNPwkpWa0C7H4cnXPz1YRQYRW7+anT5eV7AMdQ7GOfqyC4/wsbwzI0HlzDrAvJvpCAewmarS6w1ZaieBxEZMhSDMtbkjWZK3zbedn2ahFZA==</value>
<plainText>false</plainText>
</password>
<timeZone>190</timeZone>
<autoLogon>false</autoLogon>
<autoLogonCount>0</autoLogonCount>
</guiUnattended>
<userData>
<fullName>test</fullName>
<orgName>testorg</orgName>
<computerName xsi:type="CustomizationFixedName">
<name>testVM</name>
</computerName>
<productId></productId>
</userData>
<identification>
<joinWorkgroup>WORKGROUP</joinWorkgroup>
</identification>
</identity>
<globalIPSettings />
<nicSettingMap>
<adapter>
<ip xsi:type="CustomizationFixedIp">
<ipAddress>172.16.1.2</ipAddress>
</ip>
<subnetMask>255.255.255.0</subnetMask>
<gateway>172.16.1.1</gateway>
<gateway></gateway>
<dnsServerList>202.144.66.6</dnsServerList>
<dnsServerList>202.144.10.50</dnsServerList>
<primaryWINS></primaryWINS>
<secondaryWINS></secondaryWINS>
</adapter>
</nicSettingMap>
</customization>
</spec>
</soap:Body>
</soap:Envelope>