Jlmkr DVD / CDROM Passthrough for MakeMKV

Hi all!

I cannot get my USB Blueray device connected to Makemkv via jlmkr. Clearly I have something messed up. I am pretty sure it is here …

from my docker jail config

# Use bridge networking to provide an isolated network namespace,
# so docker can manage firewall rules
# Alternatively use --network-macvlan=eno1 instead of --network-bridge
# Ensure to change eno1/br1 to the interface name you want to use
# You may want to add additional options here, e.g. bind mounts
systemd_nspawn_user_args=--network-macvlan=eno1
        --resolv-conf=bind-host
        --system-call-filter='add_key keyctl bpf'
        --bind='/mnt/tank/docker/data:/mnt/data'
        --bind='/mnt/tank/docker/stacks:/opt/stacks'
        --bind='/mnt/tank/Media:/mnt/Media'
        --bind='/mnt/tank/Home/Syncthing:/mnt/Syncthing'
        **--bind='/dev/sr0:/dev/sr0'**

# Script to run on the HOST before starting the jail
# Load kernel module and config kernel settings required for docker
pre_start_hook=#!/usr/bin/bash
        set -euo pipefail
        echo 'PRE_START_HOOK'
        echo 1 > /proc/sys/net/ipv4/ip_forward
        modprobe br_netfilter
        echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables
        echo 1 > /proc/sys/net/bridge/bridge-nf-call-ip6tables

I know /dev/sr0 is right as that is the device passed through to the Truecharts makemkv app but don’t think I am supposed to pass it through via a bind command.

my compose file …


services:
  makemkv:
    container_name: makemkv
    image: jlesage/makemkv
    networks:
      - network
    restart: unless-stopped
    volumes:
      - /mnt/data/makemkv:/config:rw
      - /mnt/Media:/output:rw
    devices:
      - /dev/sr0
networks:
  network:
    external: true

/dev/sr0 is in the jail’s /dev folder AND in the container’s /dev folder.

makemkv says no useable cdroms detected.

I did a lot of passthrough searches and nothing seemed to address cdrom / dvd devices.

This didn’t seem to apply
Thoughts?

If it is a USB drive then you’ll want to pass through the USB controller instead of the drive itself - that should do the needful. Headups, it’ll likely passthrough multiple usb ports on the system itself in the process.

thanks … will start googling how to a) identify the controller and b) how to pass it through to the jaiil.

1 Like

Actual solution for me was to ‘ls -la /dev/sg*’ and find the item with group cdrom and pass that through to the jail. The sgx devices change on reboots so the jail config needs to be updated, but …

1 Like