Pcornel
Windows · Hyper-V

Virtual Machines

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

Back to the Topic

Answer

A VM has separate configuration state, runtime state and guest state; management tools primarily expose host-side VM state, while guest and application health require independent validation.

Remember

  • A VM configuration defines assigned resources; allocation and guest use are separate runtime facts.
  • Running means the hypervisor considers the VM running, not that the OS booted successfully.
  • VM name is a convenient label; durable correlation should use the VM identity plus host and time context.
  • Generation and configuration choices constrain supported firmware/devices and cannot all be changed later.

First checks

  • Get-VM — VMs and state
  • Get-VMHost — host settings
  • Get-VMSwitch — virtual switches
  • Get-VMNetworkAdapter -VMName <vm> — vNICs, switch, VLAN
  • Get-VMHardDiskDrive -VMName <vm> — attached disks
  • Get-WinEvent -LogName Microsoft-Windows-Hyper-V-VMMS-Admin -MaxEvents 30 — VMMS events

Verify in this order

VM config → resources → start → guest OS

Where it usually breaks

First mismatch in host/cluster identity → management configuration → quorum/resource ownership → network/storage dependencies → VM/service runtime → guest/application verification; preserve identity/native error/pre-state before mutation.

Hyper-V → Virtual Machines reference map

BoundaryMeaningEvidence limit
ConfigurationDefined CPU/memory/devicesDoes not prove resources can be activated
RuntimeOff/Running/Paused/Saved stateRunning does not prove guest boot
GuestGuest OS has booted and reports healthDoes not prove application dependency health
WorkloadTarget service/application succeedsStrongest end-to-end outcome evidence

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

Confirmation

Confirm action

Continue?