Use it when a guest needs USB peripherals or when diagnosing host detection versus VM attachment versus guest driver/use.
USB
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.
1. USB passthrough gives a VM a host USB device (licence dongles, serial adapters).
2. Pins the VM to that host.
3. Use vendor:product or port mapping.
4. USB over IP for portability.
5. Check in guest: lsusb.
host USB device → passthrough → guest driver
Test lifecycle/migration behavior and repeated reconnect/reset if those are requirements.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show migration support, reset stability or all device-specific functions.
Next check: Test lifecycle/migration behavior and repeated reconnect/reset if those are requirements.
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
host USB/device or virtual USB source → hypervisor attachment → guest USB controller/device → driver → application
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.
- 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.
qm set <vmid> --usb0 host=<vendor>:<product>— USB passthrough (Proxmox)lsusb— host USB devicesvirsh attach-device <vm> usb.xml— libvirt hotplug
ReferenceWhat it is1 section · depth on demand
USB options
| Method | Notes |
|---|---|
| Host USB passthrough | Simple; VM tied to the host |
| USB controller passthrough (PCIe) | Whole controller to the VM |
| USB over network (AnywhereUSB, USB/IP) | VM can migrate; device stays on a network hub |
| Client USB redirection (VDI) | User's local devices |
Licence dongles are the common case; prefer network USB hubs in clusters.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Guest enumeration shows the USB device is presented, not that device-specific function, persistence or migration is supported.
Deep PCI/USB passthrough ownership belongs to PCI & Device Passthrough.
In depth
Virtual USB controllers (UHCI/EHCI/xHCI) let VMs use emulated USB devices (tablet pointer) or passed-through physical ones (license dongles, smart-card readers, serial adapters).
qm set 120 --usb0 host=0529:0001 # by vendor:product
lsusb # on the host
USB passthrough ties the VM to the host with the device, which breaks live migration and HA; USB-over-IP servers (e.g. network USB hubs) avoid that for dongles.
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 → USB. 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 → USB reference map
Fast VM-hardware boundaries for VM Hardware → Virtual Devices → USB.
| 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 |