Pcornel
Virtualization

Hyper-V

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

Back to the Topic

Answer

Hyper-V is Microsoft's hypervisor in Windows Server. It runs virtual machines — each with virtual processors, memory, VHDX disks and network adapters on a virtual switch — on one physical host.

Remember

"Running" is the host's view: the guest may still not have booted. The generation (1 or 2) is fixed at creation. A checkpoint is a rollback point, not a backup, and its differencing disk grows until the checkpoint is deleted.

First checks

  • Get-VMHost | fl ComputerName,LogicalProcessorCount,MemoryCapacity,VirtualHardDiskPath,VirtualMachinePath — host defaults
  • Get-VM | ft Name,State,CPUUsage,MemoryAssigned,Uptime,Version — VMs
  • Get-Service vmms,vmcompute — management services

Commands

Get-VMNetworkAdapter -All
Hyper-V VM network adapters and switch attachment.
Get-VMNetworkAdapterVlan -VMName <name>
Hyper-V VM VLAN mode/configuration.

Verify in this order

hypervisor → parent partition (vmms) → worker process (vmwp) → child partition VM

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 evidence chain

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?Get-VMremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?guest workload → virtual device/switch/disk → hypervisor process → cluster ownership/quorum → physical network/storage → application outcomeapplication success

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

Confirmation

Confirm action

Continue?