Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Resize a VM in vCloud Director

$
0
0

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:

 

  1. get a VM object as an input parameter (vCloud plugin)
  2. get the XML representation of the object from http-rest
  3. enumerate the VM's hard disks
  4. prompt the user to select a disk to resize (only increasing size works at the moment)
  5. get the new disk size
  6. update the disk size using the rest plugin
  7. 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


Viewing all articles
Browse latest Browse all 179681

Trending Articles



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