DVD Drive in iocage jails

Xcapee

Dabbler
Joined
Aug 15, 2013
Messages
25
In FreeNAS 9.x I had DVDbackup configured in a jail with libdvd to rip mirror my DVDs. It all worked well, but it is years since I configured it and I have no idea how much effort I went to to get it working. I suspect I didn't have to do much.

I finally rebuilt my jails in iocage, and now, inserting a DVD in the drive generates these logs to dmesg:

(cd0:ahcich5:0:0:0): READ(10). CDB: 28 00 00 37 75 88 00 00 38 00
(cd0:ahcich5:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich5:0:0:0): SCSI status: Check Condition
(cd0:ahcich5:0:0:0): SCSI sense: ILLEGAL REQUEST asc:6f,3 (Read of scrambled sector without authentication)

Obviously I can't install libdvd in FreeNAS – it's an appliance - don't mess with it.

So my questions...
  • How do I pass the device through to the iocage jail?
  • How can I deal with the CAM errors in FreeNAS so they don't cause me issues in the jail?
I am okay to have the device completely dedicated to the jail if need be, but obviously it would be nicer if it were shared between FreeNAS and multiple jails.

Thanks for any help.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Check your iocage jail parameters:
  • enforce_statfs = 0
  • devfs_ruleset = 0
  • mount_devfs = checked
  • allow_mount = checked
  • allow_mount_devfs = checked
You may also need to set a sysctl tunable security.jail.enforce_statfs=0.
 

Xcapee

Dabbler
Joined
Aug 15, 2013
Messages
25
Check your iocage jail parameters:
  • enforce_statfs = 0
  • devfs_ruleset = 0
  • mount_devfs = checked
  • allow_mount = checked
  • allow_mount_devfs = checked
You may also need to set a sysctl tunable security.jail.enforce_statfs=0.
Thanks @Samuel Tai

I had to change a few of these. Any idea why when I restart the jail, devfs_ruleset=5 even though I set it to zero? I did change the tuneable. Is there a process I need to kick somewhere?

When I insert a DVD,
  • FreeNAS still generates the CAM errors (I'm not surprised by this but I am still not sure how to deal with it), and
  • there is no /dev/cd0 or anything else that looks like an optical drive
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Looks like a bug in iocage, sorry.
 
Top