Hey Folks,
Long-ish thread, TLDR trying to pass through a USB audio device to an LXC container and am having a hard time with it. It might be a pulse audio issue but looking for advice.As to the inevitable WHY, well, because. Yes i know this is easier in a VM. I use nomachine to connect to it and i would like to pass the mic and speaker through to the container.
Setup: Proxmox 7 on supermicro server board with 64 gigs of ram (manifold)
LXC: bullseye
USB being served from a virtualhere USB server. (jetson)
USB device Plantronics Calisto 3200
followed this guidehttps://medium.com/@konpat/usb-passthrough-to-an-lxc-proxmox-15482674f11d
and it "looks" like the device is being seen.
Code:
root@manifold:~# ./vhclientx86_64 -n
root@manifold:~# ./vhclientx86_64 -t list
VirtualHere Client IPC, below are the available devices:
(Value in brackets = address, * = Auto-Use)
Jetson USB (jetson:7575)
--> Plantronics Calisto 3200 (jetson.12413)
--> Slim Ext Blu-ray (jetson.1243) (In-use by: (XXXXX) at 10.XXXXX)
--> VLI Product String (jetson.2142) (In-use by: (XXXXXX) at 10.XXXXX)
root@manifold:~# ./vhclientx86_64 -t USE,jetson.12413
OK
root@manifold:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 047f:014c Plantronics, Inc. Plantronics Calisto 3200******
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 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 004: ID 0557:2419 ATEN International Co., Ltd
Bus 001 Device 002: ID 0557:7000 ATEN International Co., Ltd Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@manifold:~# ls -al /dev/bus/usb/003/002
crw-rw-r-- 1 root root 189, 257 Nov 29 19:04 /dev/bus/usb/003/002
So the device is seen by the server, yay! Now to pass it through to the LXC container.
added the below to my lxc conf file.
Code:
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/003/002 dev/bus/usb/003/002 none bind,optional,create=file
XXXXXX XXXXXXXX-deb11 in ~ λ sudo lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 047f:014c Plantronics, Inc. Plantronics Calisto 3200
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 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 004: ID 0557:2419 ATEN International Co., Ltd
Bus 001 Device 002: ID 0557:7000 ATEN International Co., Ltd Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
XXXXXX XXXXXX-deb11 in ~ λ cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xc5080000 irq 153
1 [P3200 ]: USB-Audio - Plantronics Calisto 3200
Plantronics Plantronics Calisto 3200 at usb-vhci_hcd.0-1, full speed
YAY it looks like the LXC sees the device! However, i can not get the LXC to actually USE the device.
Code:
XXXXX on XXXXX-deb11 in ~ λ sudo aplay --list-devices
aplay: device_list:274: no soundcards found...
XXXXX on XXXXXX-deb11 in ~ λ sudo lspci -v | grep -A7 -i "audio"
lspci: Unable to load libkmod resources: error -2
17:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)
Subsystem: NVIDIA Corporation Device 147a
Flags: bus master, fast devsel, latency 0, IRQ 153, NUMA node 0
Memory at c5080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Only my passed through GPU seems to be recognized. Any recommendations?
Last edited: