Virtual Machine
Cheat sheet · https://pcornel.dk/topic.php?topic=3405
Answer
A VM presents CPUs, memory, firmware, controllers, disks, NICs and other virtual devices to a guest. Its configuration can exist while powered off; when started, the hypervisor creates runtime state for the virtual hardware and guest execution.
Remember
- VM configuration can exist without a running guest.
- A VM is more than a process name; its runtime may include hypervisor contexts, worker processes and device backends depending on platform.
- Virtual hardware identity is decoupled from physical hardware identity.
- Snapshots/checkpoints, migration and cloning change VM state/history but do not redefine the VM concept.
First checks
virsh dumpxml <vm>— full VM definition (libvirt)qm config <vmid>— Proxmox VM configGet-VM <vm> | fl *— Hyper-V VM properties
Commands
virsh dumpxml
Verify in this order
config → virtual hardware → disks on storage → running process
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.
Virtualization Fundamentals → Virtual Machine reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Configuration | Persistent VM definition | Can exist while VM is off |
| Runtime | Active execution context | Running ≠ guest healthy |
| Virtual devices | Guest-facing hardware model | Attachment ≠ healthy backing |
| Guest state | OS inside VM | Independent health layer |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3405