Thanks Daniel!<div><br></div><div>The linux-3.0 patches don't seem to be working for me unfortunately. </div><div><br></div><div>I compiled lxc-0.7.5 with the patched linux-3.0. After starting a container "foo" via lxc-execute,I ran the following command:</div>
<div>$ lxc-attach -n foo -- /bin/bash</div><div><br></div><div>When I run lxc-attach, I get the following error:</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">lxc-attach: Function not implemented - failed to set namespace 'pid'<br>
lxc-attach: failed to enter the namespace</span></div><div><br></div><div>Upon more probing into the errno, I found:</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">errno = 38</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">strerror says: Function not implemented</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><div>
<span style="display: block; float: left; color: rgb(136, 136, 136); ">  </span></div></span></div><div><br></div><div>The required ns files do seem to be present in /proc/<pid>/ns:</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">$ ls /proc/28559/ns/<br>
ipc mnt net pid user uts</span></div><div><br></div><div>I also double-checked that all the setns patches were properly applied to the kernel:</div><div><div>$ quilt top</div><div>0016-ns-proc-Enable-setns-for-support-for-the-pid-namespa.patch</div>
</div><div><br></div><div>I'd appreciate any help in fixing this error.</div><div><br></div><div>Thanks,</div><div>Nikhil<br>
<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 6:55 AM, Matteo Bernardini <span dir="ltr"><<a href="mailto:matteo.bernardini@gmail.com">matteo.bernardini@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 class="im">> <a href="http://lxc.sourceforge.net/patches/linux/3.0.0/3.0.0-lxc1/" target="_blank">http://lxc.sourceforge.net/patches/linux/3.0.0/3.0.0-lxc1/</a><br>
<br>
</div>I've done a quick try of the patches with linux-3.0.4 with lxc-0.7.5,<br>
slackware64-13.37 and my existing containers and I'm able to turn them<br>
off easily with<br>
<br>
lxc-attach -n mycontainer -- /sbin/halt<br>
<br>
\o/<br>
<br>
I'll test them more, but in the meantime thanks Daniel!<br>
<font color="#888888"><br>
Matteo<br>
</font><div><div></div><div class="h5"><br>
------------------------------------------------------------------------------<br>
Using storage to extend the benefits of virtualization and iSCSI<br>
Virtualization increases hardware utilization and delivers a new level of<br>
agility. Learn what those decisions are and how to modernize your storage<br>
and backup environments for virtualization.<br>
<a href="http://www.accelacomm.com/jaw/sfnl/114/51434361/" target="_blank">http://www.accelacomm.com/jaw/sfnl/114/51434361/</a><br>
_______________________________________________<br>
Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
</div></div></blockquote></div><br></div>