Announcement

Collapse
No announcement yet.

Proxmox LXC - Ubuntu 18.04 - USB Passthrough

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Proxmox LXC - Ubuntu 18.04 - USB Passthrough

    Dear Friends of the FR24feeder community,

    the feeder was moved from a raspberry pi to a Proxmox "Server" version 7.2-11. Now we are connected, however do not upload any seen aircrafts.

    The LXC Container is a Ubuntu 18.04.

    I get the USB passed to the unprivileged container.

    With the help of guide 1:
    HTML Code:
    https://coldcorner.de/2018/07/12/proxmox-usb-passthrough-fuer-lxc-container-z-wave-uzb1/
    and guide 2 for permanent binding the USB (even after a reboot):
    HTML Code:
    https://homematic-forum.de/forum/viewtopic.php?t=48361
    The config on the Proxmox host:

    Details of the lsusb command:
    Code:
    lsusb
    Bus 002 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
    Details of the USB DVB-T Dongle
    Code:
    ls -l /dev/bus/usb/002/002
    crwxrwxrwx 1 100000 100000 189, 129 Oct  8 15:41 /dev/bus/usb/002/002
    Details of the udev rules file, based on guide 2:
    Code:
    SUBSYSTEM=="tty", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", ATTRS{serial}=="0000:00:XXXXX", SYMLINK+="DVBTUSB"
    Details of the lxc config:
    Code:
    lxc.cgroup.devices.allow: c 189:129 rwm
    lxc.mount.entry: /dev/DVBTUSB dev/ttyUSB0 none bind,optional,create=file
    Driver info:
    Code:
    /lsusb -t
    : Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
    |__ Port 2: Dev 2, If 0, Class=Vendor Specific Class, Driver=dvb_usb_rtl28xxu, 480M
    The FR24 Container sees:
    Code:
    lsusb
    Bus 002 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T

    Code:
    cd /dev/
    lsusb
    -rwxrwxrwx 1 root   root         0 Oct  8 13:57 ttyUSB0
    yes shame on me, I made:
    Code:
    sudo chmod 777 /dev/ttyUSB0
    to see if the fr24 service would get data

    So I can verify the Container sees the USB DVV-T dongle. however, FR24 feed.service does not:

    Code:
    sudo fr24feed
    2022-10-08 14:33:07 | [reader][i]Connecting to DVBT receiver via (exe:///dev/ttyUSB0 --raw)
    2022-10-08 14:33:07 | [reader][i]Connected to the receiver, configuring
    2022-10-08 14:33:07 | [reader][i]Configured, processing messages
    2022-10-08 14:33:07 | error | write - missing monitor file pointer
    2022-10-08 14:33:07 | error | write - missing monitor file pointer
    2022-10-08 14:33:07 | error | write - missing monitor file pointer
    2022-10-08 14:33:07 | error | write - missing monitor file pointer
    2022-10-08 14:33:07 | error | write - missing monitor file pointer
    2022-10-08 14:33:07 | [reader][i]Connection terminated
    2022-10-08 14:33:07 | [main][i]Terminating child process 1028 with SIGTERM
    2022-10-08 14:33:07 | error | write - missing monitor file pointer
    2022-10-08 14:33:08 | [httpd][w]bind function failed, errno: 98, waiting 11 seconds
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:09 | error | write - missing monitor file pointer
    2022-10-08 14:33:12 | [reader][i]Connecting to DVBT receiver via (exe:///dev/ttyUSB0 --raw)
    With the receiver mode "DVBT" I dont get at least a "permission denied" error.

    fr24feed.ini:
    Code:
    receiver="dvbt"
    fr24key="XYZ"
    host="127.0.0.1:30005"
    path="/dev/ttyUSB0"
    Has anyone a tipp on how to get this running?


    Would appreciate some input.

    Cheers


    #2
    Path and host should not be used if dvbt mode

    Posts not to be taken as official support representation - Just a helpful uploader who tinkers

    Comment


      #3
      Originally posted by Oblivian View Post
      Path and host should not be used if dvbt mode
      Thanks for the input, unfortunately that has not resolved the issue.

      Do I mandatory have to install dump1090?
      I used the auto installation scrip from GitHub:
      FlightRadar24 data feeder installation script for Debian 9 & 10 amd64 / Ubuntu 18.04 amd64 on 64bit Intel CPU - abcd567a/fr24feed-debian-ubuntu-amd64-i386


      Code:
      bash: /usr/lib/fr24/dump1090: No such file or directory
      2022-10-08 19:07:33 | [reader][i]Connection terminated
      2022-10-08 19:07:33 | [main][i]Terminating child process 38653 with SIGTERM
      2022-10-08 19:07:33 | error | write - missing monitor file pointer
      2022-10-08 19:07:35 | [httpd][w]bind function failed, errno: 98, waiting 16 seconds
      2022-10-08 19:07:37 | error | write - missing monitor file pointer
      2022-10-08 19:07:39 | [reader][i]Connecting to DVBT receiver via (exe:///usr/lib/fr24/dump1090 --raw)
      2022-10-08 19:07:39 | [reader][i]Connected to the receiver, configuring
      2022-10-08 19:07:39 | [reader][i]Configured, processing messages
      2022-10-08 19:07:39 | error | write - missing monitor file pointer
      2022-10-08 19:07:39 | error | write - missing monitor file pointer
      2022-10-08 19:07:39 | error | write - missing monitor file pointer
      2022-10-08 19:07:39 | error | write - missing monitor file pointer
      2022-10-08 19:07:39 | error | write - missing monitor file pointer
      bash: /usr/lib/fr24/dump1090: No such file or directory
      Cheers

      Comment


        #4
        Well it needs _a_ decoder. Yes.

        Opt 1 is if you had one already

        2 adds ones.
        Posts not to be taken as official support representation - Just a helpful uploader who tinkers

        Comment


          #5
          Also likely have it running already. It cant open the ports needed due bind = in use.
          Posts not to be taken as official support representation - Just a helpful uploader who tinkers

          Comment


            #6
            Originally posted by fliegema View Post

            Thanks for the input, unfortunately that has not resolved the issue.

            Do I mandatory have to install dump1090?
            I used the auto installation scrip from GitHub:
            https://github.com/abcd567a/fr24feed...ster/README.md
            The fr24feed's armhf .deb package for RPi automatically installs dump1090-mutability+lighttpd if user chooses setting receiver=dvbt

            The Github link you used installs fr24feed's amd64/x86_64 .tgz binary package, which does NOT install dump1090-mutability and does NOT install lighttpd, irrespective of the setting chosen by user. The user has to manually install either dump1090-mutability+lighttpd OR dump1090-fa+lighttpd.



            Originally posted by fliegema View Post


            bash: /usr/lib/fr24/dump1090: No such file or directory

            2022-10-08 19:07:33 | [reader][i]Connection terminated
            2022-10-08 19:07:33 | [main][i]Terminating child process 38653 with SIGTERM
            2022-10-08 19:07:33 | error | write - missing monitor file pointer
            2022-10-08 19:07:35 | [httpd][w]bind function failed, errno: 98, waiting 16 seconds

            Delete following lines from / etc / fr24feed.ini.
            With amd64/x86_64 binary, installed by Github how-to, these settings dont work

            Code:
            receiver=dvbt
            host=/usr/lib/fr24/dump1090
            instead use following
            Code:
            receiver=avr-tcp
            host=127.0.0.1:30002

            Originally posted by fliegema View Post

            2022-10-08 19:07:37 | error | write - missing monitor file pointer
            2022-10-08 19:07:39 | [reader][i]Connecting to DVBT receiver via (exe:///usr/lib/fr24/dump1090 --raw)
            2022-10-08 19:07:39 | [reader][i]Connected to the receiver, configuring
            2022-10-08 19:07:39 | [reader][i]Configured, processing messages
            2022-10-08 19:07:39 | error | write - missing monitor file pointer
            2022-10-08 19:07:39 | error | write - missing monitor file pointer
            2022-10-08 19:07:39 | error | write - missing monitor file pointer
            2022-10-08 19:07:39 | error | write - missing monitor file pointer
            2022-10-08 19:07:39 | error | write - missing monitor file pointer
            [/CODE]

            missing monitor file pointer

            monitor file is log file. Check if you have following in yor rbfeeder.ini file

            fr24-log.png


            fr24-log2.png



            TRY THIS COMMAND

            fr24-log3.png



            THIS IS WHAT i GET:

            fr24-log4.png
            Last edited by abcd567; 2022-10-10, 04:06.

            Comment


              #7
              .

              On Debian11 amd64, fr24feed installed using my Github How-To



              fr24-log6.png



              fr24-log5.png
              Last edited by abcd567; 2022-10-10, 04:46.

              Comment

              Working...
              X