Use it when designing, operating or troubleshooting virtualization automation around VM Lifecycle. Keep object identity, management-task result, effective hypervisor state, guest readiness and workload acceptance as separate proof boundaries.
VM Lifecycle
VM Lifecycle automates start, stop, restart, suspend, resume and decommission operations while preserving requested transition, asynchronous task state, guest shutdown behavior and final runtime state separately.
1. Automate the whole VM lifecycle.
2. Tags for owner and expiry.
3. Resize workflows.
4. Decommission removes backups, DNS, monitoring.
5. Audit.
create → operate → resize → decommission
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
lifecycle intent → exact VM/current state → dependency/maintenance check → graceful/forced action → task/event → runtime state read-back → guest/service verification → dependent-resource reconciliation
Healthy evidence: the requested transition is traceable, final runtime state matches intent and guest/service or decommission acceptance is independently verified.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: automation reports completion while a force action, stuck task, stale state or orphaned dependency leaves the environment inconsistent.
Lifecycle state from the hypervisor does not show clean guest shutdown, application consistency or complete decommission cleanup.
Step 3 Common mistakes Narrow the fault
- VMs never decommissioned.
Step 4 Where it fails Narrow the fault
Trace a failure along the path it takes: automation/provider → management API → task/job → cluster/host/storage/network → VM object → guest/runtime state → independent read-back.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Power action accepted ≠ transition completed.
- Powered off ≠ guest shut down cleanly.
- Powered on ≠ guest services ready.
- Delete completed ≠ dependent disks, backups, DNS or inventory records handled correctly.
- Lifecycle states automated (create, resize, power, delete) — coverage
- Expiry dates/tags for temporary VMs — cleanup
- Decommission workflow — retirement
ReferenceWhat it is1 section · depth on demand
Core model
Identify the exact VM and current power/lifecycle state, evaluate dependencies and maintenance intent, request the transition, observe task completion, read back runtime state and verify guest or service behavior after the transition.
ReferenceWhy it matters1 section · depth on demand
In depth
VM lifecycle automation covers everything after creation: resizing, patching, snapshots, migration, backup policy, and finally decommissioning — removing the VM, its disks, DNS and IPAM records, monitoring and backup jobs.
| Lifecycle stage | Automated action |
|---|---|
| Create | Template + customisation |
| Operate | Patch, resize, snapshot |
| Protect | Assign backup policy |
| Move | Live migration for maintenance |
| Retire | Power off, keep for N days, delete everything linked |
Tag VMs with owner, purpose and expiry date so automation can find candidates for decommissioning.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
VM Lifecycle owns vendor-neutral state-transition workflow; guest OS shutdown semantics and platform-specific lifecycle commands remain with the relevant Topics.
Mechanics
Virtualization Automation → VM Lifecycle is owned at runtime by the virtualization automation client/provider, management plane and hypervisor/cluster/storage/network subsystems.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization Automation > VM Lifecycle. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://opentofu.org/docs/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VM Lifecycle virtualization automation proof-boundary map
Fast identity, task, effective-state and guest/workload proof boundaries for VM Lifecycle.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact platform and VM/resource IDs plus source revision are explicit | Names, selectors or inventory paths resolve to the wrong or changing object |
| Management operation | Task/job response and asynchronous completion are traceable | Request acknowledgement or partial batch success is treated as completion |
| Effective virtual state | Runtime inventory, attachments and placement are read back | Desired/requested configuration substitutes for actual hypervisor state |
| Guest / workload proof | Guest readiness and original service test pass | Hypervisor success substitutes for guest or application health |