<div dir="ltr">Maybe ship modprobe.d with "options loop max_loop=?"<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 24, 2015 at 5:05 PM, Dietmar Maurer <span dir="ltr"><<a href="mailto:dietmar@proxmox.com" target="_blank">dietmar@proxmox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">> > Looking at source code<br>
> > <a href="https://github.com/lxc/lxc/blob/master/src/lxc/lxc_create.c" target="_blank">https://github.com/lxc/lxc/blob/master/src/lxc/lxc_create.c</a><br>
> ><br>
> > It doesn't do too much thing.<br>
> ><br>
> > I agree with Diemar, I can be easy to implement this in perl.<br>
> ><br>
> > (and possible to use qemu-img to create qcow2 file for example, ceph rbd,<br>
> > ...<br>
> > maybe reuse pve-storage  ? )<br>
><br>
> That is exactly the point -  I want to reuse code from pve-storage.<br>
> I already have a working prototype, but I need to do more tests, especially<br>
> with unprivileged containers ...<br>
<br>
</div></div>OK, here is the final code:<br>
<br>
<a href="https://git.proxmox.com/?p=pve-container.git;a=blob;f=src/PVE/LXCCreate.pm;h=7366be460488fe0cf1266802a43c2dbe332fc31d;hb=5b4657d05eab58d04a41e502c03b7f8f23b60bab" target="_blank">https://git.proxmox.com/?p=pve-container.git;a=blob;f=src/PVE/LXCCreate.pm;h=7366be460488fe0cf1266802a43c2dbe332fc31d;hb=5b4657d05eab58d04a41e502c03b7f8f23b60bab</a><br>
<br>
I implemented the loop mount case as example. Not sure if I miss something, but<br>
this also works with unprivileged containers.<br>
<br>
But loop devices are limited - 7 by default, so that is not really usable.<br>
Is there a way to use more loop devices dynamically?<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Kamil Trzciński<br><br><a href="mailto:ayufan@ayufan.eu" target="_blank">ayufan@ayufan.eu</a><br><a href="http://www.ayufan.eu" target="_blank">www.ayufan.eu</a></div>
</div>