[lxc-devel] How to import/access raw devices inside the container ?

Gherasim Dragos dragosg78 at yahoo.com
Tue Oct 8 14:13:51 UTC 2013


Hello,

Wondering if someone can help me with this:

- given a host where some raw devices are setup:

 raw -qa
/dev/raw/raw1:  bound to major 7, minor 1
/dev/raw/raw2:  bound to major 7, minor 2
/dev/raw/raw3:  bound to major 7, minor 3


Added the following entry in config file for the container:

lxc.cgroup.devices.allow = b 162:* rwm

Yet, the raw devices are not accessible in the container:

ls -la /dev/raw/
total 8
drwxr-xr-x 2 root root 4096 Oct  2 09:29 .
drwxr-xr-x 6 root root 4096 Oct  8 06:08 ..

Any ideas?

Thank you,
Dragos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20131008/3040e9b9/attachment.html>


More information about the lxc-devel mailing list