Pcornel
Virtualization · Hyper-V

Virtual Machines

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

Back to the Topic

Answer

A Hyper-V VM has multiple independent states: configuration validity, registration, power/runtime state, guest OS state and application state. Troubleshooting must keep those layers separate.

Remember

  • Registered ≠ running.
  • Running ≠ guest booted.
  • Guest booted ≠ application healthy.
  • A VM configuration can be valid yet incompatible with destination CPU, storage or networking.

First checks

  • Get-VM | ft Name,State,Generation,Version,Status — VM inventory
  • Get-VM <vm> | Get-VMHardDiskDrive,Get-VMNetworkAdapter — devices
  • Update-VMVersion <vm> — upgrade config version (one-way)

Verify in this order

VM config → worker process → VHDX/vNIC

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.

Hyper-V → Virtual Machines reference map

BoundaryMeaningEvidence limit
ConfigurationPersistent VM definitionNot runtime allocation
RuntimeOff/Starting/Running/etc.Running ≠ guest healthy
GuestOS respondsNot application proof
ApplicationOriginal service test succeedsEnd-to-end acceptance

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

Confirmation

Confirm action

Continue?