<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 23, 2015 at 3:51 PM, WANG Cheng D <span dir="ltr"><<a href="mailto:Cheng.d.Wang@alcatel-sbell.com.cn" target="_blank">Cheng.d.Wang@alcatel-sbell.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div lang="ZH-CN" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Dear team,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Can you tell me how to self-build a Ubuntu container image?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I have installed a big application inside the container and the installation process is quite time-consuming. I want to distribute this container to multiple machines and the best way is to create a self-built lxc image,
 so that I needn’t to install the application again and again on different machines.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">How can I achieve this?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u></span></p></div></div></blockquote><div><br></div><div>From the list archive: <a href="https://lists.linuxcontainers.org/pipermail/lxc-users/2014-December/008128.html">https://lists.linuxcontainers.org/pipermail/lxc-users/2014-December/008128.html</a></div><div><br></div><div>Of course, if your requirement is as simple as "I want to clone this container in a similar way that virtualbox/vmware can export OVA", you can simply create an image (e.g. compressed tar file) of your container directory (e.g. /var/lib/lxc/app1), then copy-and-extract it on the other machines.</div><div><br></div><div>If you use the default lxcbr0 for the container, then you should be all set, no need to change anything.</div><div><br></div><div>If the containers are bridged to your LAN, then at the minimum you need to change its mac address (on the container config file).</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>