<div dir="ltr">Any ideas?<div>Has this anything to do with CGManager?</div><div>and this is what lxcfs status show:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="color:rgb(52,189,38)"><b>●</b></span><span style=""> lxcfs.service - FUSE filesystem for LXC</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style=""> Loaded: loaded (/lib/systemd/system/lxcfs.service; enabled; vendor preset: enabled)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style=""> Active: </span><span style="color:rgb(52,189,38)"><b>active (running)</b></span><span style=""> since Wed 2016-04-20 11:17:05 PKT; 53min ago</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style=""> Main PID: 391 (lxcfs)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style=""> Memory: 720.0K</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style=""> CPU: 28ms</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style=""> CGroup: /system.slice/lxcfs.service</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style=""> └─391 /usr/bin/lxcfs /var/lib/lxcfs/</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style=""></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop systemd[1]: Started FUSE filesystem for LXC.</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop lxcfs[391]: hierarchies: 0: blkio</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop lxcfs[391]: 1: cpu,cpuacct</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop lxcfs[391]: 2: devices</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop lxcfs[391]: 3: memory</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop lxcfs[391]: 4: freezer</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop lxcfs[391]: 5: net_cls,net_prio</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop lxcfs[391]: 6: pids</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr 20 11:17:05 mate-desktop lxcfs[391]: 7: name=systemd</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 9:38 PM, Muneeb Ahmad <span dir="ltr"><<a href="mailto:muneeb.gandapur@gmail.com" target="_blank">muneeb.gandapur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">lxcfs=2.0.0<div>lxc=2.0.0.rc9</div><div>And the contents of lxc.mount.hook are;<div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span>#!/bin/sh -e</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span># We're dealing with mount entries, so expand any symlink</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>LXC_ROOTFS_MOUNT</span><span style="color:rgb(52,189,38)">=$(</span><span>readlink </span><span style="color:rgb(52,189,38)">-f</span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span style="color:rgb(52,189,38)">)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span># /proc files</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="color:rgb(52,189,38)">if</span><span> </span><span style="color:rgb(52,189,38)">[</span><span> </span><span style="color:rgb(52,189,38)">-d</span><span> /var/lib/lxcfs/proc/ </span><span style="color:rgb(52,189,38)">];</span><span> </span><span style="color:rgb(52,189,38)">then</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">for</span><span> entry </span><span style="color:rgb(52,189,38)">in</span><span> /var/lib/lxcfs/proc/*</span><span style="color:rgb(52,189,38)">;</span><span> </span><span style="color:rgb(52,189,38)">do</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">[</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">-e</span><span style="color:rgb(0,0,0)"> </span><span><b>"${LXC_ROOTFS_MOUNT}/proc/$(basename $entry)"</b></span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">]</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">||</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">continue</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> mount </span><span style="color:rgb(52,189,38)">-n</span><span> --bind </span><span style="color:rgb(195,55,32)"><b>$entry</b></span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/proc/</span><span style="color:rgb(52,189,38)">$(</span><span>basename </span><span style="color:rgb(195,55,32)"><b>$entry</b></span><span style="color:rgb(52,189,38)">)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">done</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span>fi</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span># Allow nesting lxcfs</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="color:rgb(52,189,38)">if</span><span> </span><span style="color:rgb(52,189,38)">[</span><span> </span><span style="color:rgb(52,189,38)">-d</span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/var/lib/lxcfs/ </span><span style="color:rgb(52,189,38)">];</span><span> </span><span style="color:rgb(52,189,38)">then</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> mount </span><span style="color:rgb(52,189,38)">-n</span><span> --bind /var/lib/lxcfs </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/var/lib/lxcfs/</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span>fi</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span># no need for lxcfs cgroups if we have cgroup namespaces</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="color:rgb(52,189,38)">[</span><span> </span><span style="color:rgb(52,189,38)">-n</span><span> </span><span style="color:rgb(175,173,36)"><b>"$LXC_CGNS_AWARE"</b></span><span> </span><span style="color:rgb(52,189,38)">]</span><span> </span><span style="color:rgb(52,189,38)">&&</span><span> </span><span style="color:rgb(52,189,38)">[</span><span> </span><span style="color:rgb(52,189,38)">-f</span><span> /proc/self/ns/cgroup </span><span style="color:rgb(52,189,38)">]</span><span> </span><span style="color:rgb(52,189,38)">&&</span><span> </span><span style="color:rgb(52,189,38)">exit</span><span> 0</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span># Don</span><span style="color:rgb(175,173,36)"><b>'t mess with containers that don'</b></span><span>t have /sys/fs/cgroup configured</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span># (lxc.mount.auto = cgroup:mixed)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="color:rgb(52,189,38)">if</span><span> </span><span style="color:rgb(83,48,225)"><b>touch</b></span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/lxcfs</span><span style="color:rgb(52,189,38)">;</span><span> </span><span style="color:rgb(52,189,38)">then</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(83,48,225)"><b>rm</b></span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/lxcfs</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span>else</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">exit</span><span> 0</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span>fi</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span># /sys/fs/cgroup files</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><span style="color:rgb(52,189,38)">if</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">[</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">-d</span><span style="color:rgb(0,0,0)"> </span><span><b>"${LXC_ROOTFS_MOUNT}/sys/fs/cgroup"</b></span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">];</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">then</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">if</span><span> </span><span style="color:rgb(52,189,38)">[</span><span> </span><span style="color:rgb(52,189,38)">-d</span><span> /var/lib/lxcfs/cgroup </span><span style="color:rgb(52,189,38)">];</span><span> </span><span style="color:rgb(52,189,38)">then</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span style="color:rgb(0,0,0)"> </span><span> # Cleanup existing mounts</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">for</span><span> entry </span><span style="color:rgb(52,189,38)">in</span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/*</span><span style="color:rgb(52,189,38)">;</span><span> </span><span style="color:rgb(52,189,38)">do</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> DEST</span><span style="color:rgb(52,189,38)">=$(</span><span>basename </span><span style="color:rgb(195,55,32)"><b>$entry</b></span><span style="color:rgb(52,189,38)">)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">if</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">[</span><span style="color:rgb(0,0,0)"> </span><span><b>"${DEST}"</b></span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">=</span><span style="color:rgb(0,0,0)"> </span><span><b>"cgmanager"</b></span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">];</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">then</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">continue</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">fi</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">if</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">[</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">!</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">-d</span><span style="color:rgb(0,0,0)"> </span><span><b>"${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/${DEST}"</b></span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">];</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">then</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">continue</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">fi</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">while</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(83,48,225)"><b>grep</b></span><span style="color:rgb(0,0,0)"> -q </span><span><b>"${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/${DEST}"</b></span><span style="color:rgb(0,0,0)"> /proc/self/mountinfo</span><span style="color:rgb(52,189,38)">;</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">do</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(83,48,225)"><b>grep</b></span><span> </span><span style="color:rgb(175,173,36)"><b>"${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/${DEST}"</b></span><span> /proc/self/mountinfo </span><span style="color:rgb(52,189,38)">|</span><span> cut </span><span style="color:rgb(52,189,38)">-d</span><span style="color:rgb(175,173,36)"><b>' '</b></span><span> -f5 </span><span style="color:rgb(52,189,38)">|</span><span> </span><span style="color:rgb(52,189,38)">while</span><span> </span><span style="color:rgb(52,189,38)">read</span><span> line</span><span style="color:rgb(52,189,38)">;</span><span> </span><span style="color:rgb(52,189,38)">do</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">[</span><span> </span><span style="color:rgb(52,189,38)">-e</span><span> </span><span style="color:rgb(175,173,36)"><b>"${line}"</b></span><span> </span><span style="color:rgb(52,189,38)">]</span><span> </span><span style="color:rgb(52,189,38)">&&</span><span> umount -l </span><span style="color:rgb(175,173,36)"><b>"${line}"</b></span><span> </span><span style="color:rgb(52,189,38)">||</span><span> true</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">done</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">done</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(83,48,225)"><b>rm</b></span><span> -Rf </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/</span><span style="color:rgb(195,55,32)"><b>${DEST}</b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">done</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span style="color:rgb(0,0,0)"> </span><span> # Mount the new entries</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">for</span><span> entry </span><span style="color:rgb(52,189,38)">in</span><span> /var/lib/lxcfs/cgroup/*</span><span style="color:rgb(52,189,38)">;</span><span> </span><span style="color:rgb(52,189,38)">do</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> DEST</span><span style="color:rgb(52,189,38)">=$(</span><span>basename </span><span style="color:rgb(195,55,32)"><b>$entry</b></span><span style="color:rgb(52,189,38)">)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">if</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">[</span><span style="color:rgb(0,0,0)"> </span><span><b>"$DEST"</b></span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">=</span><span style="color:rgb(0,0,0)"> </span><span><b>"name=systemd"</b></span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">];</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(52,189,38)">then</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> DEST</span><span style="color:rgb(52,189,38)">=</span><span style="color:rgb(175,173,36)"><b>"systemd"</b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)">
</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">fi</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">if</span><span> </span><span style="color:rgb(52,189,38)">[</span><span> </span><span style="color:rgb(52,189,38)">!</span><span> </span><span style="color:rgb(52,189,38)">-d</span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/</span><span style="color:rgb(195,55,32)"><b>${DEST}</b></span><span> </span><span style="color:rgb(52,189,38)">];</span><span> </span><span style="color:rgb(52,189,38)">then</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(83,48,225)"><b>mkdir</b></span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/</span><span style="color:rgb(195,55,32)"><b>${DEST}</b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">fi</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> mount </span><span style="color:rgb(52,189,38)">-n</span><span> --bind </span><span style="color:rgb(195,55,32)"><b>$entry</b></span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/</span><span style="color:rgb(195,55,32)"><b>$DEST</b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span style="color:rgb(0,0,0)"> </span><span> # make sure that cpu,cpuacct shows up as cpu and cpuacct</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span style="color:rgb(0,0,0)"> </span><span> # separately, else systemd is unhappy</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">if</span><span> </span><span style="color:rgb(83,48,225)"><b>echo</b></span><span> </span><span style="color:rgb(195,55,32)"><b>$DEST</b></span><span> </span><span style="color:rgb(52,189,38)">|</span><span> </span><span style="color:rgb(83,48,225)"><b>grep</b></span><span> -q </span><span style="color:rgb(175,173,36)"><b>","</b></span><span style="color:rgb(52,189,38)">;</span><span> </span><span style="color:rgb(52,189,38)">then</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> arr</span><span style="color:rgb(52,189,38)">=$(</span><span style="color:rgb(83,48,225)"><b>echo</b></span><span> </span><span style="color:rgb(195,55,32)"><b>$DEST</b></span><span> </span><span style="color:rgb(52,189,38)">|</span><span> tr </span><span style="color:rgb(175,173,36)"><b>","</b></span><span> </span><span style="color:rgb(175,173,36)"><b>"\n"</b></span><span style="color:rgb(52,189,38)">)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">for</span><span> single </span><span style="color:rgb(52,189,38)">in</span><span> </span><span style="color:rgb(195,55,32)"><b>$arr</b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">do</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">if</span><span> </span><span style="color:rgb(52,189,38)">[</span><span> </span><span style="color:rgb(52,189,38)">!</span><span> </span><span style="color:rgb(52,189,38)">-L</span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/</span><span style="color:rgb(195,55,32)"><b>$single</b></span><span> </span><span style="color:rgb(52,189,38)">];</span><span> </span><span style="color:rgb(52,189,38)">then</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(83,48,225)"><b>ln</b></span><span> </span><span style="color:rgb(52,189,38)">-s</span><span> </span><span style="color:rgb(195,55,32)"><b>$DEST</b></span><span> </span><span style="color:rgb(195,55,32)"><b>${LXC_ROOTFS_MOUNT}</b></span><span>/sys/fs/cgroup/</span><span style="color:rgb(195,55,32)"><b>$single</b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">fi</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">done</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">fi</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">done</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span> </span><span style="color:rgb(52,189,38)">fi</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span>fi</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">
</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span>exit</span><span style="color:rgb(0,0,0)"> 0</span></p></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span><br></span></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 16, 2016 at 12:33 AM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">/usr/share/lxcfs/lxc.mount.hook failed. Can you please who us its<br>
contents? What are your versions of lxc and lxcfs?<br>
<div><div><br>
Quoting Muneeb Ahmad (<a href="mailto:muneeb.gandapur@gmail.com" target="_blank">muneeb.gandapur@gmail.com</a>):<br>
> I updated the kernel for user namespaces and everything is enabled when I<br>
> run "lxc-checkconfig". But I encountered the same error when I tried to run<br>
> a container. Container log shows different errors now:<br>
><br>
> Name: ubuntu-test<br>
><br>
> Architecture: armv7l<br>
><br>
> Created: 2016/04/10 21:41 UTC<br>
><br>
> Status: Stopped<br>
><br>
> Type: persistent<br>
><br>
> Profiles: default<br>
><br>
><br>
> Log:<br>
><br>
><br>
> lxc 20160410214156.082 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214156.082 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214401.643 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214401.643 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214401.815 INFO lxc_start -<br>
> start.c:lxc_check_inherited:251 - closed inherited fd 3<br>
><br>
> lxc 20160410214401.816 INFO lxc_start -<br>
> start.c:lxc_check_inherited:251 - closed inherited fd 8<br>
><br>
> lxc 20160410214401.833 INFO lxc_container -<br>
> lxccontainer.c:do_lxcapi_start:797 - Attempting to set proc title to [lxc<br>
> monitor] /var/lib/lxd/containers ubuntu-test<br>
><br>
> lxc 20160410214401.836 INFO lxc_start -<br>
> start.c:lxc_check_inherited:251 - closed inherited fd 8<br>
><br>
> lxc 20160410214401.837 INFO lxc_lsm - lsm/lsm.c:lsm_init:48<br>
> - LSM security driver nop<br>
><br>
> lxc 20160410214401.840 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:342 - processing: .reject_force_umount # comment<br>
> this to allow umount -f; not recommended.<br>
><br>
> lxc 20160410214401.840 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:436 - Adding native rule for reject_force_umount<br>
> action 0<br>
><br>
> lxc 20160410214401.840 INFO lxc_seccomp -<br>
> seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force<br>
> umounts<br>
><br>
><br>
> lxc 20160410214401.840 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:342 - processing: .[all].<br>
><br>
> lxc 20160410214401.840 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:342 - processing: .kexec_load errno 1.<br>
><br>
> lxc 20160410214401.841 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:436 - Adding native rule for kexec_load action<br>
> 327681<br>
><br>
> lxc 20160410214401.841 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:342 - processing: .open_by_handle_at errno 1.<br>
><br>
> lxc 20160410214401.841 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:436 - Adding native rule for open_by_handle_at<br>
> action 327681<br>
><br>
> lxc 20160410214401.841 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:342 - processing: .init_module errno 1.<br>
><br>
> lxc 20160410214401.841 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:436 - Adding native rule for init_module action<br>
> 327681<br>
><br>
> lxc 20160410214401.841 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:342 - processing: .finit_module errno 1.<br>
><br>
> lxc 20160410214401.841 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:436 - Adding native rule for finit_module action<br>
> 327681<br>
><br>
> lxc 20160410214401.841 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:342 - processing: .delete_module errno 1.<br>
><br>
> lxc 20160410214401.842 INFO lxc_seccomp -<br>
> seccomp.c:parse_config_v2:436 - Adding native rule for delete_module action<br>
> 327681<br>
><br>
> lxc 20160410214401.841 INFO lxc_start -<br>
> start.c:lxc_check_inherited:251 - closed inherited fd 3<br>
><br>
> lxc 20160410214401.842 INFO lxc_conf -<br>
> conf.c:run_script_argv:367 - Executing script '/usr/bin/lxd callhook<br>
> /var/lib/lxd 2 start' for container 'ubuntu-test', config section 'lxc'<br>
><br>
> lxc 20160410214401.842 INFO lxc_start -<br>
> start.c:lxc_check_inherited:251 - closed inherited fd 8<br>
><br>
> lxc 20160410214401.858 INFO lxc_monitor -<br>
> monitor.c:lxc_monitor_sock_name:178 - using monitor sock name<br>
> lxc/d78a9d7e97b4b375//var/lib/lxd/containers<br>
><br>
> lxc 20160410214402.096 DEBUG lxc_start -<br>
> start.c:setup_signal_fd:289 - sigchild handler set<br>
><br>
> lxc 20160410214402.099 DEBUG lxc_console -<br>
> console.c:lxc_console_peer_default:473 - no console peer<br>
><br>
> lxc 20160410214402.099 INFO lxc_start -<br>
> start.c:lxc_init:488 - 'ubuntu-test' is initialized<br>
><br>
> lxc 20160410214402.102 DEBUG lxc_start -<br>
> start.c:__lxc_start:1302 - Not dropping cap_sys_boot or watching utmp<br>
><br>
> lxc 20160410214402.102 INFO lxc_start -<br>
> start.c:resolve_clone_flags:999 - Cloning a new user namespace<br>
><br>
> lxc 20160410214402.112 DEBUG lxc_conf -<br>
> conf.c:instantiate_veth:2613 - instantiated veth 'vethAMHI20/vethM7FMG6',<br>
> index is '7'<br>
><br>
> lxc 20160410214402.113 INFO lxc_cgroup -<br>
> cgroup.c:cgroup_init:68 - cgroup driver cgroupfs-ng initing for ubuntu-test<br>
><br>
> lxc 20160410214402.129 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214402.129 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214402.206 DEBUG lxc_conf -<br>
> conf.c:lxc_assign_network:3047 - move 'eth0' to '1465'<br>
><br>
> lxc 20160410214402.241 NOTICE lxc_start -<br>
> start.c:do_start:763 - switching to gid/uid 0/0 in new user namespace<br>
><br>
> lxc 20160410214402.243 DEBUG lxc_conf -<br>
> conf.c:setup_rootfs:1215 - mounted<br>
> '/var/lib/lxd/containers/ubuntu-test/rootfs' on<br>
> '/usr/lib/arm-linux-gnueabihf/lxc'<br>
><br>
> lxc 20160410214402.243 INFO lxc_conf -<br>
> conf.c:setup_utsname:843 - 'ubuntu-test' hostname has been setup<br>
><br>
> lxc 20160410214402.276 DEBUG lxc_conf -<br>
> conf.c:setup_hw_addr:2144 - mac address '00:16:3e:f1:c3:05' on 'eth0' has<br>
> been setup<br>
><br>
> lxc 20160410214402.277 DEBUG lxc_conf -<br>
> conf.c:setup_netdev:2371 - 'eth0' has been setup<br>
><br>
> lxc 20160410214402.277 INFO lxc_conf -<br>
> conf.c:setup_network:2392 - network has been setup<br>
><br>
> lxc 20160410214402.277 INFO lxc_conf -<br>
> conf.c:mount_autodev:1072 - Mounting container /dev<br>
><br>
> lxc 20160410214402.278 INFO lxc_conf -<br>
> conf.c:mount_autodev:1095 - Mounted tmpfs onto<br>
> /usr/lib/arm-linux-gnueabihf/lxc/dev<br>
><br>
> lxc 20160410214402.279 INFO lxc_conf -<br>
> conf.c:mount_autodev:1113 - Mounted container /dev<br>
><br>
> lxc 20160410214402.280 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1657 - remounting /proc/sys/fs/binfmt_misc on<br>
> /usr/lib/arm-linux-gnueabihf/lxc/proc/sys/fs/binfmt_misc to respect bind or<br>
> remount options<br>
><br>
> lxc 20160410214402.280 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1672 - (at remount) flags for /proc/sys/fs/binfmt_misc<br>
> was 4096, required extra flags are 0<br>
><br>
> lxc 20160410214402.280 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1681 - mountflags already was 20480, skipping remount<br>
><br>
> lxc 20160410214402.280 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1707 - mounted '/proc/sys/fs/binfmt_misc' on<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/proc/sys/fs/binfmt_misc', type 'none'<br>
><br>
> lxc 20160410214402.281 ERROR lxc_utils - utils.c:mkdir_p:253<br>
> - Permission denied - failed to create directory<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/sys/firmware/efi/'<br>
><br>
> lxc 20160410214402.281 WARN lxc_conf -<br>
> conf.c:mount_entry_create_dir_file:1755 - Failed to create mount target<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/sys/firmware/efi/efivars'<br>
><br>
> lxc 20160410214402.281 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1657 - remounting /sys/fs/fuse/connections on<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/fuse/connections to respect bind or<br>
> remount options<br>
><br>
> lxc 20160410214402.281 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1672 - (at remount) flags for /sys/fs/fuse/connections<br>
> was 4096, required extra flags are 0<br>
><br>
> lxc 20160410214402.281 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1681 - mountflags already was 20480, skipping remount<br>
><br>
> lxc 20160410214402.281 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1707 - mounted '/sys/fs/fuse/connections' on<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/sys/fs/fuse/connections', type 'none'<br>
><br>
> lxc 20160410214402.281 ERROR lxc_utils - utils.c:mkdir_p:253<br>
> - Permission denied - failed to create directory<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/sys/fs/pstore'<br>
><br>
> lxc 20160410214402.281 WARN lxc_conf -<br>
> conf.c:mount_entry_create_dir_file:1755 - Failed to create mount target<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/sys/fs/pstore'<br>
><br>
> lxc 20160410214402.282 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1657 - remounting /sys/kernel/debug on<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/kernel/debug to respect bind or<br>
> remount options<br>
><br>
> lxc 20160410214402.282 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1672 - (at remount) flags for /sys/kernel/debug was<br>
> 4096, required extra flags are 0<br>
><br>
> lxc 20160410214402.282 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1681 - mountflags already was 20480, skipping remount<br>
><br>
> lxc 20160410214402.282 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1707 - mounted '/sys/kernel/debug' on<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/sys/kernel/debug', type 'none'<br>
><br>
> lxc 20160410214402.282 ERROR lxc_utils - utils.c:mkdir_p:253<br>
> - Permission denied - failed to create directory<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/sys/kernel/security'<br>
><br>
> lxc 20160410214402.282 WARN lxc_conf -<br>
> conf.c:mount_entry_create_dir_file:1755 - Failed to create mount target<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/sys/kernel/security'<br>
><br>
> lxc 20160410214402.283 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1657 - remounting /dev/mqueue on<br>
> /usr/lib/arm-linux-gnueabihf/lxc/dev/mqueue to respect bind or remount<br>
> options<br>
><br>
> lxc 20160410214402.283 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1672 - (at remount) flags for /dev/mqueue was 4096,<br>
> required extra flags are 0<br>
><br>
> lxc 20160410214402.283 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1681 - mountflags already was 20480, skipping remount<br>
><br>
> lxc 20160410214402.283 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1707 - mounted '/dev/mqueue' on<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/dev/mqueue', type 'none'<br>
><br>
> lxc 20160410214402.283 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1657 - remounting /var/lib/lxd/devlxd on<br>
> /usr/lib/arm-linux-gnueabihf/lxc/dev/lxd to respect bind or remount options<br>
><br>
> lxc 20160410214402.283 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1672 - (at remount) flags for /var/lib/lxd/devlxd was<br>
> 1024, required extra flags are 0<br>
><br>
> lxc 20160410214402.283 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1681 - mountflags already was 4096, skipping remount<br>
><br>
> lxc 20160410214402.283 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1707 - mounted '/var/lib/lxd/devlxd' on<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/dev/lxd', type 'none'<br>
><br>
> lxc 20160410214402.284 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1657 - remounting /var/lib/lxd/shmounts/ubuntu-test on<br>
> /usr/lib/arm-linux-gnueabihf/lxc/dev/.lxd-mounts to respect bind or remount<br>
> options<br>
><br>
> lxc 20160410214402.284 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1672 - (at remount) flags for<br>
> /var/lib/lxd/shmounts/ubuntu-test was 1024, required extra flags are 0<br>
><br>
> lxc 20160410214402.284 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1681 - mountflags already was 4096, skipping remount<br>
><br>
> lxc 20160410214402.284 DEBUG lxc_conf -<br>
> conf.c:mount_entry:1707 - mounted '/var/lib/lxd/shmounts/ubuntu-test' on<br>
> '/usr/lib/arm-linux-gnueabihf/lxc/dev/.lxd-mounts', type 'none'<br>
><br>
> lxc 20160410214402.284 INFO lxc_conf -<br>
> conf.c:mount_file_entries:1926 - mount points have been setup<br>
><br>
> lxc 20160410214402.285 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1292 - Remounted<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/systemd read-only<br>
><br>
> lxc 20160410214402.285 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1298 - Mounting<br>
> /sys/fs/cgroup/systemd//lxc/ubuntu-test onto<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/systemd//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.285 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1306 - Completed second stage<br>
> cgroup automounts for<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/systemd//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.286 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1292 - Remounted<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/freezer read-only<br>
><br>
> lxc 20160410214402.286 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1298 - Mounting<br>
> /sys/fs/cgroup/freezer//lxc/ubuntu-test onto<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/freezer//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.286 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1306 - Completed second stage<br>
> cgroup automounts for<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/freezer//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.287 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1292 - Remounted<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/blkio read-only<br>
><br>
> lxc 20160410214402.287 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1298 - Mounting<br>
> /sys/fs/cgroup/blkio//lxc/ubuntu-test onto<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/blkio//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.287 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1306 - Completed second stage<br>
> cgroup automounts for<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/blkio//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.287 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1292 - Remounted<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/cpu read-only<br>
><br>
> lxc 20160410214402.287 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1298 - Mounting<br>
> /sys/fs/cgroup/cpu//lxc/ubuntu-test onto<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/cpu//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.288 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1306 - Completed second stage<br>
> cgroup automounts for<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/cpu//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.288 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1292 - Remounted<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/net_cls read-only<br>
><br>
> lxc 20160410214402.288 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1298 - Mounting<br>
> /sys/fs/cgroup/net_cls//lxc/ubuntu-test onto<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/net_cls//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.288 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1306 - Completed second stage<br>
> cgroup automounts for<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/net_cls//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.289 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1292 - Remounted<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/devices read-only<br>
><br>
> lxc 20160410214402.289 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1298 - Mounting<br>
> /sys/fs/cgroup/devices//lxc/ubuntu-test onto<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/devices//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.289 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1306 - Completed second stage<br>
> cgroup automounts for<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/devices//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.289 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1292 - Remounted<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/cpuset read-only<br>
><br>
> lxc 20160410214402.289 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1298 - Mounting<br>
> /sys/fs/cgroup/cpuset//lxc/ubuntu-test onto<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/cpuset//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.289 INFO lxc_cgfsng -<br>
> cgfsng.c:do_secondstage_mounts_if_needed:1306 - Completed second stage<br>
> cgroup automounts for<br>
> /usr/lib/arm-linux-gnueabihf/lxc/sys/fs/cgroup/cpuset//lxc/ubuntu-test<br>
><br>
> lxc 20160410214402.289 INFO lxc_conf -<br>
> conf.c:run_script_argv:367 - Executing script<br>
> '/usr/share/lxcfs/lxc.mount.hook' for container 'ubuntu-test', config<br>
> section 'lxc'<br>
><br>
> lxc 20160410214402.495 ERROR lxc_conf -<br>
> conf.c:run_buffer:347 - Script exited with status 1<br>
><br>
> lxc 20160410214402.495 ERROR lxc_conf -<br>
> conf.c:lxc_setup:3751 - failed to run mount hooks for container<br>
> 'ubuntu-test'.<br>
><br>
> lxc 20160410214402.495 ERROR lxc_start -<br>
> start.c:do_start:819 - failed to setup the container<br>
><br>
> lxc 20160410214402.495 ERROR lxc_sync -<br>
> sync.c:__sync_wait:52 - An error occurred in another process (expected<br>
> sequence number 2)<br>
><br>
> lxc 20160410214402.495 WARN lxc_conf -<br>
> conf.c:lxc_delete_network:2908 - failed to remove interface 7 'eth0'<br>
><br>
> lxc 20160410214402.497 ERROR lxc_start -<br>
> start.c:__lxc_start:1329 - failed to spawn 'ubuntu-test'<br>
><br>
> lxc 20160410214402.606 INFO lxc_conf -<br>
> conf.c:run_script_argv:367 - Executing script '/usr/bin/lxd callhook<br>
> /var/lib/lxd 2 stop' for container 'ubuntu-test', config section 'lxc'<br>
><br>
> lxc 20160410214402.793 WARN lxc_commands -<br>
> commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive<br>
> response<br>
><br>
> lxc 20160410214402.793 WARN lxc_commands -<br>
> commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive<br>
> response<br>
><br>
> lxc 20160410214402.831 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214402.832 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214513.301 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214513.301 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214513.362 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214513.363 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214826.048 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214826.048 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214826.117 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 165536<br>
> range 65536<br>
><br>
> lxc 20160410214826.117 INFO lxc_confile -<br>
> confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 165536<br>
> range 65536<br>
><br>
><br>
> Please someone help me out.<br>
> regards<br>
><br>
> On Sat, Apr 9, 2016 at 9:25 PM, Serge Hallyn <<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>><br>
> wrote:<br>
><br>
> > Ok, fwiw rpi2 should work with Ubuntu as well iiuc.<br>
> ><br>
> > Quoting Muneeb Ahmad (<a href="mailto:muneeb.gandapur@gmail.com" target="_blank">muneeb.gandapur@gmail.com</a>):<br>
> > > I'm using Raspberry pi 2 actually. And I'll take a look at debian and see<br>
> > > if their kernel have the userns_allow_unpriv option.<br>
> > ><br>
> > > On Sat, Apr 9, 2016 at 9:00 AM, Serge Hallyn <<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>><br>
> > > wrote:<br>
> > ><br>
> > > > Quoting Muneeb Ahmad (<a href="mailto:muneeb.gandapur@gmail.com" target="_blank">muneeb.gandapur@gmail.com</a>):<br>
> > > > > It's not in there.<br>
> > > > > Do you have any Raspberry pi OS recommendations for me? I'm<br>
> > > ><br>
> > > > This is a rpi , not 2 or 3, so ubuntu isn't an option? But<br>
> > > > debian is, right? And their kernel should have the userns_allow_unpriv<br>
> > > > or whatever sysctl, which would let you do it.<br>
> > > ><br>
> > > > > interested in running lxc containers and openstack(nova only)?<br>
> > > > ><br>
> > > > > Thanks. On Sat, Apr 09, 2016 at 2:51 AM, Serge Hallyn <<br>
> > > > > <a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a> [<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>] > wrote:<br>
> > > > > Quoting Muneeb Ahmad (<a href="mailto:muneeb.gandapur@gmail.com" target="_blank">muneeb.gandapur@gmail.com</a>):<br>
> > > > > > Thanks for the answer. Is there a work around for this? Or should I<br>
> > > > > > just go for some other OS?<br>
> > > > ><br>
> > > > > Sorry I don't know the recommended way to build/use a custom kernel<br>
> > > > > in mint.<br>
> > > > ><br>
> > > > > Actually, check /proc/sys/kernel/*user*. Is there something like<br>
> > > > > unpriv_userns_allow? You may be able to just echo 1 > that.<br>
> > > > ><br>
> > > > > -serge<br>
> > > > > _______________________________________________<br>
> > > > > lxc-users mailing list<br>
> > > > > <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> > > > > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> > > ><br>
> > > > > _______________________________________________<br>
> > > > > lxc-users mailing list<br>
> > > > > <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> > > > > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > lxc-users mailing list<br>
> > > > <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> > > > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> > > ><br>
> ><br>
> > > _______________________________________________<br>
> > > lxc-users mailing list<br>
> > > <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> > > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> ><br>
> > _______________________________________________<br>
> > lxc-users mailing list<br>
> > <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> ><br>
<br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>