RebootVm
Reboot a virtual machine on a vCenter server by its name.
This task performs a graceful reboot of a virtual machine via VMware Tools. It is safer than a hard reset as it requests the guest OS to shut down and restart cleanly. The VM must be powered on and have VMware Tools running.
type: "io.kestra.plugin.ee.vmware.vcenter.RebootVm"
Examples
Gracefully reboot a VM by name using vCenter
id: reboot_vm
namespace: company.team
tasks:
- id: rebootVm
type: io.kestra.plugin.ee.vmware.vcenter.RebootVm
server: "vcenter.mycompany.com"
username: "{{ secret('VMWARE_VCENTER_USERNAME') }}"
password: "{{ secret('VMWARE_VCENTER_PASSWORD') }}"
vmName: "vm-to-reboot"
Properties
password *Requiredstring
The password for authentication.
The password used to authenticate with the VMware server.
server *Requiredstring
The URL of the server.
The URL to connect to the VMwareserver. This is a FQDN or an IP address (eg: esxi.mycompany.com), so without any protocol nor port.
username *Requiredstring
The username for authentication.
The username used to authenticate with the server. It could be something like '[email protected]' for vCenter or 'root' for ESXi.
vmName *Requiredstring
The name of the virtual machine.
port integerstring
443
The port for the connection.
The port to connect to the server. Default is 443.
trustStorePath string
The path to the trust store file.
The path to the trust store file containing certificates for secure connections. If not provided, an empty keystore will be created and the connection will be insecure.