<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 4, 2014 at 6:04 PM, Marcel Sánchez Toledano <span dir="ltr"><<a href="mailto:marcelsanchezt@gmail.com" target="_blank">marcelsanchezt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Partially yes. Thanks for that.<div><br></div><div>Maybe is a bit offtopic, but.. Do you know any manual or website where I can found information about creating a image file with BRTFS?</div>
</div></blockquote><div><br></div><div>have you ever created an image file with ANY filesystem?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div> I have tried with no luck...</div>

<div><br></div></div></blockquote><div><br></div><div>What have you tried?</div><div><br></div><div>The generic method would be</div><div>- create a file with appropriate size (truncate, dd, whatever)</div><div>- mkfs (e.g mkfs.btrfs, mkfs.ext4, whatever)</div>
<div>- mount -o loop ...</div><div>- fill the mounted fs (debootstrap, rsync, whatever)</div><div><br></div><div>If your question is "how to create a rootfs image suitable for lxc", then the easiest method is to simply use lxc templates to create directory-backed container, and then copy the files to the image.</div>
<div><br></div><div>-- </div><div>Fajar</div></div></div></div>