Deploy a Virtual
Machine or Virtual Appliance from an OVF Package in a Content Library
You can use the
LibraryItem
service to
deploy a virtual machine or virtual appliance on a host, cluster, or resource
pool from a library item.
- Create aDeploymentTargetinstance to specify the deployment location of the virtual machine or virtual appliance.
- Instantiate theResourcePoolDeploymentSpecclass to define all necessary parameters for the deployment operation.For example, you can assign a name for the deployed virtual machine or virtual appliance, and accept the End User License Agreements (EULAs) to complete the deployment successfully.
- Retrieve information from the descriptor file of the OVF package and use the information during the OVF package deployment.
- Invoke thedeploymethod on theLibraryItemservice.
- Verify the outcome of the deployment operation.