Well I’m glad I checked my method. Found that i could leave out all the complicated stuff that took me ages to figure out.
Basically it just needs the USB port to be passed through. No need for the /dev/dvb/adapter0 that adds the complication.
So create a container on Proxmox using your distro of choice.
Plug in the RTL2838 stick. and use lsusb to discover the port it uses ls -al to check ownership
root@pveLXC:~# lsusb
Bus 002 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
root@pveLXC:~# ls -al /dev/bus/usb/002
crw-rw-r-- 1 root root 189, 129 Jan 21 17:43 002
Create an sdr-rules file and add the following rules. Apply the new rule.
root@pveLXC:~# nano /etc/udev/rules.d/rtlsdr.rules
SUBSYSTEMS==“usb”, ATTRS{idVendor}==“0bda”, ATTRS{idProduct}==“2838”, ENV{ID_SOFTWARE_RADIO}=“1”, MODE=“0666”, GROUP=“plugdev”
root@pveLXC:~# udevadm control --reload-rules && udevadm trigger
Recheck the USB port for the RTL2838 stick - it should now include “plugdev” in its ownership/
root@pveLXC:~# ls -al /dev/bus/usb/002
crw-rw-rw- 1 root plugdev 189, 129 Jan 21 18:31 002
On the host, edit the container config file and add two lines at the end.
root@pveLXC:~# nano /etc/pve/lxc/.conf
lxc.cgroup2.devices.allow: c 189: rwm*
lxc.mount.entry: /dev/bus/usb dev/bus/usb none bind,optional,create=dir
Start the container.
Check that the USB port with the RTL2838 stick has been passed through:
root@pveLXC:~# ls -al /dev/bus/usb/002
crw-rw-rw- 1 nobody nogroup 189, 129 Jan 21 17:46 002
Install dump1090, piaware and piaware-web using abcd567’s scripts https://discussions.flightaware.com/t/build-install-piaware-ver-8-2-on-amd64-x86-64-and-arm64-aarch64-computers-using-sripts/85662/6 or whatever you use to install Piaware. (Since I was using Debian as root I needed to remove sudo from abcd57’s scripts) .
In the container, run the command below to ensure “plugdev” is part of dump1090 group
root@Piaware ~# groups dump1090
dump1090 : nogroup plugdev
Finally run the URL given at the end of piaware-web installation. You should see “1090 radio”, “Piaware” and “Flightaware” in green. MLAT will be red until you provide a location for the receiver.
That’s the recipe but YMMV - no explanation provided of how it works. If you want to know or it does not work, let me know…