deploy_vm_from_ova
Import a local .ova file to create a new virtual machine. Parses the OVF descriptor and uploads the VMDK to the specified datastore and network.
Instructions
[WRITE] Create a new VM by importing a local .ova file (OVF parse + VMDK upload).
Use for OVA appliance files on the local machine. For vSphere templates use deploy_vm_from_template; to copy an existing VM use vm_clone or deploy_linked_clone. Upload time scales with OVA size. Fails before creating anything if the datastore is not found. Audited to ~/.vmware/audit.db.
Args: ova_path: Local filesystem path to the .ova file (must be readable by this server). vm_name: Name for the new VM; must not already exist. datastore_name: Target datastore name; discover with browse_datastore. network_name: Port group for the VM's NICs (default "VM Network"). folder_path: vCenter VM folder path; omit to use the datacenter's root VM folder. power_on: True powers the VM on after import (default False). snapshot_name: If set, creates a baseline snapshot with this name after deploy. target: vCenter/ESXi target name from config.yaml; omit to use the default target.
Returns: Status string with the deployed VM name, or an error naming the missing resource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ova_path | Yes | ||
| vm_name | Yes | ||
| datastore_name | Yes | ||
| network_name | No | VM Network | |
| folder_path | No | ||
| power_on | No | ||
| snapshot_name | No | ||
| target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |