USB
Cheat sheet · https://pcornel.dk/topic.php?topic=3472
Answer
USB virtualization can present synthetic controllers/devices or connect a physical host USB device to a VM. Ownership, reset behavior and migration support depend on the method used.
Remember
- Host seeing a USB device does not mean the VM owns or sees it.
- USB controller presence and individual device attachment are separate.
- Physical USB attachment can constrain migration/HA depending on implementation.
- Guest driver and device-specific behavior remain required.
First checks
qm set <vmid> --usb0 host=<vendor>:<product>— USB passthrough (Proxmox)lsusb— host USB devicesvirsh attach-device <vm> usb.xml— libvirt hotplug
Verify in this order
host USB device → passthrough → guest driver
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 → USB reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Host detection | Physical device visible to host | If physical source |
| VM attachment | Device redirected/assigned | Ownership step |
| Guest driver | USB/device driver loaded | Guest operation |
| Mobility | Migration/suspend implications | Method dependent |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3472