<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><blockquote type="cite" style="font-family: Menlo-Regular; font-size: 13px;" class=""><blockquote type="cite" class="">but it will have to be idshifted before the start.</blockquote></blockquote><br class=""></div><div class="">So the id shifting will be also done automatically? Once or on each start?</div><div class=""><br class=""></div><div class="">What about the format of the image file? Is there any documentation or samples on this? I assume a dd img with a single partition (e.g. ext4) should be OK?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Todor</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 15. Jun 2018, at 17:50, Christian Brauner <<a href="mailto:christian@brauner.io" class="">christian@brauner.io</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Fri, Jun 15, 2018 at 05:02:50PM +0200, Dr. Todor Dimitrov wrote:<br class=""><blockquote type="cite" class="">Hallo Christian,<br class=""><br class="">do I have to manually perform the loop mount? I thought this was done by the LXC runtime.<br class=""></blockquote><br class="">Yes, the mount is performed. If you have manually prepared an image you<br class="">can do:<br class=""><br class="">lxc.rootfs.path = loop:/path/to/file<br class=""><br class=""><blockquote type="cite" class=""><br class="">What is actually meant by “image file” inside the documentation:<br class=""><br class="">“<br class="">lxc.rootfs.path - specify the root file system for the container. It can be an image file, a directory or a block device. If not specified, the container shares its root file system with the host.<br class="">"<br class=""><br class="">Todor<br class=""><br class=""><blockquote type="cite" class="">On 15. Jun 2018, at 16:39, Christian Brauner <<a href="mailto:christian@brauner.io" class="">christian@brauner.io</a>> wrote:<br class=""><br class="">On Fri, Jun 15, 2018 at 10:28:34AM +0200, Dr. Todor Dimitrov wrote:<br class=""><blockquote type="cite" class="">Hallo,<br class=""><br class="">is it possible to use an image file with “lxc.rootfs.path” for an<br class="">unprivileged container? If possible, is it necessary to have the<br class="">correct file ownerships within the image or are these automatically<br class="">adjusted on start, e.g. on mount.<br class=""></blockquote><br class="">If by image you mean something you can mount on a loop device then yes<br class="">but it will have to be idshifted before the start.<br class=""><br class="">Christian<br class=""><br class=""><blockquote type="cite" class=""><br class="">Thanks in advance,<br class="">Todor<br class=""><br class=""></blockquote><br class=""><br class=""><br class=""><blockquote type="cite" class="">_______________________________________________<br class="">lxc-users mailing list<br class=""><a href="mailto:lxc-users@lists.linuxcontainers.org" class="">lxc-users@lists.linuxcontainers.org</a><br class="">http://lists.linuxcontainers.org/listinfo/lxc-users<br class=""></blockquote><br class="">_______________________________________________<br class="">lxc-users mailing list<br class=""><a href="mailto:lxc-users@lists.linuxcontainers.org" class="">lxc-users@lists.linuxcontainers.org</a><br class="">http://lists.linuxcontainers.org/listinfo/lxc-users<br class=""></blockquote><br class=""></blockquote><br class=""><br class=""><br class=""><blockquote type="cite" class="">_______________________________________________<br class="">lxc-users mailing list<br class=""><a href="mailto:lxc-users@lists.linuxcontainers.org" class="">lxc-users@lists.linuxcontainers.org</a><br class="">http://lists.linuxcontainers.org/listinfo/lxc-users<br class=""></blockquote><br class="">_______________________________________________<br class="">lxc-users mailing list<br class=""><a href="mailto:lxc-users@lists.linuxcontainers.org" class="">lxc-users@lists.linuxcontainers.org</a><br class="">http://lists.linuxcontainers.org/listinfo/lxc-users</div></div></blockquote></div><br class=""></body></html>