Virtual Devices
Cheat sheet · https://pcornel.dk/topic.php?topic=3469
Answer
Virtual devices include removable media, USB, serial interfaces, TPMs and display/GPU devices. Each has a presentation layer, a guest driver/consumer and usually a host-side backing or state object.
Remember
- Device listed in VM configuration is not proof it is active or usable in the guest.
- Emulated/paravirtual devices differ from passthrough ownership.
- Guest drivers and host backing/state are independent boundaries.
- Some devices constrain live migration, snapshots or security handling.
First checks
virsh dumpxml <vm> | grep -E 'disk device|usb|serial|tpm|video'— devices (libvirt)qm config <vmid>— Proxmox devicesGet-VMDvdDrive,Get-VMKeyProtector— Hyper-V devices
Verify in this order
device config → guest drivers
Where it usually breaks
First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.
VM Hardware → Virtual Devices reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Config object | Device declared for VM | Control plane |
| Runtime device | Hypervisor presents it | Runtime boundary |
| Guest driver | OS recognizes/operates device | Guest boundary |
| Backing/state | Host resource/media/keys | Separate health/security |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3469