[Lxc-users] Can't execute lxc-execute /bin/bash
Justin Cormack
justin at specialbusservice.com
Tue Apr 12 16:00:47 UTC 2011
On Tue, 2011-04-12 at 12:11 +0100, Justin Cormack wrote:
> On Mon, 2011-04-11 at 18:07 -0500, Serge Hallyn wrote:
> > Quoting Krzysztof Karwacki (krzysiek at motokirc.pl):
> > > Hi!
> > >
> > > I Compiled procfs from lxc sources, but when i want to lxc-execute –n vm0 /bin/bash I’ve got error.
> > >
> > > root at debian:~# lxc-execute -n vm0 /bin/bash
> > > lxc-execute: No such file or directory - failed to exec /usr/lib/lxc/lxc-init
> >
> > Does /usr/lib/lxc/lxc-init exist on the host?
> >
> > When I've played with custom templates based of the ssh template, I've
> > had similar troubles, and I think I usually ended up trying putting
> > lxc-init onto the guest.
>
> You dont need lxc-init on the guest. It is executed before setting the
> filesystem namespace. Looks like /usr/lib/lxc/lxc-init is not
> installed/installed in the wrong place (or wrong permissions?).
Sorry thats completely untrue. I forgot I was bind mounting /lib
and /usr/lib so it was just there, and just ran into the same error when
I didnt. You *do* need /usr/lib/lxc/lxc-init (and the libraries it
needs) inside your guest.
Justin
More information about the lxc-users
mailing list