[lxc-devel] [PATCH 0/3] The poor man's attach

Daniel Lezcano daniel.lezcano at free.fr
Sat Oct 29 18:26:20 UTC 2011


On 10/26/2011 05:13 PM, Greg Kurz wrote:
> Often people want to launch a command in an already
> running container. This can be achieved with the lxc-attach
> command, provided you have a patched kernel with full
> setns() support.
>
> For those who won't rebuild a kernel, we introduce
> the lxc-rexec command to be used in place of
> lxc-attach. The principle is to embed a minimal
> unix socket server in lxc-init that launch commands when
> asked to by a lxc-rexec client.
>
> For the moment, this feature only works for application
> containers started with lxc-execute. Some more work
> would be needed to have something similar for system
> containers (and by the way, system containers with network
> support may rely on rsh-like services to do the trick).
>
> The first two patches add a mainloop and logging features
> to lxc-init, and the last patch brings lxc-rexec.
>

Hi Greg,

I successfully applied the patches, but the compilation fails with:

/home/dlezcano/work/src/lxc/src/lxc/lxc_init.c:164: undefined reference
to `lxc_error_set_and_log_siginfo'
/home/dlezcano/work/src/lxc/src/lxc/lxc_init.c:193: undefined reference
to `lxc_error_set_and_log_siginfo'






More information about the lxc-devel mailing list