usbip in 16.04 broken

Bug #1541855 reported by reto.koenig
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
usbip (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

when trying to list some shared usb-device the following error occures (Problem since 14.04)

sudo modprobe vhci-hcd
sudo usbip --list 192.168.xxx
- 192.168.xxx
usbip err: usbip_network.c: 119 (usbip_recv_op_common) recv op_common, -1
usbip err: vhci_attach.c: 202 (query_exported_devices) recv op_common
usbip err: vhci_attach.c: 417 (show_exported_devices) query

Hence, it seems still not possible under ubuntu to attach usb devices via usbip?!

usbip version (0.1.7-3). (apt-get install usbip)

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Xenial Xerus (development branch)
Release: 16.04
Codename: xenial

uname -a
Linux kubuntu 4.4.0-2-generic #16-Ubuntu SMP Thu Jan 28 15:44:21 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
reto.koenig (reto-koenig) wrote :

As explained here:
http://usbip.sourceforge.net/#download

Since Linux-3.17 the package 'usbip' is obsolete and does not work. If used, usbip will not function.

Solution: Finally remove the package usbip, it is absolutely missleading.

Instead use the procedure described below in order to run usbip:
Original post: https://github.com/solarkennedy/wiki.xkyle.com/wiki/USB-over-IP-On-Ubuntu

On both machines (server and client) remove any libusbip* and usbip* packages then install the linux-tools-generic:
  apt-get install linux-tools-generic

On the server, where you want to share the USB-Ports:
  modprobe usbip_host

In order to make this persistent:
  echo 'usbip_host' >> /etc/modules

Then start the usbip-daemon:
  /usr/lib/linux-tools/`uname -r`/usbipd

Then bind the desired USB-Ports in order to share them over the network (in this case 1-1.3)
  /usr/lib/linux-tools/`uname -r`/usbip list -l
  /usr/lib/linux-tools/`uname -r`/usbip bind -b 1-1.3

On the client, where you want to use the USB-Ports:
  modprobe vhci-hcd

In order to make this persistent:
  echo 'vhci-hcd' >> /etc/modules

Then attach the desired USB-Port from the remote machine (in this case 1-1.3):
  /usr/lib/linux-tools/`uname -r`/usbip list -r $remote_host
  /usr/lib/linux-tools/`uname -r`/usbip attach -r $remote_host -b 1-1.3

I consider this bug report as open as long as the package usbip resides in the repositories.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in usbip (Ubuntu):
status: New → Confirmed
Revision history for this message
danielleeson (danielleeson) wrote :

This is a very useful tool especially in a virtual machine environment, the server works as reto.koenig (reto-koenig) had pointed out, but clients; especially windows clients are not seeing the shared devices

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.