Ok, somehow the errors are gone (I used) debian host this time but lxc-attach is still not working... :P<div><div><br></div><div># lxc-attach --name test</div><div><br></div><div>lxc-attach: Invalid argument - failed to set namespace 'pid'</div>
<div>lxc-attach: failed to enter the namespace</div></div><div><div><br></div><div># lxc-attach --usage</div><div>Usage: lxc-attach [-n|--name=NAME] [-h|--help] [--usage] [-q|--quiet] </div><div><span class="Apple-tab-span" style="white-space:pre">      </span>[-o|--logfile=LOGFILE] [-l|--logpriority=LOGPRIORITY] </div>
<div><br></div><div><br></div><div class="gmail_quote">On Wed, May 4, 2011 at 11:24 AM, Goran Cetusic <span dir="ltr"><<a href="mailto:goran.cetusic@gmail.com">goran.cetusic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm having problems with lxc 0.7.4 on some (if not all, haven't tested it that thoroughly enough) systems. lxc-execute and lxc-start report I/O errors when starting container with /bin/bash and trying to type. When I exit bash the container seems stopped but the process is still running. If I try to lxc-stop the command hangs. I use the same deboostraped system on every machine. Initially I thought the problem was in the ttys not configured correctly (which could still be part of the problem) but the only apparent difference I found is that it works on lxc 0.6.5 but not on 0.7.4. <div>

<br></div><div>On another note, not starting the lxc-execute or lxc-start command would not be such a big deal if the lxc-attach functionality (this is for another project) worked but after installing the tools and kernel Serge provided at <span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">ppa:serge-hallyn/lxc-natty it says something like</span></div>

<div><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><span style="font-size:13px"><div>
lxc-attach: Function not implemented - failed to set namespace 'pid'</div><div>lxc-attach: failed to enter the namespace</div><div><br></div><div>I also compiled the kernel with the patch myself but the error message is the same.</div>

<div>I'm guessing the lxc-execute problem has something to do with lxc-init process since it's started to manage /bin/bash. Maybe there are no ttys associated? The containers work fine if I start them with lxc-start without any commands (standard init is run). The console login works and there are no I/O errors.</div>

</span></span></font></div>
</blockquote></div><br></div>