Okay, ich komme nicht weiter…
Ich habe mit der Container-Station einen LXC-Container mit Debian angelegt. Hat prima funktioniert.
An die NAS ist per USB ein DVD-Laufwerk angeschlossen, auf das ich im Container zugreifen will.
Auf der NAS sieht sr0 so aus:
In der Container config habe ich manuell zusätzliche Einträge gemacht (lxc.aa_profile, lxc.cgroup.devices.allow und lxc.mount.entry):
[/share/CACHEDEV6_DATA/software/container/container-station-data/image/lxc/debian-buster/image] # cat config
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: --dist debian --release buster --arch amd64
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Distribution configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.arch = x86_64
# Container specific configuration
lxc.rootfs = ./image/rootfs
lxc.rootfs.backend = dir
lxc.utsname = debian-buster
# allow mounting
lxc.aa_profile = lxc-container-default-with-mounting
# lxc.cgroup.devices.allow = typeofdevice majornumber:minornumber rwm
lxc.cgroup.devices.allow = b 11:* rwm
# mount dvd
# lxc.mount.entry = /dev/sr0 dev/sr0 none bind,optional,create=file #USB-DVD
lxc.mount.entry = /share/external/DEV3303_-1/ dev/sr0 none bind,optional,create=file #USB-DVD
# Network configuration
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:44:07:55
Alles anzeigen
Dann den Container in der Container-Station gestoppt und wieder gestartet (als das nicht reichte, habe ich auch die NAS neu gestartet).
Dann im Container als root folgendes gemacht:
Leider ist das DVD-Laufwerk nicht über /dev/dvdrw ansprechbar…
root@debian-on-nas:~# dvdbackup -I -i /dev/dvdrw
libdvdread: Could not open input: Operation not permitted
libdvdread: Can't open /dev/dvdrw for reading
Cannot open specified device /dev/dvdrw - check your DVD device
Wo liegt mein Fehler
Bin für jeden Fingerzeig dankbar
PS: Das meiste habe ich aus dieser ziemlich coolen Anleitung https://newspaint.wordpress.co…ice-such-as-cdrom-in-lxc/