<div dir="auto">It's really a good question and I expect some real expert explain it. <div dir="auto"><br></div><div dir="auto">I did it from scratch before ,basically I copied file from /,ignore files like device nodes, sockets, and do debugging if needed .</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017年4月26日 下午10:40,"Spike" <<a href="mailto:spike@drba.org">spike@drba.org</a>>寫道:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">yeah I've seen that link before and used the lxd image publish / export approach (it's what I'm doing right now in fact). However that post isn't very clear on what it takes to start from scratch. There is a section on "Manually building an image", but the critical step (2), says: "Configure anything that’s needed for the distribution to work properly in a container (if anything is needed)." and that's really what I'm asking here.<div><br></div><div>Because I have everything set up with a fair amount of "magic" to pxe boot and configure bare metal and KVM instances, I'd like to use that process and avoid having to write more to create the rootfs.</div><div><br></div><div>So maybe a better question would be, given a qcow2 (or raw) image created with kvm, what are the necessary steps to convert that so that it can be used inside a container? that said having the same steps starting from debootstrap could be handy.</div><div><br></div><div>hope that clarifies my intention and situation.</div><div><br></div><div>thanks,</div><div><br></div><div>Spike</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Apr 26, 2017 at 7:17 AM Matlink <<a href="mailto:matlink@matlink.fr" target="_blank">matlink@matlink.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p><a class="m_-2576651914140253440m_5963014636129474660moz-txt-link-freetext" href="https://stgraber.org/2016/03/30/lxd-2-0-image-management-512/" target="_blank">https://stgraber.org/2016/03/<wbr>30/lxd-2-0-image-management-<wbr>512/</a><br>
</p></div><div bgcolor="#FFFFFF" text="#000000">
<br>
<div class="m_-2576651914140253440m_5963014636129474660moz-cite-prefix">Le 26/04/2017 à 16:15, Spike a écrit :<br>
</div>
</div><div bgcolor="#FFFFFF" text="#000000"><blockquote type="cite">
<div dir="ltr">Dear all,
<div><br>
</div>
<div>long story short, I'd love to roll my own image starting
from a standard mini.iso, ie not a cloud image (happy to
expand on the reasoning if there's interest, but otherwise
keeping it short).</div>
<div><br>
</div>
<div>can somebody provide a list of steps in order to achieve
that?</div>
<div><br>
</div>
<div>thanks,</div>
<div><br>
</div>
<div>Spike</div>
</div>
<br>
<fieldset class="m_-2576651914140253440m_5963014636129474660mimeAttachmentHeader"></fieldset>
<br>
</blockquote></div><div bgcolor="#FFFFFF" text="#000000"><blockquote type="cite"><pre>______________________________<wbr>_________________
lxc-users mailing list
<a class="m_-2576651914140253440m_5963014636129474660moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.<wbr>linuxcontainers.org</a>
<a class="m_-2576651914140253440m_5963014636129474660moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
</div>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></blockquote></div>
<br>______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a><br></blockquote></div></div>