[Lxc-users] Raw devices on Linux container (OEL 6.4)

Gherasim Dragos dragosg78 at yahoo.com
Wed Oct 2 07:57:59 UTC 2013


Hello,

I am a newbie in LXC world so please bear with me a little with the question below.

Giving the following setup:

- host is an OEL 6.4 with kernel 2.6.39-400.17.1.el6uek.x86_64
- LXC software is:

rpm -qa|grep lxc
lxc-0.8.0-2.0.8.el6.x86_64
lxc-libs-0.8.0-2.0.8.el6.x86_64

- trying to import a raw device in the guest container made up from a file. I created the file on the host machine and created a loop device:

losetup -a
/dev/loop1: [0802]:18614845 (/disks/asm1)
/dev/loop2: [0802]:18614846 (/disks/asm2)
/dev/loop3: [0802]:18614847 (/disks/asm3)

(--> /disks/asm1-3 are just plain empty files on OS)

Now trying to create a raw device out of it fails with:

raw
Cannot open master raw device '/dev/raw/rawctl' (No such file or directory)

How can I make this working? I looked over config file, but could not figured out if a system device needs to be added/allowed. I commented the following line in config

#lxc.cgroup.devices.deny = a


and also tried to add the raw device as:

lxc.cgroup.devices.allow = c 162:* rwm #/dev/raw/rawctl


The loop devices were added with:

lxc.cgroup.devices.allow = b 7:* rwm # /dev/loop


Any feedback is appreciated.
Thank you in advance!
Dragos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20131002/c61b8d13/attachment.html>


More information about the lxc-users mailing list