Host USB ports assigned to guest

0badc0de

Member
May 3, 2018
25
0
21
56
Hi all.
I need to assign some USB ports to one of the guests.
This is to allow unknown USB device to be "seen" by the guest when inserted in those specific ports.
I am reading this guide but I am not sure to fully understand it.
I would expect to only make some actions on the host.
I cannot match the output for "info usbhost" before and after the power cycle of the guest with the data I see.
I need to be sure on what I do as the shutdown+restart should be done only once in my case.
Any hint?
 
can you a bit more specific what you want to do?
if you want to pass through a usb port, you simply need to configure that

the example on the guid you linked is rather clear on how:

lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 1: Dev 4, If 0, Class=vend., Driver=usbfs, 1.5M
|__ Port 2: Dev 5, If 0, Class=vend., Driver=usbfs, 1.5M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/4p, 480M
|__ Port 3: Dev 5, If 0, Class=comm., Driver=usbfs, 480M
|__ Port 3: Dev 5, If 1, Class=data, Driver=usbfs, 480M

  • Example 1: Bus 3, Port 1 => 3-1
  • Example 2: Bus 1, Port 1, Port 3 => 1-1.3
 
  • Like
Reactions: 0badc0de
Well, the example actually lead me to the solution. Just did a few extra tests.
I used the details from "lsusb -t" .
Thanks.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!