Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

USB

Direct 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.

When to use this

Use it when a guest needs USB peripherals or when diagnosing host detection versus VM attachment versus guest driver/use.

First 30 seconds

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.

Operational verification

host USB device → passthrough → guest driver

Evidence · next step

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
Common mistakes
Common traps

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.

Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Scope / prerequisiteUse it when a guest needs USB peripherals or when diagnosing host detection versus VM attachment versus guest driver/us…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • qm set <vmid> --usb0 host=<vendor>:<product> — USB passthrough (Proxmox)
  • lsusb — host USB devices
  • virsh attach-device <vm> usb.xml — libvirt hotplug
ReferenceWhat it is1 section · depth on demand

USB options

MethodNotes
Host USB passthroughSimple; 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

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%
Terminology layer

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.

Aliases that resolve here
usb vmvirtual usbusb passthrough virtual machine
Embedded reference data

Quick lookup tables

VM Hardware → Virtual Devices → USB reference map

Fast VM-hardware boundaries for VM Hardware → Virtual Devices → USB.

BoundaryMeaningEvidence limit
Host detectionPhysical device visible to hostIf physical source
VM attachmentDevice redirected/assignedOwnership step
Guest driverUSB/device driver loadedGuest operation
MobilityMigration/suspend implicationsMethod dependent
Confirmation

Confirm action

Continue?