Pcornel
Virtualization · VM Hardware

Virtual Devices

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

Back to the Topic

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 devices
  • Get-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

BoundaryMeaningEvidence limit
Config objectDevice declared for VMControl plane
Runtime deviceHypervisor presents itRuntime boundary
Guest driverOS recognizes/operates deviceGuest boundary
Backing/stateHost resource/media/keysSeparate 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

Confirmation

Confirm action

Continue?