Hi there,
I want to run Octoprint on my proxmox server. For that I created a LXC container based on alpine OS and installed docker in it (that's what I do for all my other containers as well). I then created a USB passtrough to the lxc container by creating a
I also added this to my LXC config:
Within the LXC container I created this compose file:
When I now start octoprint it can not connect to my 3D printer.
This is the output of
And this the output of the same command in the docker container:
I'm not sure how to solve this. But I think it is maybe a permission issue somewhere between the LXC container and the docker container.
Would be amazing, if someone can give me a hint how to solve this. Thanks!
I want to run Octoprint on my proxmox server. For that I created a LXC container based on alpine OS and installed docker in it (that's what I do for all my other containers as well). I then created a USB passtrough to the lxc container by creating a
/etc/udev/rules.d/99-usb-serial.rules
file with this content:
Code:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740" SYMLINK+="tty3DPRINTER"
KERNEL=="ttyUSB[0-9]*",MODE="0666"
I also added this to my LXC config:
YAML:
lxc.mount.entry: /dev/tty3DPRINTER dev/ttyUSB0 none bind,optional,create=file
Within the LXC container I created this compose file:
YAML:
version: '3.8'
services:
octoprint:
image: octoprint/octoprint
container_name: Octoprint
restart: always
ports:
- 80:80/tcp
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
volumes:
- ~/files/octoprint:/octoprint
When I now start octoprint it can not connect to my 3D printer.
This is the output of
ls -la /dev/tty*
within the LXC container:
Code:
Octoprint:~# ls -ls /dev/tty*
0 crw-rw-rw- 1 nobody nobody 5, 0 Jan 8 12:01 /dev/tty
0 crw------- 1 root root 136, 1 Jan 8 12:45 /dev/tty1
0 crw--w---- 1 root root 136, 2 Jan 8 12:31 /dev/tty2
0 crw-rw---- 1 nobody nobody 166, 0 Jan 8 12:01 /dev/ttyUSB0
And this the output of the same command in the docker container:
Code:
root@05e466ae2506:/octoprint# ls -la /dev/tty*
crw-rw-rw- 1 nobody nogroup 5, 0 Jan 8 12:01 /dev/tty
crw------- 1 root root 136, 1 Jan 8 12:44 /dev/tty1
crw--w---- 1 root root 136, 2 Jan 8 12:31 /dev/tty2
crw-rw---- 1 nobody nogroup 166, 0 Jan 8 12:01 /dev/ttyUSB0
I'm not sure how to solve this. But I think it is maybe a permission issue somewhere between the LXC container and the docker container.
Would be amazing, if someone can give me a hint how to solve this. Thanks!