USB/IP: sharing USB device disappearing at client side

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
On KVM platform, I try to share an USB Mass Storage device from On host SUSE11SP2/usbip 1.1.1
(linux-3.11.1-stable)server to another host SUSE11SP2/usbip 1.1.1 client, creation of tunnel is successful: the drive
shows up in lsusb on client. When I attach the usb device to a VM on the client side, the following error
occurs on the client host side, with no new messages by usbipd on server side:

Cannot enable port 1. Maybe the USB cable is bad?
[repeat ...]
unable to enumerate USB device on port 1

...and the drive disappears from lsusb on client side. 

Here is key log:
The Server:
linux-xAuOMu:# usbip list -l                               
Local USB devices
=================
 - busid 1-1 (12d1:0003)
   Huawei Technologies Co., Ltd. : unknown product (12d1:0003)
         1-1:1.0 -> usbhid
         1-1:1.1 -> usbhid

 - busid 6-1 (0951:1642)
   Kingston Technology : unknown product (0951:1642)
         6-1:1.0 -> usbip-host

 - busid 6-2 (18a5:0302)
   Verbatim, Ltd : unknown product (18a5:0302)
         6-2:1.0 -> usb-storage

 - busid 7-1 (0951:1642)
   Kingston Technology : unknown product (0951:1642)
         7-1:1.0 -> usb-storage

The Client:
linux-166:# usbip list -l
Local USB devices
=================
 - busid 1-1 (12d1:0003)
   Huawei Technologies Co., Ltd. : unknown product (12d1:0003)
         1-1:1.0 -> usbhid
         1-1:1.1 -> usbhid

 - busid 7-1 (0951:1642)
   Kingston Technology : unknown product (0951:1642)
         7-1:1.0 -> usb-storage


linux-166:# virsh attach-device suse usb.xml 
Device attached successfully
linux-166:# cat usb.xml
<hostdev mode='subsystem' type='usb' model='ehci'>
      <source>
        <address bus='7' device='4'/>
      </source>
        <address type='usb' bus='1' port='1' />
</hostdev>

Dmesg log :
[13603.742271] vhci_hcd vhci_hcd: USB/IP Virtual Host Controller
[13603.742278] vhci_hcd vhci_hcd: new USB bus registered, assigned bus number 7
[13603.743117] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002
[13603.743122] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[13603.743126] usb usb7: Product: USB/IP Virtual Host Controller
[13603.743129] usb usb7: Manufacturer: Linux 3.11.1-0.27-default vhci_hcd
[13603.743132] usb usb7: SerialNumber: vhci_hcd
[13603.743407] hub 7-0:1.0: USB hub found
[13603.743418] hub 7-0:1.0: 8 ports detected
[13603.743699] vhci_hcd: USB/IP 'Virtual' Host Controller (VHCI) Driver v1.0.0
[13603.842177] vhci_hcd: changed 0
[13712.269544] vhci_hcd vhci_hcd: rhport(0) sockfd(3) devid(393218) speed(3)
[13712.269960] vhci_hcd: changed 1
[13712.377570] vhci_hcd: changed 0
[13712.485620] usb 7-1: new high-speed USB device number 2 using vhci_hcd
[13712.709569] usb 7-1: new high-speed USB device number 3 using vhci_hcd
[13712.933515] usb 7-1: new high-speed USB device number 4 using vhci_hcd
[13712.933521] usb 7-1: SetAddress Request (4) to port 0
[13712.954506] usb 7-1: New USB device found, idVendor=0951, idProduct=1642
[13712.954511] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[13712.954514] usb 7-1: Product: DT 101 G2
[13712.954517] usb 7-1: Manufacturer: KINGSTON
[13712.954520] usb 7-1: SerialNumber: 001CC05FE92EAC70B9246527
[13712.955497] usb-storage 7-1:1.0: USB Mass Storage device detected
[13712.955919] scsi8 : usb-storage 7-1:1.0
[13713.964778] scsi 8:0:0:0: Direct-Access     KINGSTON DT 101 G2        1.00 PQ: 0 ANSI: 4
[13713.965125] sd 8:0:0:0: Attached scsi generic sg1 type 0
[13713.967811] sd 8:0:0:0: [sdb] 15400960 512-byte logical blocks: (7.88 GB/7.34 GiB)
[13713.970983] sd 8:0:0:0: [sdb] Write Protect is off
[13713.970988] sd 8:0:0:0: [sdb] Mode Sense: 2f 00 00 00
[13713.973986] sd 8:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[13713.986227]  sdb:
[13713.997454] sd 8:0:0:0: [sdb] Attached SCSI removable disk
... ... 
[13547.998718] vhci_hcd: changed 1
[13548.002628] vhci_hcd: changed 0
[13541.896080] hub 7-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[13542.767879] hub 7-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[13543.639684] hub 7-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[13544.511484] hub 7-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[13544.511492] hub 7-0:1.0: unable to enumerate USB device on port 1
[13544.511508] vhci_hcd: changed 1
[13544.515415] vhci_hcd: changed 0
[13545.383295] hub 7-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[13546.255099] hub 7-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[13547.126898] hub 7-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[13547.998693] hub 7-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[13547.998702] hub 7-0:1.0: unable to enumerate USB device on port 1

The USB device vanishes from the client side:
linux-166:# usbip list -l
Local USB devices
=================
 - busid 1-1 (12d1:0003)
   Huawei Technologies Co., Ltd. : unknown product (12d1:0003)
         1-1:1.0 -> usbhid
         1-1:1.1 -> usbhid

And I try the linux-3.12-rc2 on both server and client, but the problem remain.
Anyone have any ideas? Thanks in advance!

Best Regards,
-Gonglei
��.n��������+%������w��{.n�����{���)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux