usbip-ssh-docker icon indicating copy to clipboard operation
usbip-ssh-docker copied to clipboard

Depmod

Open DirtyJerz opened this issue 7 years ago • 7 comments

depmod: ERROR: could not open directory /lib/modules/4.9.36-moby: No such file or directory

I understand that you said "when ran properly with docker-compose" but do you have an example yaml?

DirtyJerz avatar Aug 01 '17 20:08 DirtyJerz

Hi @DirtyJerz , I still haven't finished this. The python file works well by binding all usb ports every 5 second, i still have to wrap in in a docker container. not hard. Here an example of usb totally shared to docker https://github.com/fermiumlabs/data-chan-nodejs/blob/master/.drone.yml

Then i still need to setup a second container with auto-ssh. After the two works, a docker-compose file (possibly with automatic restart) is easy to make. The two container should work together well if the ports are shared correctly between them.

The dockerfile is still untested.

If you're interested in this we could get it to work together. I'm confident using this double-container solution with docker-compose is an extremely solid solution.

ddavidebor avatar Aug 01 '17 20:08 ddavidebor

I'd be willing to give it a go when I have some free time but I really just need a way to get usbip working with my instruments. (Agilent B2902, Photoresearch 730, Agilent Usb-GPIB controller+E1476A, USB Camera, and Moog Anamatics motors). Trying to containerize my test and measurement software.

DirtyJerz avatar Aug 02 '17 13:08 DirtyJerz

Also, why do you get rid of the usbip packages and go for the kernel tools version?

DirtyJerz avatar Aug 02 '17 13:08 DirtyJerz

the usbip package in ubuntu is old, the one in the kernel tools is updated

ddavidebor avatar Aug 02 '17 13:08 ddavidebor

I don't think there is still much left to do. We need to fix a bit of things in the autossh:

  • fixing environmental variables
  • mounting the key container
  • getting autossh to not fork a process and quit

ddavidebor avatar Aug 02 '17 13:08 ddavidebor

Can I get some explanation on how to get it working?

RonYaari avatar Nov 07 '18 13:11 RonYaari

To be honest i abandoned this. There are a couple commercially available solutions to share USB on a server and they're cheap and work quite well.

ddavidebor avatar Nov 11 '18 22:11 ddavidebor