Automation · Virtualization Automation
VM Lifecycle
Cheat sheet · https://pcornel.dk/topic.php?topic=5700
Answer
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.
Remember
- 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.
First checks
- Lifecycle states automated (create, resize, power, delete) — coverage
- Expiry dates/tags for temporary VMs — cleanup
- Decommission workflow — retirement
Verify in this order
create → operate → resize → decommission
Where it usually breaks
Lifecycle state from the hypervisor does not independently prove clean guest shutdown, application consistency or complete decommission cleanup.
VM Lifecycle virtualization automation proof-boundary map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5700