Create an OVF Template in a Content Library from a Virtual Machine or vApp
You can create library items from existing virtual machines or vApp. Use those library items later to deploy virtual machines and vApps on hosts and clusters in your vCenter Server environment.
Procedure
- Create a com.vmware.vcenter.ovf.LibraryItemTypes.DeployableIdentity instance to specify the source virtual machine or vApp to be captured in an OVF template.
- Create a com.vmware.vcenter.ovf.LibraryItemTypes.CreateTarget instance to identify the content library where the OVF template is stored.
- Create a com.vmware.vcenter.ovf.LibraryItemTypes.CreateSpec instance to specify the properties of the OVF template.
- Initiate a synchronous create operation by invoking the create function of the com.vmware.vcenter.ovf.LibraryItem service.
- Verify the results of the create operation.