Linux Server can not use devices

Hey there,

i'm using a netPi. On this device runs a yocto linux with an docker host. This starts a container witch an raspbian stretch 4.9. The virtual here server is running under this raspbian container. When i try to share USB-Serial-Converters the server shoes the folloeing error message in the log:

Mon Jul 2 15:06:37 2018 LOG_ERR Error 1 opening device (/home/pi/bus_usb_001_015) file descriptor, Operation not permitted

The server runs under root. Any ideas why this could happen?

daice

#2

Because the container is not providing full access to the usb subsystem. Run the virtualhere server on the root host.

#3

Thats not possible, because i have no access to the host system. Is there another way?

#4

I don't know your setup but try running the server on a real machine

#5

I solved the problem by linking the device /dev/bus into the docker container. Now it works.
Now i want to use your CloudHUB Image for RaspberryPi3 on this Docker host. Is there a way to build a docker container from yout image an publish this container on dockerhub? I tried an image witch debian stretch + vhusbdarmpi3. It works quiet well but your cloudhub image is faster then the debian image.

daice

#6

What is the benefit of using docker in this setup?

#7

The device I want to use is a docker host only. I can not change anything on the original os. The only thing I can do is load docker containers. It is an industrial device thats why I would like to use it for virtual here.

#8

Ok, the cloudhub won't work with docker because it contains an entire operating system together with scripts and a special virtualhere server binary. They are tightly integrated so it's not possible to split and put in a docker image.