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.
Procedure
-
Create a
DeploymentTarget
instance to specify the deployment location of the virtual machine or virtual
appliance.
-
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.
- (Optional)
Retrieve information
from the descriptor file of the OVF package and use the information during the
OVF package deployment.
-
Invoke the
deploy method on the
LibraryItem service.
-
Verify the outcome of
the deployment operation.