[Lxc-users] Creating multiple containers simultaneously

nishant mungse nishantmungse at gmail.com
Tue Nov 29 06:08:19 UTC 2011


Hi Robert,

I also had similar problem but what I did as solution to this problem is, I
wrote simple c program and used a fork to create a new process and then
exec that process and used kill to stop that process and collected all the
pid of the process and used that pid to start the process again.

But the slight problem in this method is the sleep time is required i.e 5
to 6 sec after creating first container but solution to this problem is use
setsid to create new session rather than using the kill method used before.


These are two solution you can try.


Thanks & Regards,
Nishant Mungse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20111129/1af261e1/attachment.html>


More information about the lxc-users mailing list