Bluetooth in LXC

Icar

New Member
Jul 12, 2017
15
0
1
52
Hi,
i succefully pass USB ZWave stick using :

lxc.cgroup.devices.allow: c 166:* rwm
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file

I'm trying :

Bus 003 Device 006: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
crw-rw-r-- 1 root root 189, 261 Jul 13 12:49 bus/usb/003/006

I can't find device name in /dev/ so i used :

lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/003/006 dev/bus/usb/003/006 none bind,optional,create=file

without success :/

Any help please ?
Thx
 
Any updates on this? Not sure if you mean create a VM and use it that was or if there is a way to pass it to LXC using a different command
 
hi,

if there is a way to pass it to LXC using a different command

most devices can be passthroughed as such:

Code:
lxc.cgroup.devices.allow: c major:minor rwm
lxc.mount.entry: /dev/my-device /dev/my-device none bind,optional,create=file

(or create=dir if it's supposed to be a directory)

in /etc/pve/CTID.conf