- 积分
- 16844
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2022-9-29 11:52:34
|
显示全部楼层
(nova-libvirt)[root@compute07 /]# lsusb -v
8 G' q+ i7 r! }+ E& C' \9 k0 ?3 U% u7 A! R0 _8 R
Bus 002 Device 003: ID 0781:5588 SanDisk Corp.
0 d9 L$ e8 H0 sDevice Descriptor:
* N% T$ q- _+ V bLength 18
$ m2 U" K+ q+ P2 S bDescriptorType 1
" j8 n1 B/ F6 B, |+ t6 y/ h bcdUSB 2.10
! k/ R3 k1 ] @) Z! E5 X0 O bDeviceClass 0 (Defined at Interface level)6 x- \ }" j* E
bDeviceSubClass 0 + f2 t8 D$ Y5 W' _
bDeviceProtocol 0 . u& ~6 x6 {+ f# Q# j% v
bMaxPacketSize0 64
5 K2 _5 S+ S l3 ^2 y/ g2 N/ K' r idVendor 0x0781 SanDisk Corp.
" W' s( i; r7 R" L: j9 j0 ` idProduct 0x5588 : y( q. K" x" _2 a2 ~& O4 s# x
bcdDevice 1.00
. V/ T, G2 I, ~" n0 C iManufacturer 2 SanDisk0 q- I" ]. @, H; D2 x |
iProduct 3 USB Extreme Pro
+ I/ N3 r8 ^& g O$ O$ F s iSerial 1 00000000000000000000
+ Q! _* x/ R' v* O" B# D; u, x bNumConfigurations 1
: V' S$ q5 G( e+ v% \ Configuration Descriptor: s( |% c* ^9 X0 D7 [3 c* y
bLength 9+ o5 z$ I) D% I. D e" G- D" U8 X
bDescriptorType 2. i% ?( a4 Q- t4 b+ I0 E T% y
wTotalLength 32( H. s( Z. u/ h7 U% C: @
bNumInterfaces 14 c! h; ?* Y( W9 h4 n
bConfigurationValue 1/ E$ p4 }* ]0 l i& D- [
iConfiguration 0 5 k; c: B- g: V7 Z" j
bmAttributes 0xc0
3 r& g1 ]6 B% m# x4 e5 \ F Self Powered
, }4 J. g/ P1 m% | MaxPower 0mA" x7 F! ~) K5 V( |, \+ p
Interface Descriptor:6 W" u+ `/ b2 _+ n9 C
bLength 9- a8 G' J. |& J9 J1 Z8 x
bDescriptorType 4) k4 l: ?! J d6 {# K: x5 Y2 d
bInterfaceNumber 08 B, C) Q4 x7 O& O5 {3 R! |
bAlternateSetting 0
( L7 i" [$ v* F Q bNumEndpoints 2
% G3 f8 h d6 q; d& F bInterfaceClass 8 Mass Storage
& L+ t+ g+ k8 z* w* x! X bInterfaceSubClass 6 SCSI; d- [$ N* l: o
bInterfaceProtocol 80 Bulk-Only# x3 ~9 o* _# N: o
iInterface 0 3 Y- H( F% r" ]$ |
Endpoint Descriptor:
$ b$ u9 j' g' L bLength 7
3 f4 I1 L+ a' m. N; H: A bDescriptorType 5
T! c) f* h/ ]2 J bEndpointAddress 0x81 EP 1 IN' a7 W3 o" H* _. V# J, x; M$ W
bmAttributes 2
* ]3 Y6 L6 q0 h2 V- p" r4 e Transfer Type Bulk
( ^+ Z& \ ` r( |# p4 w% o3 b' | Synch Type None
0 T/ l' Z! A& _- Q9 i Usage Type Data
" I6 i4 _; ~5 K$ ]9 j( | wMaxPacketSize 0x0200 1x 512 bytes
. M, Q3 J% j+ G$ C bInterval 0
% r' m4 p6 n7 \' k Endpoint Descriptor:
; P7 f: F# t. _3 O0 | bLength 7
, D }7 c, K9 S5 ^9 b1 P: _* z/ |( a2 S! z bDescriptorType 5' B3 X5 L5 _4 X2 a' R0 y! r/ W
bEndpointAddress 0x02 EP 2 OUT) B4 r" D9 P& [: Z/ x
bmAttributes 2
2 B4 i5 D+ j' ] Transfer Type Bulk
7 r5 R5 a6 u$ e! q3 _ e# b Synch Type None
! o+ g1 x! I+ O/ E. e Usage Type Data4 s/ h; G# G2 r+ [: e9 k3 j" ]. C
wMaxPacketSize 0x0200 1x 512 bytes
: g4 K# f% l; `4 D$ x; I bInterval 0
- C/ Y% x& C/ |
! P1 M* J7 g- w& I(nova-libvirt)[root@compute07 /]# cat usb.xml 8 m; z3 f# F' H7 |6 p
<hostdev mode='subsystem' type='usb'>! \% r$ R( e: A2 q4 u3 n
<source startupPolicy='optional'>
# | O' I& W# M<vendor id='0x0781'/>
1 \9 q( y' V" P9 m- U; R- D) [4 [<product id='0x5588'/>
0 }1 i( n1 s) ?8 \( ~- e ^. j) ~, E</source>! | g) ^1 @ X3 g
</hostdev>
1 _, y8 K* d2 p$ E/ ]7 N
9 O' i2 a% ?. l9 f& [3 a) c& X% k8 l+ D9 F3 l* t
(nova-libvirt)[root@compute07 /]# virsh attach-device instance-00000162 usb.xml; l/ F0 ]5 v! o4 j( P1 {
Device attached successfully2 l# ]' {) ^, S2 O* m. A8 A2 g3 \
0 S5 Q d& e% u, \
; {, v7 B8 X( y2 f7 [" }, z& C2 Z# C( p) f
|
|