jk2587 Posted January 23, 2019 Share Posted January 23, 2019 Hi @limetech I'd like to be able to use the usbip client inside a docker container, and for that I believe the vhci-hcd kernel module needs to exist on the host. Here is the message I received when trying to run modprobe vhci-hcd in a container (homeassistant): modprobe vhci-hcd modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.18.20-unRAID/modules.dep.bin' modprobe: FATAL: Module vhci-hcd not found in directory /lib/modules/4.18.20-unRAID And when trying to run it on the host: modprobe vhci-hcd modprobe: FATAL: Module vhci-hcd not found in directory /lib/modules/4.18.20-unRAID Thanks for your help! Joel Quote Link to comment
LesterCovax Posted February 26, 2019 Share Posted February 26, 2019 I'm running into the same issue, and trying to find workarounds without having to build a custom kernel. It's supposedly supposed to be built into the linux kernel by now, with binaries provided for different distros. Trying to use usbip/VirtualHere to share a USB device on another machine with a docker container. Here are some VirtualHere (basic) instructions to obtain vhci_hcd.ko and usbip-common.ko: https://www.virtualhere.com/client_configuration_faq Quote Link to comment
batesman73 Posted November 22, 2019 Share Posted November 22, 2019 Hi, as I bought the unraid license a few days ago I would also love to have this posibillity. I can think of several ways to use it. Connect a drive for ripping audio/video from a local thin client or Z-wave/Zigbee sticks for home automation. Did you find a solution for this ? Quote Link to comment
limetech Posted November 22, 2019 Share Posted November 22, 2019 This is kinda like iScsi except for USB devices ... we'll look at this. Quote Link to comment
batesman73 Posted November 23, 2019 Share Posted November 23, 2019 I'll apreciate that. I beleive there will be several usecases for this as most of the "home"servers will be located outside the living spaces. Quote Link to comment
gerritbolhuis123 Posted October 19, 2020 Share Posted October 19, 2020 Are there any updates on this? Quote Link to comment
miki1986 Posted October 21, 2020 Share Posted October 21, 2020 Looking at this thread for a year. Please add this module. Quote Link to comment
cyruz Posted November 19, 2020 Share Posted November 19, 2020 (edited) @limetech I tried to use virtualhere and I'm facing the same issue regarding the missing module. My use case is sharing the Mediacenter cdrom with the Logitech Media Server docker, so that I can play audio cds on the Mediacenter itself. Edited November 19, 2020 by cyruz Quote Link to comment
itimpi Posted November 19, 2020 Share Posted November 19, 2020 I wonder if the new feature in 6.9 beta 35 to allow extra modules to be loaded will allow users to add this module? Quote Link to comment
cyruz Posted November 19, 2020 Share Posted November 19, 2020 (edited) 4 hours ago, itimpi said: I wonder if the new feature in 6.9 beta 35 to allow extra modules to be loaded will allow users to add this module? Actually I just compiled the required modules, so eventually there will be somebody doing this job and sharing them with the community. I'm on the stable though... Looks like the modules are stored in the bzmodules file in the flash that is also hashed. If somebody can confirm that modifying the bzmodules file and re-hashing it will work, I can give it a try. EDIT: I gave it a try, it worked. Edited November 20, 2020 by cyruz Quote Link to comment
limetech Posted December 4, 2020 Share Posted December 4, 2020 We added this to next 6.9 release. 4 Quote Link to comment
SimonF Posted December 23, 2020 Share Posted December 23, 2020 (edited) I have started to create a plugin for the binaries usbip + usbipd and associated libraries. Plugin is available on CA I have been able to connect to a usbip host running on a pi-zerow Currently only tested on 6.9.0-rc2 client function. I cannot test the server side as usbip-host kernel module is not in the build would need to be added. root@Tower:/mnt/disks/CBM_Flash_Disk# usbip list -r 192.168.1.11 Exportable USB devices ====================== - 192.168.1.11 1-1: Chipsbank Microelectronics Co., Ltd : CBM2080 / CBM2090 Flash drive controller (0204:6025) : /sys/devices/platform/soc/20980000.usb/usb1/1-1 : (Defined at Interface level) (00/00/00) : 0 - Mass Storage / SCSI / Bulk-Only (08/06/50) root@Tower:/mnt/disks/CBM_Flash_Disk# lsusb | grep CBM Bus 005 Device 002: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 / CBM2090 Flash drive controller root@Tower:/mnt/disks/CBM_Flash_Disk# usbip port Imported USB devices ==================== Port 00: <Port in Use> at High Speed(480Mbps) Chipsbank Microelectronics Co., Ltd : CBM2080 / CBM2090 Flash drive controller (0204:6025) 5-1 -> usbip://192.168.1.11:3240/1-1 -> remote bus/dev 001/002 root@Tower:/mnt/disks/CBM_Flash_Disk# Edited December 28, 2020 by SimonF 1 Quote Link to comment
SimonF Posted January 16, 2021 Share Posted January 16, 2021 @limetech Would it be possible to include usbip_host aswell as vhci_hcd and usbip_core. I have a compiled version of the usbip_host module to use for testing and it works fine. This is only required if you want to mount USB devices from unraid to another device(Top part in gui). Is anyone using USBIP as I am starting to create a plugin to provide an interface. Based on unassigned devices. Are there any specific requirements people are looking for? Already I have disabled the unraid flash from having an option to mount from the gui, and plan to disable USB devices if already in use i.e. in UD etc. This is how it is looking so far. 3 Quote Link to comment
SimonF Posted January 29, 2021 Share Posted January 29, 2021 I have created two plugings for USBIP. 1) First one will install just usbip and usbipd. 2) Provides a GUI for USBIP. Both are in CA just search for USBIP. The GUI needs to have both installed as the commands are not included with the GUI.. You will find that some of the buttons will be disabled if the necessary modules are not loaded or commands are not found. At present it is still classed as Beta. Please feel free to try it out and leave feedback, additional feature requests on this support link. The usbip-host kernel module is not included within 6.9.0-rc2 but I can supply a version if required but it is Kernel specific, and will only work on 6.9.0-rc2. PM me about the module if you want to try it out. USBIPD can be started whilst the array is not working, but I have made the events shutdown usbipd when the system is stopped. Quote Link to comment
ich777 Posted January 29, 2021 Share Posted January 29, 2021 1 hour ago, SimonF said: The usbip-host kernel module is not included within 6.9.0-rc2 but I can supply a version if required but it is Kernel specific, and will only work on 6.9.0-rc2. PM me about the module if you want to try it out. Should I create a Plugin with the usbip-host executable and also the module all in one Plugin and update it if a new version of Unraid is released? I think this would be more convenient... Quote Link to comment
giganode Posted January 29, 2021 Share Posted January 29, 2021 1 hour ago, SimonF said: I have created two plugings for USBIP. 1) First one will install just usbip and usbipd. 2) Provides a GUI for USBIP. Both are in CA just search for USBIP. The GUI needs to have both installed as the commands are not included with the GUI.. You will find that some of the buttons will be disabled if the necessary modules are not loaded or commands are not found. At present it is still classed as Beta. Please feel free to try it out and leave feedback, additional feature requests on this support link. The usbip-host kernel module is not included within 6.9.0-rc2 but I can supply a version if required but it is Kernel specific, and will only work on 6.9.0-rc2. PM me about the module if you want to try it out. USBIPD can be started whilst the array is not working, but I have made the events shutdown usbipd when the system is stopped. 1 minute ago, ich777 said: Should I create a Plugin with the usbip-host executable and also the module all in one Plugin and update it if a new version of Unraid is released? I think this would be more convenient... Just posted on your other thread... this module should have been integrated into your plugin..... Quote Link to comment
SimonF Posted January 29, 2021 Share Posted January 29, 2021 (edited) 2 hours ago, giganode said: Just posted on your other thread... this module should have been integrated into your plugin..... I have asked for it to be included in the stock as the other two modules for USBIP are already included. Which other thread? The module is only required if you want to use in host module, necessary modules are already included in rc2 client mode. Edited January 29, 2021 by SimonF Quote Link to comment
SimonF Posted January 30, 2021 Share Posted January 30, 2021 Will be updating soon to include all modules and commands as part of the gui plugin. And will remove the old just commands one. Thanks to @ich777 for the revised package including commands and modules. Quote Link to comment
SimonF Posted January 31, 2021 Share Posted January 31, 2021 Version 31.01.21 is now available on CA. If you have the existing commands plugin you dont neeed it anymore, but will co-exist. usbip-host module is now included through package provided by ich777. 2 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.