<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Hello,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">I am a newbie in LXC world so please bear with me a little with the question below.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Giving the following setup:</div><div style="font-family: 'times
new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">- host is an OEL 6.4 with kernel 2.6.39-400.17.1.el6uek.x86_64</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">- LXC software is:</div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><font face="times new roman, new york, times, serif">rpm -qa|grep lxc</font></div><div style="background-color: transparent;"><font
face="times new roman, new york, times, serif">lxc-0.8.0-2.0.8.el6.x86_64</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">lxc-libs-0.8.0-2.0.8.el6.x86_64</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">- 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:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">losetup -a</font></div><div style="background-color:
transparent;"><font face="times new roman, new york, times, serif">/dev/loop1: [0802]:18614845 (/disks/asm1)</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">/dev/loop2: [0802]:18614846 (/disks/asm2)</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">/dev/loop3: [0802]:18614847 (/disks/asm3)</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><font face="times new roman, new york, times, serif">(--> </font>/disks/asm1-3 are just plain empty files on OS<span style="background-color:
transparent;">)</span></div><div><br></div><div>Now trying to create a raw device out of it fails with:</div><div><br></div><div><div>raw</div><div>Cannot open master raw device '/dev/raw/rawctl' (No such file or directory)</div><div><br></div><div>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</div><div><br></div><div>#lxc.cgroup.devices.deny = a<br></div><div><br></div><div>and also tried to add the raw device as:</div><div><br></div><div>lxc.cgroup.devices.allow = c 162:* rwm #/dev/raw/rawctl<br></div><div><br></div><div>The loop devices were added with:</div><div><br></div><div>lxc.cgroup.devices.allow = b 7:* rwm # /dev/loop<br></div><div><br></div><div>Any feedback is appreciated.</div><div>Thank you in advance!</div><div>Dragos</div></div></div></body></html>