<div dir="ltr">Look into: --bdev options<div><br></div><div>Looking into sources I see (<a href="https://github.com/lxc/lxc/blob/master/src/lxc/bdev.c">https://github.com/lxc/lxc/blob/master/src/lxc/bdev.c</a>):</div><div>
<p class=""><span class="">static const struct </span><span class="">bdev_ops</span><span class=""> dir_ops = {</span></p>
<p class=""><span class="">static const struct </span><span class="">bdev_ops</span><span class=""> zfs_ops = {</span></p>
<p class=""><span class="">static const struct </span><span class="">bdev_ops</span><span class=""> lvm_ops = {</span></p>
<p class=""><span class="">static const struct </span><span class="">bdev_ops</span><span class=""> btrfs_ops = {</span></p><p class=""><span class="">static const struct </span><span class="">bdev_ops</span><span class=""> loop_ops = {</span></p>
<p class=""><span class="">static const struct </span><span class="">bdev_ops</span><span class=""> overlayfs_ops = {</span></p>
<p class=""><span class="">static const struct </span><span class="">bdev_ops</span><span class=""> aufs_ops = {</span></p>
<p class=""><span class="">static const struct </span><span class="">bdev_ops</span><span class=""> nbd_ops = {</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">
</span></p><p class=""><span class="">lxc-create -t debian -n test-loop-5 -B loop --fstype ext3 --fssize 1G</span></p><p class="">It should create: /var/lib/lxc/test-loop-5/rootdev</p><p class=""><br></p><p class="">Kamil</p><p class=""><br></p><p class=""><span class=""><br></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 23, 2015 at 5:55 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"><span class=""><br>
<br>
> Just found a new here about lxc 1.1:<br>
><br>
> <a href="https://linuxcontainers.org/fr/lxc/news/" target="_blank">https://linuxcontainers.org/fr/lxc/news/</a><br>
><br>
><br>
><br>
</span>> * core: Add support for qcow2 images (through qemu-img)<br>
<span class="">><br>
> so, maybe disk quota is possible ? (size of qcow2)<br>
<br>
</span>Does somebody have an example howto use that?<br>
<br>
I tried:<br>
<br>
# qemu-image create test.img 4G<br>
# mkfs.ext4 test.img<br>
<br>
but what arguments do we need to pass to lxc-create?<br>
<br>
# lxc-create -n test -t debian ????<br>
<br>
any hints?<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
pve-devel mailing list<br>
<a href="mailto:pve-devel@pve.proxmox.com">pve-devel@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel</a><br>
</div></div></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>