I would like to create my containers to share a single rootfs directory.
I create a master container using lxc-create using my variation of the ubuntu
template and my config file. I also install additional programs into the
rootfs.
At this point, I have a program using liblxc which does the work of starting
the containers.
The program reads the master container config into a struct lxc_conf. It makes
changes to the NIC hwaddrs to make them unique, but otherwise the config is
left unchanged. The program then calls lxc_start to execute the program that
needs to run in the container. A large number of containers are started like
this. The only issue I have is you cannot have more than one lxc_start active
until the container is running. So, start them serially. Additionally, I
needed to set lxc.console=none, which is what I wanted anyway. And, for some
reason, you need to have a /var/lib/lxc/containername directory.
So, are there any problems that might arise doing it this way?
Regards.
Mark K Vallevand mark.vallev...@unisys.com<mailto:mark.vallev...@unisys.com>
May you live in interesting times, may you come to the attention of important
people and may all your wishes come true.
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users