<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 4, 2015 at 6:59 PM, Adam Gold <span dir="ltr"><<a href="mailto:awg1@gmx.com" target="_blank">awg1@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Thank you so much for doing all of that.  I will attempt to follow your<br>
approach and hopefully reproduce the results.<br>
<br>
FYI, I just tried using btrfs and creating containers at the root of a<br>
sub volume in unprivileged mode and that worked just fine.  I guess it's<br>
not surprising that it may be harder with zfs.<br>
<div class=""><div class="h5"></div></div></blockquote><div><br></div><div><br></div><div>... and apparently something as simple as this works as well (run as root)</div><div><br></div><div><div># zfs create rpool/lxc/user/precise</div><div># chown user:user /home/user/.local/share/lxc/precise</div><div># chmod 775 /home/user/.local/share/lxc/precise<br></div><div><br></div></div><div>Note the final chmod. Btrfs subvolume might have that by default, which is why it works for you.</div><div><br></div><div>After that this works fine as "user":</div><div><div>$ lxc-create -n precise -t download</div><div>Setting up the GPG keyring</div><div>Downloading the image index</div></div><div>...</div><div><div>Distribution: ubuntu</div><div>Release: precise</div><div>Architecture: amd64</div><div><br></div><div>Downloading the image index</div><div>Downloading the rootfs</div><div>Downloading the metadata</div><div>The image cache is now ready</div><div>Unpacking the rootfs</div><div><br></div><div>---</div><div>You just created an Ubuntu container (release=precise, arch=amd64, variant=default)</div><div><br></div><div>To enable sshd, run: apt-get install openssh-server</div><div><br></div><div>For security reason, container images ship without user accounts</div><div>and without a root password.</div><div><br></div><div>Use lxc-attach or chroot directly into the rootfs to set a root password</div><div>or create user accounts.</div><div><br></div></div><div>-- </div><div>Fajar</div><div><br></div></div></div></div>