Update kubevirt doc's having VM example with deprecated spec.running and modify it to spec.runStrategy

Relates to: sylva-core#2479 (closed)

KubeVirt has deprecated the use of spec.running in VirtualMachine (VM) manifests. The recommended approach is to use spec.runStrategy for improved clarity and flexibility in VM lifecycle management.

There are example mentioned in kubevirt doc which are using spec.running which need to replace with spec.runStrategy

TasK:

  1. Identify and replace all instances of spec.running in VM manifests (e.g., spec.running: true → spec.runStrategy: "Always")
  2. Add runStrategy values to manifests based on intended lifecycle behavior: Always, Manual, RerunOnFailure, Halted
  3. Update documentation to include:
  • Description of runStrategy values
  • Behavior mapping for start, stop
  • Migration guidance from spec.running to runStrategy
  • Example kubectl patch and virtctl usage
Edited Jun 17, 2025 by manik bindlish
Assignee Loading
Time tracking Loading