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.

1

Create a DeploymentTarget instance to specify the deployment location of the virtual machine or virtual appliance.

2

Instantiate the ResourcePoolDeploymentSpec class 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.

3

(Optional) Retrieve information from the descriptor file of the OVF package and use the information during the OVF package deployment.

4

Invoke the deploy method on the LibraryItem service.

5

Verify the outcome of the deployment operation.