|
|
楼主 |
发表于 2022-9-29 11:52:34
|
显示全部楼层
(nova-libvirt)[root@compute07 /]# lsusb -v
9 ~& [3 h- M& f7 Y! s3 r
: x- w* S; ]6 z# a0 S; z4 qBus 002 Device 003: ID 0781:5588 SanDisk Corp. * T' a# \8 Y+ e
Device Descriptor:
3 L- F- E! p( O. d* r' Z9 v bLength 18
8 Z/ w0 b5 h; l" y( [ bDescriptorType 1
G9 H" [; }% M4 e# J/ p bcdUSB 2.10
+ @3 Z! m4 \6 E% ]) F bDeviceClass 0 (Defined at Interface level)
0 d: u/ |# } r' T& z) i7 e* I bDeviceSubClass 0
@$ c5 z9 X! I bDeviceProtocol 0 * H+ Z& Z3 E- Z7 a g% N/ O+ q' G
bMaxPacketSize0 64
0 u1 h5 b, K# E$ Z6 m9 o7 A& c( X idVendor 0x0781 SanDisk Corp.
1 x6 I1 C. A, `* K$ T- ^4 ?( ? idProduct 0x5588 ; U- x5 B9 g; u& L- ~* [
bcdDevice 1.00
4 H( y. N1 {; d9 g! O iManufacturer 2 SanDisk- g0 b! }9 A7 z ?. `
iProduct 3 USB Extreme Pro
: ~( [. i& g# T iSerial 1 00000000000000000000
+ c' m% z6 z* h5 W bNumConfigurations 1
' r/ [ ^, E( w. N7 G Configuration Descriptor:5 Y) [; e' M U- Q3 u3 J$ z' ?& [9 k0 n
bLength 9) \+ ~% G4 R, f1 x/ i/ b0 ?
bDescriptorType 2' \. D( H3 V9 h0 R) C; E9 w; u W
wTotalLength 32
5 y0 R! Q1 u. o$ B5 X bNumInterfaces 17 \5 B4 }9 x9 E
bConfigurationValue 1+ g2 D$ f- ^4 G+ c: u+ b
iConfiguration 0
) o* x4 A2 X* U7 f1 a; M bmAttributes 0xc0
I1 F& b9 A! P1 F; f7 `0 p; n) r Self Powered
' t; R: R2 W$ M! c F MaxPower 0mA
* \$ X' H9 G# p3 O3 s; E/ u Interface Descriptor:
2 ^% E6 S- R1 {. D m; m bLength 93 p/ d! L3 D$ \) }
bDescriptorType 46 g$ m* z- l8 y/ e+ p& J
bInterfaceNumber 0
6 y: a6 M) E5 x2 w; `4 p9 |; L1 n% p! ` bAlternateSetting 0
+ {0 \7 N4 l% h bNumEndpoints 2
9 e3 O) {2 C8 D9 C, O; z bInterfaceClass 8 Mass Storage
2 J+ J! ]/ }# p8 v0 I/ \. Y4 a bInterfaceSubClass 6 SCSI
5 \ V8 \5 j0 p1 ]& p" B. j6 G- I$ u bInterfaceProtocol 80 Bulk-Only
. E3 |, Z7 _2 e; R7 U1 Z! a iInterface 0
* |9 _8 P! }; G6 |. r Endpoint Descriptor:
4 Z1 `( O& @0 j& P; m* u bLength 7% s) m6 }6 u, C' F/ A, r1 t5 p: k
bDescriptorType 5
9 p5 X# Y6 K, ?& D* H bEndpointAddress 0x81 EP 1 IN7 O" H$ s4 o$ k& {! c7 `/ C1 k
bmAttributes 28 y( e6 _7 _" b+ p8 o
Transfer Type Bulk' Q) R8 \" D6 ?0 X7 |; S" o; o
Synch Type None1 ]$ `/ B+ a! O- E% a% C0 v- `
Usage Type Data9 ]$ k; E, L% D
wMaxPacketSize 0x0200 1x 512 bytes
8 _+ t( g. k/ W$ u' N bInterval 0
+ c: u+ w- q( [ Endpoint Descriptor:
+ u O" k6 r& x: S8 a+ a bLength 7& `& ^: \4 @- Q d7 s U
bDescriptorType 5
1 i$ I4 K& ^) C: r7 U8 J# y3 G& U bEndpointAddress 0x02 EP 2 OUT3 x1 K2 a, E. z+ x3 T. Q! @3 j
bmAttributes 2
% m& B: O( a, Z, I* e. j% j Transfer Type Bulk+ _8 {; ?# \ ?$ {5 Y& M
Synch Type None' F/ a2 A! E# g2 e8 M
Usage Type Data
; ~3 Z# ]: Q+ j6 A" u wMaxPacketSize 0x0200 1x 512 bytes
1 p1 K! \0 L) z& [4 Q bInterval 0) D. E0 V& r3 a: B# ~; O9 A& y
* v3 x4 A1 [! t8 Z(nova-libvirt)[root@compute07 /]# cat usb.xml
1 e+ L, O8 {( r0 }! {<hostdev mode='subsystem' type='usb'>1 ~, L# a" o6 D7 t; [9 O
<source startupPolicy='optional'>$ U; K2 R. a+ F) E0 d0 }
<vendor id='0x0781'/>% U+ [ C; D, ]+ t7 D
<product id='0x5588'/>' r; i9 l- v$ ^+ z. s& I/ u7 }' K
</source>8 E( W" @9 [6 h4 w
</hostdev>
6 A9 a% c0 m3 M Y8 Y0 i" P( v# _6 y! B J1 z
- w: r$ a9 ?! f O) v7 ?! W9 h(nova-libvirt)[root@compute07 /]# virsh attach-device instance-00000162 usb.xml- U9 U$ @- o) ~
Device attached successfully5 l* _! E% }8 _8 ^7 z1 a
5 l8 J. E6 p! J5 b' R5 a( J- p& h3 a2 N" E: j- D
' S7 m+ Y K4 `! m |
|