<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Liberation Sans">Hi,<br>
I try to start an unprivileged Lxc container under Debian Sid for
a while, I tried a lot of things, but it does not work.<br>
<br>
Futhermore, I asked here if it was a bug, but it seems not : <br>
<a class="moz-txt-link-freetext" href="https://github.com/lxc/lxc/issues/414#issuecomment-71414827">https://github.com/lxc/lxc/issues/414#issuecomment-71414827</a><br>
<br>
Now, I'am wondering if it is not a Debian specific problem related
to some right access on /sys/fs/cgroup.<br>
<br>
Here the ouput of systemctl status cgconfig <br>
<br>
<i>hur</i><i>aira</i><i>@debian:~$ systemctl status cgconfig </i><i><br>
</i><i>● cgconfig.service</i><i><br>
</i><i> Loaded: not-found (Reason: No such file or directory)</i><i><br>
</i><i> Active: inactive (dead)</i><br>
<br>
<br>
Here some packages installed on my system :<br>
<i>lxc 1:1.0.7-1 amd64</i><i><br>
</i><i>cgmanager 0.35-1 amd64</i><i><br>
</i><i>cgroup-bin 0.41-6 all</i><i><br>
</i><i>cgroup-tools 0.41-6 amd64</i><i><br>
</i><i>libcgmanager0: 0.35-1 amd64</i><i><br>
</i><i>libcgroup1:amd 0.41-6 amd64</i><i><br>
</i><i>libpam-cgroup: 0.41-6</i></font><font face="Liberation
Sans"><i> amd64</i><br>
<br>
Here the log <b>lxc-start -n test -l DEBUG -o /tmp/lxc_test.log
-f ~/.config/lxc/default.conf</b>:<br>
<i><br>
</i><i> lxc-start 1422302714.376 INFO lxc_confile -
confile.c:config_idmap:1325 - read uid map: type u nsid 0 hostid
1214112 range 65536</i><i><br>
</i><i> lxc-start 1422302714.376 INFO lxc_confile -
confile.c:config_idmap:1325 - read uid map: type g nsid 0 hostid
1214112 range 65536</i><i><br>
</i><i> lxc-start 1422302714.377 WARN lxc_log -
log.c:lxc_log_init:316 - lxc_log_init called with log already
initialized</i><i><br>
</i><i> lxc-start 1422302714.378 INFO lxc_confile -
confile.c:config_idmap:1325 - read uid map: type u nsid 0 hostid
1214112 range 65536</i><i><br>
</i><i> lxc-start 1422302714.378 INFO lxc_confile -
confile.c:config_idmap:1325 - read uid map: type g nsid 0 hostid
1214112 range 65536</i><i><br>
</i><i> lxc-start 1422302714.378 WARN lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_<a class="moz-txt-link-freetext" href="info:1100">info:1100</a> - Not attaching to
cgroup cpuset unknown to /home/huraira/.local/share/lxc test</i><i><br>
</i><i> lxc-start 1422302714.378 WARN lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_<a class="moz-txt-link-freetext" href="info:1100">info:1100</a> - Not attaching to
cgroup perf_event unknown to /home/huraira/.local/share/lxc test</i><i><br>
</i><i> lxc-start 1422302714.378 WARN lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_<a class="moz-txt-link-freetext" href="info:1100">info:1100</a> - Not attaching to
cgroup cpu unknown to /home/huraira/.local/share/lxc test</i><i><br>
</i><i> lxc-start 1422302714.378 WARN lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_<a class="moz-txt-link-freetext" href="info:1100">info:1100</a> - Not attaching to
cgroup net_cls unknown to /home/huraira/.local/share/lxc test</i><i><br>
</i><i> lxc-start 1422302714.378 WARN lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_<a class="moz-txt-link-freetext" href="info:1100">info:1100</a> - Not attaching to
cgroup blkio unknown to /home/huraira/.local/share/lxc test</i><i><br>
</i><i> lxc-start 1422302714.378 WARN lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_<a class="moz-txt-link-freetext" href="info:1100">info:1100</a> - Not attaching to
cgroup memory unknown to /home/huraira/.local/share/lxc test</i><i><br>
</i><i> lxc-start 1422302714.378 WARN lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_<a class="moz-txt-link-freetext" href="info:1100">info:1100</a> - Not attaching to
cgroup freezer unknown to /home/huraira/.local/share/lxc test</i><i><br>
</i><i> lxc-start 1422302714.378 WARN lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_<a class="moz-txt-link-freetext" href="info:1100">info:1100</a> - Not attaching to
cgroup devices unknown to /home/huraira/.local/share/lxc test</i><i><br>
</i><i> lxc-start 1422302714.378 INFO lxc_lsm -
lsm/lsm.c:lsm_init:48 - LSM security driver nop</i><i><br>
</i><i> lxc-start 1422302714.378 DEBUG lxc_start -
start.c:setup_signal_fd:247 - sigchild handler set</i><i><br>
</i><i> lxc-start 1422302714.378 INFO lxc_start -
start.c:lxc_init:443 - 'test' is initialized</i><i><br>
</i><i> lxc-start 1422302714.379 DEBUG lxc_start -
start.c:__lxc_start:1058 - Not dropping cap_sys_boot or watching
utmp</i><i><br>
</i><i> lxc-start 1422302714.379 INFO lxc_start -
start.c:lxc_spawn:802 - Cloning a new user namespace</i><i><br>
</i><i> lxc-start 1422302714.379 INFO lxc_cgroup -
cgroup.c:cgroup_init:62 - cgroup driver cgroupfs initing for
test</i><i><br>
</i><i> lxc-start 1422302714.379 ERROR lxc_cgfs -
cgfs.c:lxc_cgroupfs_create:956 - Permission denied - Could not
create cgroup '/test' in '/sys/fs/cgroup/devices'.</i><i><br>
</i><i> lxc-start 1422302714.379 ERROR lxc_cgfs -
cgfs.c:cgroup_rmdir:207 - Permission denied - cgroup_rmdir:
failed to delete /sys/fs/cgroup/devices/</i><i><br>
</i><i> lxc-start 1422302714.379 ERROR lxc_cgfs -
cgfs.c:cgroup_rmdir:207 - Permission denied - cgroup_rmdir:
failed to delete /sys/fs/cgroup/freezer/</i><i><br>
</i><i> lxc-start 1422302714.379 ERROR lxc_cgfs -
cgfs.c:cgroup_rmdir:207 - Permission denied - cgroup_rmdir:
failed to delete /sys/fs/cgroup/memory/</i><i><br>
</i><i> lxc-start 1422302714.379 ERROR lxc_cgfs -
cgfs.c:cgroup_rmdir:207 - Permission denied - cgroup_rmdir:
failed to delete /sys/fs/cgroup/blkio/</i><i><br>
</i><i> lxc-start 1422302714.380 ERROR lxc_cgfs -
cgfs.c:cgroup_rmdir:207 - Permission denied - cgroup_rmdir:
failed to delete /sys/fs/cgroup/net_cls,net_prio/</i><i><br>
</i><i> lxc-start 1422302714.380 ERROR lxc_cgfs -
cgfs.c:cgroup_rmdir:207 - Permission denied - cgroup_rmdir:
failed to delete /sys/fs/cgroup/cpu,cpuacct/</i><i><br>
</i><i> lxc-start 1422302714.380 ERROR lxc_cgfs -
cgfs.c:cgroup_rmdir:207 - Permission denied - cgroup_rmdir:
failed to delete /sys/fs/cgroup/perf_event/</i><i><br>
</i><i> lxc-start 1422302714.380 ERROR lxc_cgfs -
cgfs.c:cgroup_rmdir:207 - Permission denied - cgroup_rmdir:
failed to delete /sys/fs/cgroup/cpuset/</i><i><br>
</i><i> lxc-start 1422302714.380 ERROR lxc_start -
start.c:lxc_spawn:861 - failed creating cgroups</i><i><br>
</i><i> lxc-start 1422302714.380 ERROR lxc_start -
start.c:__lxc_start:1080 - failed to spawn 'test'</i><i><br>
</i><i> lxc-start 1422302714.380 WARN lxc_conf -
conf.c:lxc_delete_autodev:1575 - Failed to locate autodev
/dev/.lxc and /dev/.lxc/user.</i><i><br>
</i><i> lxc-start 1422302714.380 ERROR lxc_start_ui -
lxc_start.c:main:342 - The container failed to start.</i><br>
</font>
</body>
</html>