Quoting Fajar A. Nugraha (l...@fajar.net): > On Tue, Mar 27, 2012 at 6:16 PM, Peter Gillard-Moss > <pgill...@thoughtworks.com> wrote: > > Hello, > > > > I wondered if you could help. > > > > I have installed lxc-init from the Ubuntu package repos for both Natty and > > Oneiric and both fail on lxc-execute with the same error. > > > > Versions used are 0.7.4-0ubuntu7.2 (Natty) and 0.7.5-0ubuntu8.5 (Oneiric) > > > > I wondered if you could help me understand what I am doing wrong? > > > > I start by creating a container: > > sudo lxc-create -n test -t natty -f /etc/lxc/lxc.conf > > > > I then run lxc-execute like so: > > sudo lxc-execute --name test 'echo "Hello"' > > And I get the following response: > > lxc-execute: No such file or directory - failed to exec > > /usr/lib/lxc/lxc-init > > lxc-execute: invalid sequence number 1. expected 2 > > lxc-execute: failed to spawn 'test' > > IMHO lxc-execute should come with a BIG warning "DON'T USE UNLESS YOU > REALLY KNOW WHAT YOU'RE DOING!" :P
Agreed. It also might help to build a statically linked version of lxc-init. Ubuntu and Debian in any case could stand to ship a package containing only a statically linked lxc-init, perhaps called 'lxc-execute-guest' or something. > Anyway, to answer you question, if you want to use lxc-execute, you > need to have lxc installed in the guets container as well. To be > accurate, you need /usr/lib/lxc/lxc-init inside the guest container. > > "lxc-create" does NOT install lxc in guest container because it's not > needed for "nornal" operation (e.g. lxc-start). > > -- > Fajar > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Lxc-users mailing list > Lxc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-users ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users