convert_vm_to_template
Convert a powered-off VM to a vSphere template to freeze a golden image for cloning. After conversion, the VM serves only as a clone source.
Instructions
[WRITE] Convert a powered-off VM to a vSphere template.
Returns a status string. Use this to freeze a golden image: afterwards the VM cannot be powered on and serves only as a clone source for deploy_vm_from_template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional vCenter/ESXi target name from config. | |
| vm_name | Yes | Name of the VM to convert (must be powered off). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |