VMware ConvertVmToTemplate

VMware ConvertVmToTemplate

Certified
Enterprise Edition

Convert a VM into a template

Turns a powered-off VM into a reusable template. The VM can no longer boot, but its disks become the source for new deployments.

yaml
type: io.kestra.plugin.ee.vmware.vcenter.ConvertVmToTemplate

Convert a VM to a reusable template

yaml
id: convert_vm_to_template
namespace: company.team

tasks:
  - id: convert
    type: io.kestra.plugin.ee.vmware.vcenter.ConvertVmToTemplate
    server: "vcenter.mycompany.com"
    username: "{{ secret('VMWARE_VCENTER_USERNAME') }}"
    password: "{{ secret('VMWARE_VCENTER_PASSWORD') }}"
    vmName: "vm-for-template"
Properties

Password

Server hostname or IP

FQDN or IP of the vCenter or ESXi endpoint (no scheme or port).

Username

e.g. Administrator@vsphere.local for vCenter or root for ESXi.

VM name to convert

Must be powered off before conversion.

Reference (ref) of the pluginDefaults to apply to this task.

Default443

Server port

Defaults to 443.

Trust store path

Optional path to a PKCS12 trust store containing the CA certificate(s) used to validate the vCenter/ESXi server's TLS certificate. If omitted (or if the path does not exist), the JVM's default trust store (system CA certificates) is used instead. Certificate validation is always enforced; this plugin never disables TLS certificate validation.