VMware vCloud

 View Only
  • 1.  How to add a Vm to a vApp ?

    Posted Sep 16, 2010 09:16 AM

    Hello:

    I'm trying to understand how to add a Vm to an existing vApp with vCloud 1.0 and find the vCloud spec (and its underlying object model) very confusing when it comes to vApp/Vm composition:

    -the recomposeVApp request allows to remove a Vm from a vApp. Does it also allow to add a Vm to a vApp by specifying an Item element referencing an existing Vm as its source ?

    -if true, the Vm being added necessarily comes from another vApp ? Does it imply that this Vm is reparented, i.e its original vApp loses one child and the recomposed vApp gains one ?

    -is there a way to create a Vm without a vApp ?

    -in the vCloud Java SDK, the vApp class provides a isVm method. Does it mean that there are two classes of vApp: vApps which are actually elementary Vm (and which cannot act as a parent of sub-Vm/vApp) and vApp proper ?

    Thanks in advance



  • 2.  RE: How to add a Vm to a vApp ?

    Posted Sep 16, 2010 08:49 PM

    Hi,

    - yes, you can add vm's.

    - no, creates a copy of the vm and attaches it to the newly recomposed vapp.

    - no, A vApp contains virtual machines.

    - yes, vApp's and VM's are represented as vApp's in the vCloud Java SDK. You can use the isVm(), to find if the SDK vApp class is a vApp or a VM.

    Regards,

    Rajesh Kamal.



  • 3.  RE: How to add a Vm to a vApp ?

    Posted Apr 03, 2014 10:46 AM

    Hi Rajesh,

    Can you please provide me the code for the action (Recompose a vApp to Add or Remove Virtual Machines).

    I have already composed a vApp (Not Instantiated) and Now I want to update the vApp by creating Virtual Machines, Document doesn't have proper XML. It's bits and pieces and I am not able to understand.

    Can you please provide me the entire XML for that? My requirement is to create VMs.

    Thanks,

    Tejas Trivedi.