virtualhere client over docker

hello
i am quite struggling using vhclient over docker
tried on arm64v8 and on mac os

failing with this error

VirtualHere Client:

VirtualHere Client: VirtualHere Client 4.6.7 starting (Compiled: Feb 23 2019 11:05:42)

VirtualHere Client: Client OS is Linux 4.19.76-linuxkit x86_64

VirtualHere Client: Using config at /root/.vhui

modprobe: can't change directory to '/lib/modules': No such file or directory

init_module error inserting 'usbip-core.ko': -1 Invalid module format. Your kernel probably was not compiled with dynamic module loading functionality

VirtualHere Client: init_module error inserting 'usbip-core.ko': -1 No error information. Your kernel probably was not compiled with dynamic module loading functionality

VirtualHere Client:

any idea?

#3

Hi~ I have the same problem
May i ask how to fix this bug?
And besides, when i `docker build` the dockerfile virtualhere given,it also can't complete
here's the output:

fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar…
(1/18) Installing ca-certificates (20191127-r2)
(2/18) Installing nghttp2-libs (1.39.2-r0)
(3/18) Installing libssh2 (1.9.0-r1)
(4/18) Installing libcurl (7.61.1-r3)
(5/18) Installing curl (7.61.1-r3)
(6/18) Installing binutils (2.30-r6)
(7/18) Installing gmp (6.1.2-r1)
(8/18) Installing isl (0.18-r0)
(9/18) Installing libgomp (6.4.0-r9)
(10/18) Installing libatomic (6.4.0-r9)
(11/18) Installing pkgconf (1.5.3-r0)
(12/18) Installing libgcc (6.4.0-r9)
(13/18) Installing mpfr3 (3.1.5-r1)
(14/18) Installing mpc1 (1.0.3-r1)
(15/18) Installing libstdc++ (6.4.0-r9)
(16/18) Installing gcc (6.4.0-r9)
(17/18) Installing make (4.2.1-r2)
(18/18) Installing musl-dev (1.1.19-r11)
Executing busybox-1.28.4-r3.trigger
Executing ca-certificates-20191127-r2.trigger
OK: 101 MiB in 31 packages
curl: (22) The requested URL returned error: 404 Not Found
tar: invalid magic
tar: short read

#4

I dont know sorry, im not that familiar with docker. Someone got it working a while ago and i posted the code to my repository ... but ideally virtualhere client needs to run in a real-vm not dockerized because docker is too restrictive with kernel modules

#5

That's fine XD
May i ask your repo address?
I compile the docker but it still can't work orz

#7

Hi Michael~
I solve my problem and it seems due to the drriver mod setting
And your dockerfile seems not working now,cuz linux kernel 4.19.0 doesn't exist anymore on the https://www.kernel.org, and that's why it throw the 'curl 404'
So i have made a pr to your repo,and it can be compiled on my own server
Hope that can solve the problem~
And thanks for your help~
Have a nice day!

#8

Great thanks a lot for that, ive merged now !

#9

Glad to help you fix that XD

#10

Hi Michael~
I have made a tiny patch to the Dockerfile and pr again orz
Check it if you have time ~ :)

#11

Thanks again, merged now

#12

Would this be. workaround to the lack of kext support in MacOS 10.16?

I assume if this does work, any program accessing the virtual usb would need to be running in docker as well? Would there be a way to expose this usb to a MacOS App?

#13

No docker is one way only, inside the container the host os cannot see devices