<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 15, 2014 at 4:29 PM, TuxRaiderPen <span dir="ltr"><<a href="mailto:tuxraiderpen@wpascanner.com" target="_blank">tuxraiderpen@wpascanner.com</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 class="">On Monday, May 12, 2014 06:59:48 Fajar A. Nugraha wrote:<br>
><br>
> It's a way to make creating containers easier.<br>
<br>
</div>That part I get... I am just not wrapping my head around the creation and<br>
especially the use of "preconfigured ones."<br>
<br>
Or really the creation provess... v. VMDK in a full VM.<br>
<div class=""><br></div></blockquote><div><br></div><div><br></div><div>Practice makes perfect.</div><div><br></div><div>Just try creating some containers using template to get the hang of it.</div><div> </div><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 class="">
> If you're using newish ubuntu/debian container (no, natty is not among<br>
> those), then using the download templates as in<br>
> <a href="https://www.stgraber.org/2014/01/17/lxc-1-0-unprivileged-containers/" target="_blank">https://www.stgraber.org/2014/01/17/lxc-1-0-unprivileged-containers/</a><br>
> would've been faster.<br>
<br>
</div>Like this... I've seen several listings of "download this, "<br>
<br>
OK.. what do I do with this arhcive of a "container"<br>
<br>
I am used to throwing an ISO at a VM or a VMDK that I move around and throw at<br>
the VM and POOF instant new x VM...<br>
<div class=""><div class="h5"><br></div></div></blockquote><div><br></div><div><br></div><div>If you have up-to-date lxc installed, use one of either (the first one is faster):</div><div><br></div><div>lxc-create -t download -n p1 -- -d ubuntu -r trusty -a amd64<br>
</div><div><div>lxc-create -t ubuntu -n p1 -- -r trusty -a amd64<br></div></div><div><br></div><div>and POOF, new ubuntu trusty container :)</div><div><br></div><div>The first time will not be "instant", but ubuntu will cache the rootfs (/var/cache/lxc) so that subsequent container creation of the same distro/version is much master.</div>
<div><br></div><div>an even MUCH faster process (doesn't involve copying the files) currectly requires some manual setup, as it requires either:</div><div>- creating an overlay mount, plus some minimal config customization, or</div>
<div>- snapshot/clone using an appropriate backing store (e.g. zfs/btrfs), lus some minimal config customization</div><div><br></div><div>-- </div><div>Fajar</div><div><br></div><div><br></div><div><br></div><div><br></div>
</div></div></div>