Skip to main content

Proxmox KVM usb passthrough

Open KVM monitor for your KVM machine in Proxmox GUI or in the command line with the following command:

# qm monitor 168
Entering Qemu Monitor for VM 168 - type 'help' for help
qm> 

Show the usb devices info from your host machine:

qm> info usbhost
  Bus 4, Addr 2, Port 1, Speed 12 Mb/s
    Class 00: USB device 046b:ff10, Virtual Keyboard and Mouse
  Bus 6, Addr 2, Port 2, Speed 1.5 Mb/s
    Class 00: USB device 0624:0294, Dell 03R874
  Bus 2, Addr 3, Port 1, Speed 480 Mb/s
    Class 00: USB device 0930:6533, DataTraveler 2.0
  Auto filters:
    Bus *, Addr *, Port *, ID 0930:6533

According to device “USB device 0930:6533” in the example, add the device to guest machine:

qm> device_add usb-host,id=myusb,vendorid=0x0930,productid=0x6533

Verify that the new usb device is added in your guest:

qm> info usb
  Device 0.1, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet
  Device 0.3, Port 2, Speed 12 Mb/s, Product QEMU USB Hub
  Device 0.4, Port 2.1, Speed 480 Mb/s, Product DataTraveler 2.0

After using it, remove usb device from your guest:

qm> device_del myusb

If you run the command again, you will see the usb device is gone from your guest:

qm> info usb
  Device 0.1, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet
  Device 0.3, Port 2, Speed 12 Mb/s, Product QEMU USB Hub

This has been tested in Proxmox 3.0/957f0862

3 thoughts on “Proxmox KVM usb passthrough

  1. Thanks for this info, the first working one I found voor v3.
    I ran into one little issue: two of my USB devices have the exact same vendor and product ID. They both use SI labs drivers/systems.

    Any idea how to get around this?

    Bus 2, Addr 11, Port 1.5.6, Speed 12 Mb/s
    Class 00: USB device 10c4:ea60, CP2102 USB to UART Bridge Controller
    Bus 2, Addr 12, Port 1.5.4, Speed 12 Mb/s
    Class 00: USB device 10c4:ea60, CP2102 USB to UART Bridge Controller

    1. Late, late, late :-), but you can try to specify other parameters like

      qm> device_add usb-host,id=myusb,vendorid=0x0930,productid=0x6533,hostaddr=11

Leave a Reply

Your email address will not be published. Required fields are marked *