[lxc-users] cannot enable dev loop access from LXC

Bin Zhou lakerzhou at yahoo.com
Thu Sep 11 13:29:54 UTC 2014





>On Wednesday, September 10, 2014 2:30 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:



>Quoting Bin Zhou (lakerzhou at 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 at 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

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


More information about the lxc-users mailing list