IncusOS - Get devices major/minor numbers

,

Hallo ! :waving_hand:

Trying to add a device to a container (Bluetooth adapter) and trying to find major/minor number.
Is this something possible or am I completely wrong here ?

Cheers !

Hi!
What about incus info --resources?

Actually, here’s the output for the device I am looking for:

  Device 2:
    Vendor: Intel Corp.
    Vendor ID: 8087
    Product: AX200 Bluetooth
    Product ID: 0029
    Bus Address: 1
    Device Address: 4

How should I be able to make it usable in a container ?

Oh, for a container, that data’s probably not that useful…
I’m actually not sure if you can.

If anyone have a clue on how to make an onboard Bluetooth adapter available in a container…

Have you tried to add the bluetooth adapter as a device to your instance?

Something like this:

incus config device add <instance> bluetooth usb vendorid=8087 productid=0029

After this command you container should have a device called bluetooth.

Give it a try and let us know.

Bluetooth devices are typically accessed through an hci device, those aren’t namespaced so can only really be driven by the host.

On a regular system, you could get the pairing and connection done on the host, then pass through the resulting devices to the container, typically with unix-char.
But given IncusOS doesn’t support bluetooth at all at the OS level (and we have no intention to add it), that’s not really an option.

I suspect your best bet may be to run a virtual machine instead, then pass the full bluetooth adapter to that virtual machine using a usb device. That should work fine and let you access bluetooth from there.

2 Likes