Pcornel
Virtualization · VM Hardware › Virtual Devices

USB

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

Back to the Topic

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

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3472

Confirmation

Confirm action

Continue?