@Serge
Thanks for the response.

Host:~$ sudo cat /sys/fs/cgroup/devices/lxc/local-server-7/devices.list
c *:* m
b *:* m
c 1:3 rwm
c 1:5 rwm
c 5:1 rwm
c 5:0 rwm
c 1:9 rwm
c 1:8 rwm
c 136:* rwm
c 5:2 rwm
c 254:0 rwm
c 10:229 rwm
c 10:200 rwm
c 1:7 rwm
c 10:228 rwm
c 10:232 rwm




> On Thursday, September 11, 2014 12:36 PM, Serge Hallyn 
> <serge.hal...@ubuntu.com> wrote:
> Quoting Bin Zhou (lakerz...@yahoo.com):
> > 
> > 
> > 
> > 
> > >On Wednesday, September 10, 2014 2:30 PM, Serge Hallyn 
> > ><serge.hal...@ubuntu.com> wrote:
> > 
> > 
> > 
> > >Quoting Bin Zhou (lakerz...@yahoo.com):
> > >> Hi,
> > >> 
> >> I am trying to enable dev loop access in LXC and set up glusterFS server 
> >> volume on the loop dev.
> > >> I add the following line to /var/lib/lxc/local-server-7/config
> > >>  lxc.cgroup.devices.allow = b 7:* rwm
> > >
> > > Certainly looks fine.
> > >
> > >
> > >> The container failed to start with the new config.
> > >> 
> > >> ubuntu@bpcluster1:~$ sudo lxc-start -n local-server-7 
> > >> lxc-start: write 
> > >> /sys/fs/cgroup/devices//lxc/local-server-7/devices.allow : Invalid 
> > >> argument
> > >> lxc-start: failed to setup the cgroups for 'local-server-7'
> > >> lxc-start: failed to setup the container
> > >> lxc-start: invalid sequence number 1. expected 2
> > >> lxc-start: failed to spawn 'local-server-7
> > >
> > > Hm.  Can you cat /sys/fs/cgroup/devices/lxc/devices.list ?
> > 
> > Host:~$ sudo cat /sys/fs/cgroup/devices/lxc/devices.list 
> > a *:* rwm

> Adding "lxc.cgroup.devices.allow = b 7:* rwm" to a brand-new container works
> for me here.  Can you start the container without that line and show

> /sys/fs/cgroup/devices/lxc/local-server-7/devices.list

> while it's running?



_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to