Hi,
I have been facing problems getting lxc (more specifically, lxc-attach) to
work on Linux v3.1.0-rc4. When I run lxc-attach, I get the following error:
$ lxc-attach -n foo -- /bin/bash
lxc-attach: No such file or directory - failed to open '/proc/821/ns/pid'
lxc-attach: failed to enter the name
Thanks Daniel!
The linux-3.0 patches don't seem to be working for me unfortunately.
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:
$ lxc-attach -n foo -- /bin/bash
When I run lxc-attach, I get the following error:
lx
h is failing at the point where it calls
setns. Am I doing something wrong here?
By the way, I'm using Ubuntu 8.04, if that makes any difference.
Thanks,
Nikhil
On Thu, Sep 8, 2011 at 8:23 AM, Nikhil Handigol
wrote:
> Thanks Daniel!
>
> The linux-3.0 patches don't seem to be
n foo -- /bin/bash
lxc-attach: Function not implemented - failed to set namespace 'pid'
lxc-attach: failed to enter the namespace
-- Nikhil
On Thu, Sep 8, 2011 at 9:40 AM, Daniel Lezcano wrote:
> On 09/08/2011 06:30 PM, Nikhil Handigol wrote:
> > I just tried running lxc-att
/lib/libc.so.6 (0x7f07210b5000)
libutil.so.1 => /lib/libutil.so.1 (0x7f0720eb2000)
libattr.so.1 => /lib/libattr.so.1 (0x7f0720cad000)
/lib64/ld-linux-x86-64.so.2 (0x7f0721881000)
-/\/
On Thu, Sep 8, 2011 at 10:09 AM, Daniel Lezcano wrote:
> On 09/08/2011 06:48 PM,
is to work)
Thanks,
-/\/
On Thu, Sep 8, 2011 at 1:07 PM, Daniel Lezcano wrote:
> On 09/08/2011 07:12 PM, Nikhil Handigol wrote:
> > It is indeed the case:
> >
> > $ type lxc-attach
> > lxc-attach is /usr/local/bin/lxc-attach
>
> Ok.
>
> Did you specifi
eezer,devices,memory,cpuacct,cpu,debug,cpuset,clone_children
0 0
The cgroup entry is present, but it seems it's unable to open /proc/mounts.
-/\/
On Thu, Sep 8, 2011 at 1:16 PM, Nikhil Handigol
wrote:
> Ah! That was something I had missed. I recompiled lxc with
> the --with-linuxdir op
Is there a way to use lxc to create hierarchical containers?
More specifically, I have my cgroup filesystem mounted on /cgroup. I want to
be able to create a container, say "root", and then create N other
containers, say "c1", "c2",..., "cN", as children of "root". Is there a way
to do it using lx