-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
please advice attaching bluetooth to container? #5065
Comments
Forgot to mention, I killed the bluetoothd from host (Lenovo X1 Carbon) before starting the containers. |
Could you start out with --privileged and see if it works, if yes, then drop back to non-privileged and try with Basically try to figure out if this is a security thing that is blocking the access. If I had to guess, I would guess this is something in the network stack NET_ADMIN or worse SYS_ADMIN capabilities. |
I did:
but no luck. If I run it with --net=host it sees the device. Perhaps this is over complicating it, and I just need to allow it the --privileged and --net=host and be done with it. TBH, I don't even know how the bluez should hook up to the given usb device from container. Thanks. |
Well can you run with --net=host and locked down? |
@ikke-t This is not an upstream issue, If you are still working on this, please send email to podman.io mailing list or get us on IRC on #podman on freenode. |
See this for a solution. |
/kind feature
Description
Hi, this is not a bug report, but I'm looking for advice how to use home automation devices in containers. I have e.g. bluetooth devices, and zigbee devices. Let's start with bluetooth.
What would be the recommended way to get devices into container, not running the container privileged and using host networking?
I can get the bluetooth device visible into container like this:
But this gives lot of privileges to container. Could I somehow import the USB device into container, and start dbus in there, and bluetoothd?
I tried e.g. using ubi-init to get dbus in there easily, which didn't work:
So you can see how it sees all the usb devices, but still the bluez can't get the hci0 device up. Any ideas what should be done or what I'm doing wrong? Or should I just give all the powers to container?
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: