如何固定USB设备的Bus和Device序号

taotaoya

New Member
Oct 28, 2024
1
0
1
你好,我在使用PVE 8.2,我通过添加Device Passthrough给CT容器直通USB设备,/dev/bus/usb/001/003
一切都能正常使用,但是当USB设备重新插拔以后,他的Device序号就变了,会导致我䰊该设备,请问如何固定USB设备的BUS和Device序号呢?
 
You have to set up a permanent path yourself.

Check lsusb which one is your device, then look for its particulars with udevadm info -a -n, create a new rules file in /etc/udev/rules.d that maps it:

Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="XXX", ATTRS{idProduct}=="YYY", ATTRS{serial}=="ZZZ", SYMLINK+="mydevice"
 
  • Like
Reactions: waltar

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!