1
The bus/device IDs can be obtained from virsh via the
'virsh nodedev-list --tree'
and
'virsh nodedev-dumpxml'
commands or using '
lsusb
' to determine the bus and device.
我采用的是lsusb来查看usb设备的编号,第一种方法,太麻烦了。
[root@nail-SBCJ-5-3-3 home]#
lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
修改xml文件,填好字段
vendor:product(0930:6544 )