Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROXMOX/DOCKER | FATAL: rtlsdr: error querying device #0: No such file or directory #104

Open
einzelfabrik opened this issue Jun 19, 2024 · 1 comment

Comments

@einzelfabrik
Copy link

einzelfabrik commented Jun 19, 2024

Hello everyone,
I have a special constellation - and am failing to pass the hardware through to the container.
About the setup: I have a Proxmox Host VE 8.2.2 - the RTLSDR stick is connected to it.

root@proxmox:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 004: ID 0bda:2832 Realtek Semiconductor Corp. RTL2832U DVB-T

I have an LXC container running with Docker + Portainer. I have adapted the config of the LXC container:

lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/001/004 dev/bus/usb/001/004 none bind,optional,create=file

So the USB port(001-004) is available in the container - but how can I then pass it on to the ultrafeeder Docker container?
The corresponding part in my compose file:

        "Devices": [
            {
                "CgroupPermissions": "rwm",
                "PathInContainer": "/dev/bus/usb/001/004",
                "PathOnHost": "/dev/bus/usb/001/004"
            }
        ],

All attempts ended in FATAL: rtlsdr: error querying device #0: No such file or directory - can you give me tips?

@kx1t
Copy link
Member

kx1t commented Jun 29, 2024

We generally don't provide support for ProxMox or container-in-container configurations (meaning: it may work but you're on your own); however:

  • if you have made your USB port available to the ProxMox environment, then you can either use the devices: directive, or expose the cgroup directly to the Ultrafeeder container as shown here lines 11-12 and 109
  • we have heard about issues with people having USB passthrough issues on ProxMox - best would be for you to ask on our Discord server where there are other ProxMox users who may be able to assist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants