I’m trying to add a directory on my host to the container:
lxc.mount.entry = /media/adrian/250/graphics home/ubuntu/graphics_shared none bind,ro,create=dir
Unlike the various other directories, this one however errors out:
lxc-start gbox 20171024182154.271 ERROR lxc_utils - utils.c:safe_mount:1739 - Permission denied - Failed to mount /media/adrian/250/graphics onto /usr/lib/x86_64-linux-gnu/lxc/home/ubuntu/graphics_shared lxc-start gbox 20171024182154.271 ERROR lxc_conf - conf.c:mount_entry:1854 - Permission denied - Failed to mount "/media/adrian/250/graphics" on "/usr/lib/x86_64-linux-gnu/lxc/home/ubuntu/graphics_shared"
I have no idea why the script thinks that
/usr/lib/x86_64-linux-gnu/lxc/ is the root. As I said, the other mounts all seem to work fine and end up in the right place.
Any suggestions welcome!