
KVM / Libvirt StopVm
CertifiedStop or shutdown KVM domain
KVM / Libvirt StopVm
Stop or shutdown KVM domain
Sends a shutdown or hard power-off (force) to a libvirt domain. Can optionally wait until the domain reaches SHUTOFF using exponential retry up to timeToWait (default PT60S). Requires access to the target libvirt URI.
type: io.kestra.plugin.kvm.StopVmExamples
id: kvm_lifecycle_ssh
namespace: kvmtest.ssh
tasks:
- id: stop_vm
type: io.kestra.plugin.kvm.StopVm
uri: qemu+ssh://root@167.99.104.163/system
name: "kestra-worker-nodes"
force: true
Properties
name *Requiredstring
Domain name
Name of the libvirt domain to stop.
force booleanstring
falseForce power off
If true, calls destroy (hard power off); otherwise uses graceful shutdown. Default false.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
timeToWait string
PT1MMax wait duration
Maximum time to wait for SHUTOFF when waitForStopped is true. Default PT60S.
uri string
Libvirt URI
waitForStopped booleanstring
falseWait for SHUTOFF
If true, polls until the domain is SHUTOFF or timeout. Default false.
Outputs
name string
VM Name
Stopped domain name.
state string
VM State
Libvirt domain state after the stop attempt.