VMware CreateVm

VMware CreateVm

Certified
Enterprise Edition

Provision and optionally power on a VM

Creates a VM on a vCenter-managed host with a mounted ISO. Defaults: 1 vCPU, 4 GB RAM, ~16 GB disk, guest OS ID ubuntu64Guest, and powerOn=true unless overridden.

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

Create a new virtual machine in VMware vSphere

yaml
id: vsphere_create_vm
namespace: company.team

tasks:
  - id: create
    type: io.kestra.plugin.ee.vmware.vcenter.CreateVm
    datacenter: "datacenter1"
    server: "localhost"
    username: "{{ secret('VMWARE_VCENTER_USERNAME') }}"
    password: "{{ secret('VMWARE_VCENTER_PASSWORD') }}"
    hostname: "localhost.localdomain"
    vmName: "vmware-vm"
    networkName: "VM Network"
    datastoreName: "datastore1"
    isoName: "ubuntu-24.04.2-desktop-amd64.iso"
Properties

Datacenter name

Datacenter where the VM will be created.

ESXi host name

Host system that will run the VM.

ISO path

Path inside the datastore (e.g. ISOs/ubuntu.iso). Must reside on the selected datastore.

Network name

PortGroup to attach (Standard/Distributed/Opaque).

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

Unique VM name within the target folder.

vCPU count

Defaults to 1.

Custom attributes

Optional map of vCenter custom attribute name to value to set on the VM after creation. If a field definition does not exist it is created automatically for the VirtualMachine type.

Datastore name

Datastore for VM files; omit to use the host default.

Disk size (MB)

Defaults to ~16000 MB if not provided.

Guest OS ID

e.g. ubuntu64Guest, rhel9_64Guest, windows11_64Guest. Defaults to ubuntu64Guest.

Memory size (MB)

Defaults to 4096 MB.

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

Default443

Server port

Defaults to 443.

Power on after creation

Defaults to true; set false to leave the VM powered off.

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.