<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-01-15 0:11 GMT+09:00 Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span>:<br></div><div class="gmail_quote"><div><br></div><div><div><div>> cgmanager is an lxc project, so no worries.</div><div><br></div><div>Okay. and thank you for swift response.</div><div><br></div><div>> A few things - first, running cgroup-bin alongside cgmanager is</div><div>probably a bad idea.</div><div><br></div><div>Oh really? It is better to remove either one?</div><div>Another following 2 errors were output before installing these 2 things.</div><div>sshd[4603]: pam_systemd(sshd:session): Failed to create session: No such file or directory </div><div>systemd-logind[2957]: Failed to create cgroup name=systemd:/user/0.user: No such file or directory</div><div>After executing 'apt-get -y install cgroup-bin cgmanager-utils', above 2 errors were removed.</div><div><br></div><div>> Second, on 14.04 after install cgmanager</div><div>> you unfortunately need to 'sudo restart systemd-logind', then</div><div>> log out and log back in (or just ssh localhost) to get a new</div><div>> cgroup.  After that you should be able to create unprivileged containers.</div><div><br></div><div>Now I tried 'sudo restart systemd-logind' and systemd-logind restarted.</div><div>After that I logged out, log back and execute 'reboot'.</div><div>However error log of cgmanager is still written on /var/log/auth.log.</div><div><br></div><div>This error message is written even if I log out before reboot is executed or I execute reboot via control panel which is outside of ubuntu system.</div><div><br></div><div>> The message may be ignorable - the real question is, when you</div><div>> login, do you get a custom cgroup?  What does /proc/self/cgroup</div><div>> show?</div><div><br></div><div>I am sorry. How can I know whether I got a custom cgroup?</div><div>Here is the contents of my /proc/self/cgroup.</div><div><br></div><div>root@myhost:~# cat /proc/self/cgroup</div><div>4:name=systemd:/user/1000.user/c1.session</div><div>3:freezer,devices,name=container:/12042</div><div>2:cpuacct,cpu,cpuset,name=fairsched:/12042</div><div>1:blkio,name=beancounter:/12042</div><div>root@myhost:~#</div><div><br></div><div>I appreciate your help and I apologize for troubling you.</div></div></div><div><br></div></div></div></div>