Hi, I can't seem to figure out how to get my USB printer working in the LXC container. I've seen bits of information scattered around, and tried to recreate from those, but hasn't gotten it working so far.
I have a privileged container (tried before with unprivileged) and Samsung ML-2010P printer.
On the host the printer shows up with
I also tried creating a udev rule, which I don't really understand what it's about:
Rebooting the container this is what I get
Where am I going wrong, any ideas?
I have a privileged container (tried before with unprivileged) and Samsung ML-2010P printer.
On the host the printer shows up with
Code:
~# lsusb -vvv
Bus 003 Device 002: ID 04e8:326c Samsung Electronics Co., Ltd ML-2010P Mono Laser Printer
ls /dev/bus/usb/003/002 -l
crw-rw-r-- 1 root lp 189, 257 Mar 6 18:41 /dev/bus/usb/003/002
~# nano /etc/pve/lxc/104.conf has
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/003/002 dev/bus/usb/003/002 none, bind,optional,create=dir
I also tried creating a udev rule, which I don't really understand what it's about:
Code:
~# nano /etc/udev/rules.d/50-myusb.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="326c", MODE="0666", GROUP="lp"
Rebooting the container this is what I get
Code:
~# lsusb -vvv
Bus 003 Device 002: ID 04e8:326c Samsung Electronics Co., Ltd ML-2010P Mono Laser Printer
Couldn't open device, some information will be missing
~# ls -la /dev/bus/usb/003/002
total 0
drwxr-xr-x 2 root root 40 Mar 6 17:44 .
drwxr-xr-x 3 root root 60 Mar 6 17:44 ..
~# lpinfo -v
file cups-brf:/
network beh
network ipps
network ipp
network socket
network lpd
network http
network https
Where am I going wrong, any ideas?