[lxc-devel] lxc and ganeti integration

Dietmar Maurer dietmar at proxmox.com
Fri May 22 15:38:47 UTC 2009


> > These are definitely very useful features for the integration.
> > Other useful things would be to be able to execute "other" commands
> in
> > the container, for example for shutting it down or providing a
> console
> > inside it (by executing a new shell inside it).
> Oh, Dietmar Maurer did that. It is in a branch called "forker". It did
> some changes because I need to have it optional for another project
> build on top of lxc. Dietmar was supposed to do some cleanup but I
> guess
> he is very busy right now.
> I played with its code and it works well. A daemon is launched by lxc
> in
> the container right before exec'ing '/sbin/init' and communicate with a
> lxc command outside of the container via a fifo.
> So it is very easy to exec a command inside, so you can do 'ps', debug
> your application, netstat or configure the network.

Sorry, I am too busy to work on the code (unfortunately). But the basic code should work besides some small bugs.

> Unfortunately when a application is run instead of a system and the
> 'forker' is enabled, when the application finishes, the container does
> not exit. I am trying to find a way to fix that.
> I will merge the forker branch with the master soon.

wow, great!

- Dietmar


More information about the lxc-devel mailing list