Pcornel
Automation · Virtualization Automation

VM Lifecycle

Cheat sheet · https://pcornel.dk/topic.php?topic=5700

Back to the Topic

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

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact platform and VM/resource IDs plus source revision are explicitNames, selectors or inventory paths resolve to the wrong or changing object
Management operationTask/job response and asynchronous completion are traceableRequest acknowledgement or partial batch success is treated as completion
Effective virtual stateRuntime inventory, attachments and placement are read backDesired/requested configuration substitutes for actual hypervisor state
Guest / workload proofGuest readiness and original service test passHypervisor 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

Confirmation

Confirm action

Continue?