Quoting Michael H. Warfield ([email protected]): > > > It seems to me that a little extension to lxc-create which creates > > > the container inside a loopback fs would be pretty neat. > > > > Wouldn't simply adding the rootfs to the fstab conf with the file system > > image and the "-o loop" option do it? I would think it would. I > > haven't tried it in lxc but I do it all the time just for general > > mounting and day to day work. > > So this is an excerpt from one of my LXC VM's fstab (I normally use an > explicit bind mount for them): > > /srv/lxc/private/1004 /srv/lxc/rootfs none bind 0 0 > > Now... Wouldn't this work as well? Untested: > > /srv/lxc/private/disk.image /srv/lxc/rootfs none loop 0 0 > > Seems to me that if the bind option works the loop option should as > well.
Right, for using the container. lxc-create would presumably need a loving touch to make it mount that before doing debootstrap or whatever -serge ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Lxc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-users
