Virtual Machines
Cheat sheet · https://pcornel.dk/topic.php?topic=3332
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 stateGet-VMHost— host settingsGet-VMSwitch— virtual switchesGet-VMNetworkAdapter -VMName <vm>— vNICs, switch, VLANGet-VMHardDiskDrive -VMName <vm>— attached disksGet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Configuration | Defined CPU/memory/devices | Does not prove resources can be activated |
| Runtime | Off/Running/Paused/Saved state | Running does not prove guest boot |
| Guest | Guest OS has booted and reports health | Does not prove application dependency health |
| Workload | Target service/application succeeds | Strongest 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