HackRF in LXC container
The key requirement is to run a few commands on the host after plugging it in. mkdir -p /var/lib/lxc/grid22/rootfs/root/bus/usb umount /var/lib/lxc/grid22/rootfs/root/bus/usb mount -o bind /dev/bus/usb /var/lib/lxc/grid22/rootfs/root/bus/usb This has to be done every time the gadget is unplugged. There might be a way to automate it by polling /dev/bus on the host or editing a udev script. On the container, you have to run ln -s /root/bus /dev/bus This stays around when the gadget is unplugged. The container configuration file /var/lib/lxc/grid22/config might require an extra line lxc.cgroup.devices.allow = c 189:* rwm The X server as always requires lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none bind,optional,create=dir,ro mkdir -p /var/lib/lxc/grid22/rootfs/tmp/.X11-unix The mane problem is the container's /dev/ directory is a virtual filesystem not part of /var/lib/lxc/grid22/rootfs/. Anything in /d...