[Lxc-users] how to execute multiple programs which reside in different containers concurrently

Masood Mortazavi masoodmortazavi at gmail.com
Tue Jun 25 23:05:31 UTC 2013


You can also set up a passphrase less ssh identity on your control machine
and propagate this identity as trusted identity to all the LXCs. Once
you've done this, you can use parallel-ssh to execute concurrent commands.

Masood


On Tue, Jun 25, 2013 at 6:55 AM, Robin Monjo <robin.monjo at applidget.com>wrote:

> Hello,
>
> You can execute your program using chroot from the host :
>
> sudo chroot <rootfs_of_the_container> /bin/bash -c 'the command that will
> launch your program'
>
>
>
> On Jun 25, 2013, at 3:45 PM, "ZHANG, Benlong" <zhangbl at act.buaa.edu.cn>
> wrote:
>
> > Hi all,
> >     As the title shows, I have got 16 LXC containers prepared, and
> inside each container resides the same program
> > I wanna execute. But as the command lxc-execute can not run in
> background, I can not start the programs concurrently
> > with a SHELL script. So how can I get the 16 programs run concurrently?
> >
> > Thanks.
> > ----------------------------------------------------
> > Benlong Zhang, Beihang University, Beijing China
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Windows:
> >
> > Build for Windows Store.
> >
> > http://p.sf.net/sfu/windows-dev2dev
> > _______________________________________________
> > Lxc-users mailing list
> > Lxc-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/lxc-users
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130625/05708bc4/attachment.html>


More information about the lxc-users mailing list