Use it when diagnosing device presence versus usability and when deciding whether the device is emulated, virtualized, mediated or passed through.
Virtual Devices
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.
1. Add only needed devices.
2. Remove ISO after install.
3. USB/GPU passthrough pins the VM.
4. TPM needs UEFI and storage for state.
5. Serial console helps troubleshooting.
device config → guest drivers
Inspect the next unproven device/backing/guest boundary and test the original function.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show migration compatibility, alternate backing paths or security guarantees beyond the examined configuration.
Next check: Inspect the next unproven device/backing/guest boundary and test the original function.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
VM device config → hypervisor device instance → host backing/state → guest driver → guest consumer/workload
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Virtual CD/DVD is an optical-drive device presented to a guest and usually backed by an ISO image, physical optical device or disconnected/empty media state.
Subtopic ISOISO in VM Hardware is a disk-image file attached as read-only optical media to a virtual CD/DVD device.
Subtopic USBVirtual USB provides one or more USB controller/device interfaces to a guest through emulation, redirection, host-device attachment or passthrough-like mechanisms depending on platform.
Subtopic Serial PortVirtual Serial Port presents a serial/UART-style interface to a guest, often backed by a host device, file, named pipe, socket or console channel.
Subtopic TPMVirtual TPM (vTPM) presents TPM security functions and state to a guest through a hypervisor-managed virtual device, commonly used for measured boot, disk-encryption key protection and modern OS requirements.
Subtopic GPUGPU in VM Hardware describes the graphics/compute device presented to a VM, ranging from simple virtual display adapters to mediated/shared GPU or dedicated device assignment.
- 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.
virsh dumpxml <vm> | grep -E 'disk device|usb|serial|tpm|video'— devices (libvirt)qm config <vmid>— Proxmox devicesGet-VMDvdDrive,Get-VMKeyProtector— Hyper-V devices
ReferenceWhat it is1 section · depth on demand
Common virtual devices
| Device | Use | Caution |
|---|---|---|
| CD/DVD with ISO | Installation | Disconnect after use (blocks migration if ISO is local) |
| USB | Licence dongles, tokens | Ties VM to a host |
| Serial | Console for network appliances/Linux | Log output |
| vTPM | BitLocker, Windows 11 | Needs key provider/backup |
| GPU | VDI, AI workloads | Passthrough/vGPU limits migration |
Remove unused devices (floppy, serial, USB) to reduce attack surface.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Device presence shows inventory only, but it does not show backing availability, driver correctness or application use.
Deep passthrough belongs to PCI & Device Passthrough; networking/storage-specific virtual devices belong to their branches.
In depth
Other virtual devices round out a VM: optical drives, USB controllers, serial/parallel ports, display adapters, sound, watchdog, RNG and TPM. Remove what the VM does not need — every device is attack surface and some (floppy, serial, USB) are common in security hardening guides.
qm config 120
virsh dumpxml vm1 | grep -E '<(controller|input|sound|video|serial|watchdog|rng|tpm)'
A virtio-rng device feeds entropy to guests, helping early-boot crypto on headless VMs.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in VM Hardware → Virtual Devices. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VM Hardware → Virtual Devices reference map
Fast VM-hardware boundaries for VM Hardware → Virtual Devices.
| 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 |