hotplug usb + udev rules


New Member
Jul 27, 2023
Hello, I have a little problem with the USB hotplug with my LXC to run mainsail, klipper and moonraker.

I have already created a new entry in /dev using the udev rules.
I created a rule /etc/udev/rules.d/99-usb-serial.rules and I put the idVendore and idProduct that I found with the lsusb command:

SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="ender3"


udevadm control --reload udevadm trigger

I can find my file in /dev:

root@proxmox:~# ls /dev/ender3 -al lrwxrwxrwx 1 root root 7 Aug 30 15:24 /dev/ender3 -> ttyUSB0

I followed the information in this Post. It almost works.

so here is what I did:

mkdir /var/lib/lxc/103/devices cd /var/lib/lxc/103/devices mknod-m 660 ender3 c 188 0 chown root:100000 ender3 chmod 777 ender3 (I put the same right as my /dev/ender3 file)

And the super it works, Klipper sees my USB without problem. I unplug and replug my USB to see if it works. It works when /dev/ender3 points to ttyUSB0 but not when it points to ttyUSB2. It happens from time to time that my printer is connected to the ttyUSB2 port.

Thanks for your help.


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!