<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Serge,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">> <span style="font-family:arial,sans-serif;font-size:13px">You give no indication of how you buit and installed it.</span></div>
<div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default" style="font-size:small"><a href="https://www.stgraber.org/2013/12/20/lxc-1-0-your-first-ubuntu-container/" target="_blank">https://www.stgraber.org/2013/12/20/lxc-1-0-your-first-ubuntu-container/</a><br>
</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><quote></div><div class="gmail_default">git clone git://<a href="http://github.com/lxc/lxc" target="_blank">github.com/lxc/lxc</a></div>
<div class="gmail_default">cd lxc</div><div class="gmail_default">sh autogen.sh</div><div class="gmail_default"># You will probably want to run the configure script with --help and then set the paths</div><div class="gmail_default">
./configure</div><div class="gmail_default">make</div><div class="gmail_default">sudo make install</div><div class="gmail_default"></quote></div><div><br></div></div><div class="gmail_default" style="font-size:small">
It was necessary to run 'ldconfig' and install 'debootstrap', then:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">sudo lxc-create -t ubuntu -n p1<br></div>
<div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default"><span style="font-family:arial,sans-serif;font-size:13px">> The easiest </span><span style="font-family:arial,sans-serif;font-size:13px">way to build from git reliably is to grab the debian/ tree from the</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">> lxc package </span><br></div><div class="gmail_default"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default">
<span style="font-family:arial,sans-serif;font-size:13px">Where can I </span><span style="font-family:arial,sans-serif;font-size:13px">grab this debian/ tree</span><span style="font-family:arial,sans-serif;font-size:13px"> ?</span></div>
<div class="gmail_default"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default"><a href="https://github.com/lxc/lxc" target="_blank">https://github.com/lxc/lxc</a> has 3 branches: 'master', 'stable-0.74' and 'stable-1.0'<br>
</div><div class="gmail_default"><br></div><div class="gmail_default"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default"><span style="font-family:arial,sans-serif;font-size:13px">> </span><span style="font-size:13px;font-family:arial,sans-serif">and copy it under the git tree, then run </span><span style="font-size:13px;font-family:arial,sans-serif">debian/rules build</span></div>
<div class="gmail_default"><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div class="gmail_default"><span style="font-size:13px;font-family:arial,sans-serif">I got </span><font face="arial, sans-serif"><a href="https://linuxcontainers.org/downloads/lxc-1.0.3.tar.gz" target="_blank">https://linuxcontainers.org/downloads/lxc-1.0.3.tar.gz</a></font></div>
<div class="gmail_default"><font face="arial, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, sans-serif">There is no such '</font><span style="font-family:arial,sans-serif;font-size:13px">debian/rules'</span></div>
<div class="gmail_default"><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-size:small">
> <span style="font-family:arial,sans-serif;font-size:13px">might try 'ps -ef' on the host and see if the only things running in</span></div><span style="font-family:arial,sans-serif;font-size:13px"><div class="gmail_default" style="font-size:small;display:inline">
> </div>the container are 3 or 4 tasks including mountall.</span><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><div>$ ps -ef | wc -l</div><div>227</div><div>$ ps -ef | grep mount</div>
<div>phiho 1792 1298 0 13:15 pts/0 00:00:00 grep mount</div><div><br></div><div><div class="gmail_default" style="font-size:small">I don't quite understand <span style="font-size:13px"> "</span><span style="font-size:13px">the only things running in</span><div class="gmail_default" style="display:inline">
</div><span style="font-size:13px">the container are 3 or 4 tasks".</span></div></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px">The container cannot be started:</span></div><div class="gmail_default" style="font-size:small">
<span style="font-size:13px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px"><div class="gmail_default" style="font-size:small">$ sudo lxc-ls</div><div class="gmail_default" style="font-size:small">
p1</div><div><span style="font-size:small">$ sudo lxc-start -n p1 -d</span><br></div></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px"><div class="gmail_default" style="font-size:small">
lxc-start: command get_cgroup failed to receive response</div><div><span style="font-size:small">$ sudo lxc-info -n p1</span><br></div></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px"><div class="gmail_default" style="font-size:small">
Name: p1</div><div class="gmail_default" style="font-size:small">State: STOPPED</div><div><br></div><div>Best regards,</div><div><br></div><div>PhiHo</div><div><br></div></span></div></font></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 27, 2014 at 9:40 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"><div class="">Quoting Phiho Hoang (<a href="mailto:hohoangphi@gmail.com">hohoangphi@gmail.com</a>):<br>
> Dear List,<br>
><br>
> I got this problem with lxc built from git source code, cloned May 25.<br>
<br>
</div>You give no indication of how you buit and installed it. The easiest<br>
way to build from git reliably is to grab the debian/ tree from the<br>
lxc package and copy it under the git tree, then run<br>
debian/rules build<br>
fakeroot debian/rules binary<br>
<br>
and install the resulting binaries.<br>
<br>
might try 'ps -ef' on the host and see if the only things running in<br>
the container are 3 or 4 tasks including mountall. That would suggest<br>
there is a filesystem which isn't being pre-mounted for the container,<br>
which mountall then tries to mount (and is denied).<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div><br></div>