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
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to