LXC Passtrough USB CD-Drive

subsee

New Member
Feb 25, 2023
2
0
1
Hi all ,

I try to passtrough my USB CD-Drive.

What I've done :

LXC-Conf:

added

lxc.mount.entry: /dev/sr0 dev/sr0 none bind,optional,create=file #USB-DVD lxc.mount.entry: /dev/sg2 dev/sg2 none bind,optional,create=file #USB-DVD

I wasn't be able to mount the Drive. Got an permission denied

So the next try was to add :


lxc.cgroup2.devices.allow: c 189:* rwm lxc.mount.entry: /dev/bus/usb/002/002 dev/bus/usb/ none bind,optional,create=file


i also create a UDEV Rule with the idvendor and idproduct.

I can't get it to work.

I need the drive instead of a Mountpoint because I wanna use MakeMKV . So I need the full drive.

Anyone got some ideas or solutions for this problem ?

greetings

Marcus


dmesg of the container:

[64207.386675] blk_update_request: I/O error, dev sr0, sector 4096 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [64207.386690] Buffer I/O error on dev sr0, logical block 512, async page read [64209.674006] sr 4:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s [64209.674015] sr 4:0:0:0: [sr0] tag#0 Sense Key : Illegal Request [current] [64209.674018] sr 4:0:0:0: [sr0] tag#0 Add. Sense: Read of scrambled sector without authentication [64209.674021] sr 4:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 3e 0f 80 00 00 80 00 00 0

By the way the drive works flawless with this disk. Testet on the Host
 
Last edited: