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

楼主 |
发表于 2022-9-29 11:52:34
|
显示全部楼层
(nova-libvirt)[root@compute07 /]# lsusb -v
5 ]* z$ K/ k- _# K
" B9 a5 ?- E8 N3 S- N: ABus 002 Device 003: ID 0781:5588 SanDisk Corp. 8 `" T% R& s) D# o4 i
Device Descriptor:" s( A. ]& w9 P# Y; C: ~
bLength 184 d; O: U+ l3 y* u5 S
bDescriptorType 1. k K' Z1 R; w4 p
bcdUSB 2.10
8 P& p" G( J( m$ k8 o% B% ?' p1 N& D bDeviceClass 0 (Defined at Interface level); b6 a+ S( o: g$ l
bDeviceSubClass 0 . b; C/ }! ~- G3 z0 j
bDeviceProtocol 0 2 S. _. { q! ?; g1 Q: f* g
bMaxPacketSize0 64
0 I) y( ^$ I. v; L& A; G idVendor 0x0781 SanDisk Corp.- M# S, p+ O4 _7 ]* e
idProduct 0x5588 ; u2 s8 S% p9 y7 L# ^: A0 P' ^! ]
bcdDevice 1.006 b6 y: v+ @4 m [
iManufacturer 2 SanDisk# k1 `/ f Y( M+ U
iProduct 3 USB Extreme Pro
, d/ E; B* D& R4 {9 j4 `* O iSerial 1 00000000000000000000
5 U2 q+ G- [+ U& R* Q bNumConfigurations 1
- l% D$ g- v; t3 l8 H$ ? Configuration Descriptor:6 U4 r4 q% V2 }
bLength 9 G' T1 X9 Q1 x+ W3 f3 ~/ d/ ^
bDescriptorType 22 e' O! R& T! ?; z
wTotalLength 32
+ y$ R& _6 X* `7 m% f. J bNumInterfaces 1
7 M. X+ ~ H4 Y% T! f1 Z' [9 Y+ k7 n3 r bConfigurationValue 17 ^* {+ N& @, b$ \/ B
iConfiguration 0 8 Q2 s8 @# L5 S, I$ h i2 {9 j( Q
bmAttributes 0xc0# J3 G0 a, y. ]. ?3 l
Self Powered
& U% p+ v& ]; ~2 t: Z1 o9 H MaxPower 0mA
4 b, e, y+ S9 a Interface Descriptor:0 m! u6 h4 T! z: ~
bLength 9
5 P: C* j3 t5 h, @ bDescriptorType 47 s$ h8 w+ h- M3 A8 U; ?5 Y
bInterfaceNumber 0
$ h6 y5 e9 y# m. i8 Y! b" f bAlternateSetting 0" D! @* w" @4 i/ A t' W
bNumEndpoints 23 g1 ^* A$ Y! [' r- d
bInterfaceClass 8 Mass Storage& u/ \: e4 ?. I+ |- G( ^; z- C# t
bInterfaceSubClass 6 SCSI
% D/ ?/ b( q y0 w, k9 d) N4 M bInterfaceProtocol 80 Bulk-Only
5 i+ x+ W% P5 k; \* g3 [ iInterface 0
+ C! B/ L E0 n: V6 j- z2 J2 \+ k Endpoint Descriptor:6 M" _7 R4 Q8 ?) r
bLength 7
4 E, N, p5 e( V( l$ F( k bDescriptorType 55 P- ^2 ]) y' u
bEndpointAddress 0x81 EP 1 IN) g- s, H2 V0 |) w
bmAttributes 2
; `7 H5 S1 I- _, H Transfer Type Bulk
, H, u) v8 l+ k& o& \ Synch Type None
' N9 m8 J0 N9 z, M: Y2 ] Usage Type Data$ |0 K1 ^) u) K( Q! c8 t1 A2 H" k
wMaxPacketSize 0x0200 1x 512 bytes
6 M4 d! K) c: z. }/ f: A bInterval 03 N7 p b5 Z0 q/ t3 o
Endpoint Descriptor:, T5 B* e4 R- w1 d
bLength 71 Y8 B+ W z: W3 m1 ]" H! p
bDescriptorType 52 P* l2 t$ J. Z4 [4 H Q; P
bEndpointAddress 0x02 EP 2 OUT
5 T# x7 o$ M; j& o6 ~ bmAttributes 2
) }( }0 \% H, k, A Transfer Type Bulk
1 i- {& w% A' k9 s Synch Type None
: Q' S( W/ X# |* ] Usage Type Data
8 K4 x! G6 Q0 y2 h) ? wMaxPacketSize 0x0200 1x 512 bytes
6 ]& l% \0 j) t; e- o3 M+ V" _. ] bInterval 0
' M0 q' h7 S F+ F$ ^5 K& ?
7 l+ I( s0 ]1 Z# T% p) K6 i$ [(nova-libvirt)[root@compute07 /]# cat usb.xml 4 S" ?- j- s) K+ w$ z" y4 A) ~0 j
<hostdev mode='subsystem' type='usb'>
) p l8 O: P4 c, v R1 R<source startupPolicy='optional'>' l# V- Y* ~/ O) z
<vendor id='0x0781'/>. v) l/ [1 C# b6 {
<product id='0x5588'/>
$ N$ a! t' |' x k/ q0 I</source>
2 N' P7 Q) P! M; t/ ?</hostdev>0 B% R# ^- G3 W5 s4 H. d3 C
1 i+ d) N% M. i9 ~0 u
L" K" L% @: G; D. K7 H4 f(nova-libvirt)[root@compute07 /]# virsh attach-device instance-00000162 usb.xml
& e5 ~6 a# D. L$ I! T# R3 \7 }Device attached successfully
/ ~. {* M" k; E' T- `# W
1 z: p5 g1 [$ ?. E: \9 }" c' Y
4 i& s2 E* T/ g" ?$ r, D
! ]: @, J$ M. f0 [' i/ T |
|