Assigning USB devices to users or user groups based on product ID

Axl_fzetafs

Active Member
Apr 29, 2020
80
2
28
51
FOREWORD:
in the company we are building a small cluster where all users will be given specific amount of resources, cPU, RAM, storage.
We would like users to be able to connect specific USB devices and assigned to them based on some markers.
To provide more details, we are thinking of users to be able to configure as in a staging area, new devices where there first setup must be done through the console cable (like FTDI USB to RJ45). Such FTDI chipsets will have rewritten with string like XXX_something, with XXX being the triagram of the user.

WHAT WE WOULD LIKE TO ACHIEVE
Once an USB cable is connected to a node, a script/process based on the following logic "if the USB product ID contains XXX then assign to the resource/user/group XXX".

There will be a sort of mapping like:

String "XXX" -> user "John Doe 01" or Group 01
String "YYY" -> user "John Doe 02" or Group 02
Regex would be more than welcome.

Once USB devices are assigned to a user or a group of users, then the physical connection to a specific VM, will be responsabiity of the single user.
I hope I was clear in explaining what we would like to achieve.
Is that possible?

Many thanks in advance!

Alex
 
Last edited:

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!