[Lxc-users] lxc-execute fails to exec lxc-init

Peter Gillard-Moss pgillard at thoughtworks.com
Tue Mar 27 13:49:17 UTC 2012


On 27 March 2012 12:42, Fajar A. Nugraha <list at fajar.net> wrote:

> IMHO lxc-execute should come with a BIG warning "DON'T USE UNLESS YOU
> REALLY KNOW WHAT YOU'RE DOING!" :P
>

I know this is digression but I wondered if you could expand on this?

Perhaps if I explained our use case and tell me if I'm doing the right
thing?

   1. We create a new container
   2. We want to bootstrap it with a puppet script (apt-get install puppet
   && puppet apply script.pp)

We see two options for this:

   1. lxc-execute
   2. issue a remote ssh command.

To do 2) in an automated fashion we have to automatically authorize the
hosts private key (we do that by simply copying it to
/var/lib/lxc/$host/root/.ssh/authorized_keys).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120327/c2e91b59/attachment.html>


More information about the lxc-users mailing list