I'm trying to use ReconfigVM_Task to resize the virtual disk on a VM.
This is the XML I have:
<ReconfigVM_Task xmlns=\"urn:vim25\">
<_this type=\"VirtualMachine\">{$vm_id}</_this>
<spec>
<deviceChange>
<device>
<key>2000</key>
<controllerKey>1000</controllerKey>
<unitNumber>0</unitNumber>
<capacityInKB>30000000</capacityInKB>
</device>
<operation>edit</operation>
</deviceChange>
</spec>
</ReconfigVM_Task>
It returns success but nothing happens?
What am I missing?
Anyone???
I tried this too... Still no luck. The task returns success - but Drive is not expanded.
<deviceChange>
<device>
<key>2000</key>
<backing>
<fileName>[datastore1] Ubuntu 9.10 Server 2/Ubuntu 9.10 Server 2.vmdk</fileName>
<datastore>datastore-43</datastore>
<diskMode>persistent</diskMode>
<split>false</split>
<writeThrough>false</writeThrough>
<thinProvisioned>true</thinProvisioned>
<uuid>6000C29d-b9ef-f719-e960-102596f755a1</uuid>
</backing>
<unitNumber>0</unitNumber>
<controllerKey>1000</controllerKey>
<deviceInfo>
<label>Hard disk 1</label>
<summary>11,534,336 KB</summary>
</deviceInfo>
<capacityInKB>".(4010241024)."</capacityInKB>
</device>
<operation>edit</operation>
</deviceChange>