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

Greg Kurz gkurz at fr.ibm.com
Thu Nov 3 11:25:19 UTC 2011


On Sat, 2011-10-29 at 20:26 +0200, Daniel Lezcano wrote:
> 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'
> 

Hmmm.... strange. It looks like your build tries to link lxc-init
against an already installed (and older) liblxc...

-- 
Gregory Kurz                                     gkurz at fr.ibm.com
Software Engineer @ IBM/Meiosys                  http://www.ibm.com
Tel +33 (0)534 638 479                           Fax +33 (0)561 400 420

"Anarchy is about taking complete responsibility for yourself."
        Alan Moore.





More information about the lxc-devel mailing list