[Lxc-users] Can't execute lxc-execute /bin/bash
Justin Cormack
justin at specialbusservice.com
Tue Apr 12 11:11:57 UTC 2011
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?).
Justin
More information about the lxc-users
mailing list