View my account

D435 in LXD container

Comments

7 comments

  • MartyG

    Hi Yuri Pipchenko  I am not aware of previous cases where LXD containers have been used with librealsense and my research of your question did not find any either.  Docker containers can be used with librealsense (though I know they are not the same as LXD containers).

    My research indicated that virtual machines (VM) can be involved with LXD.  Are you using a VM with your LXD setup, please?  If so, the librealsense SDK has difficulty interfacing with VMs due to the need to emulate the USB controller.  Intel recommend VMware Workstation Player if you do need to use a VM, as described in the opening paragraph of the librealsense Linux installation guide in the link below.

    https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md

    0
    Comment actions Permalink
  • Yuri Pipchenko

    Hi MartyG Thank you for your reply. LXD and Docker are very similar - both are a containers using linux cgroups, but not fully functional VMs. I'm just more comfortable with LXD, because it allows to develop and debug a project inside. And as I understand it, both should use the same USB pass-through approaches.

    0
    Comment actions Permalink
  • MartyG

    Which computer / computing device are you using please?  Is it a PC, or a developer board such as Nvidia Jetson?

    0
    Comment actions Permalink
  • Yuri Pipchenko

    It's a PC.
    Motherboard - Supermicro MBD-X10SRA, CPU - Intel Xeon E5.

    0
    Comment actions Permalink
  • MartyG

    I do not have any librealsense-related LXD references to check.  There was a past Docker case though where a RealSense user got it working by ensuring that the host and container kernel versions matched.  If Docker and LXD are similar, the information in the link below may provide some ideas for what to try next.

    https://github.com/IntelRealSense/realsense-ros/issues/388#issuecomment-410672421 

    0
    Comment actions Permalink
  • Yuri Pipchenko

    Thank you very much, MartyG. I will try it.

    0
    Comment actions Permalink
  • Yuri Pipchenko

    It works with docker, because of when docker container is running I can mount whole /dev with --volume=/dev:

    docker run -it --rm --net=host --privileged --volume=/dev:/dev ...

    But this mount option is impossible with LXD. And it's necessary to forward separately each device that is part of the camera D435. Maybe someone knows what exactly these devices are?

    0
    Comment actions Permalink

Please sign in to leave a comment.