Hi all,
vCloud director does not provide the function to resize Hard Disks in the GUI. It is also not recommended to do this through the vSphere client. as such I have created a workflow which does this using the vCloud REST api. The workflow required the http-rest & vcloud director plugins (vcloud 1.5)
A couple of attributes are required but could be set programatically if required:
- HOST
- a vCloud plugin Host (most people probably only have one)
- RESTHOST
- The http-rest representation of the vCloud Host
Input Parameter:
- VM
- selection from the vCloud plugin Inventory view
The basic principle of the workflow is as follows:
- get a VM object as an input parameter (vCloud plugin)
- get the XML representation of the object from http-rest
- enumerate the VM's hard disks
- prompt the user to select a disk to resize (only increasing size works at the moment)
- get the new disk size
- update the disk size using the rest plugin
- wait for the update task to complete.
the workflow is attached. Let me know if there are any issue as I only have 1 system to test it in (ie I can not import it to test the package)
Hope it works for you.
Tim