Hello,
I am trying to pass through my UPS to an LXC container in promox 7.3 and I am stuck with this problem:
After one reboot, the ups shows up on Bus 001 Device 002:
root@SH-proxmox:~# lsusb
Bus 003 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0a5c:21b4 Broadcom Corp. BCM2070 Bluetooth 2.1 + EDR
Bus 001 Device 002: ID 0001:0000 Fry's Electronics MEC0003
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
After another reboot, the ups may show up on Bus 002 Device 002:
Bus 002 Device 002: ID 0001:0000 Fry's Electronics MEC0003
So, if I pass the device through in the container conf file "115.conf" like this:
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/001/002 dev/bus/usb/001/002 none bind,optional,create=file
Then it works fine for the first reboot, but after the second reboot, the device is not passed through anymore.
I already tried an udev rule for consistent device naming through reboots:
SUBSYSTEM=="usb", ATTR{product}=="MEC0003", ATTR{manufacturer}=="MEC", SYMLINK+="usbGCups"
And I can pass through the created device name /dev/usbGCups correctly to the LXC container.
But NUT (network ups tools) does not recognize /dev/usbGCups: "nut-scanner -U" does not find the usb when passed through as /dev/usbGCups.
Even giving port=/dev/usbGCups in the ups.conf of NUT does not find it.
Anyone an idea?
What else can I try?
I am trying to pass through my UPS to an LXC container in promox 7.3 and I am stuck with this problem:
After one reboot, the ups shows up on Bus 001 Device 002:
root@SH-proxmox:~# lsusb
Bus 003 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0a5c:21b4 Broadcom Corp. BCM2070 Bluetooth 2.1 + EDR
Bus 001 Device 002: ID 0001:0000 Fry's Electronics MEC0003
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
After another reboot, the ups may show up on Bus 002 Device 002:
Bus 002 Device 002: ID 0001:0000 Fry's Electronics MEC0003
So, if I pass the device through in the container conf file "115.conf" like this:
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/001/002 dev/bus/usb/001/002 none bind,optional,create=file
Then it works fine for the first reboot, but after the second reboot, the device is not passed through anymore.
I already tried an udev rule for consistent device naming through reboots:
SUBSYSTEM=="usb", ATTR{product}=="MEC0003", ATTR{manufacturer}=="MEC", SYMLINK+="usbGCups"
And I can pass through the created device name /dev/usbGCups correctly to the LXC container.
But NUT (network ups tools) does not recognize /dev/usbGCups: "nut-scanner -U" does not find the usb when passed through as /dev/usbGCups.
Even giving port=/dev/usbGCups in the ups.conf of NUT does not find it.
Anyone an idea?
What else can I try?
Last edited: