Pcornel
Virtualization

Virtual Machine Lifecycle

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

Back to the Topic

Answer

Provisioning, start/stop, snapshots/checkpoints, migration and safe retirement of virtual machines.

Remember

  • Separate guest, virtual device, hypervisor, cluster, physical network and storage boundaries
  • Snapshots/checkpoints are not independent backups
  • Cluster membership, quorum, ownership and shared storage determine safe recovery actions
  • VM Lifecycle must be verified from intended configuration through effective state, dependency health and consumer-visible outcome.
  • Record platform/version, scope, timestamp and the evidence boundary before remediation.

First checks

  • virsh list --all — VM states
  • qm list — Proxmox VMs
  • Get-VM | ft Name,State — Hyper-V states

Commands

virsh dominfo <vm>
Local state

Verify in this order

create → run → pause/save → shutdown → delete

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=384

Confirmation

Confirm action

Continue?