[lxc-users] Unable to mount local dir

Paweł A. Gajda mis at pld-linux.org
Mon Sep 26 10:48:12 UTC 2016


# ls -ld /var/lib/lxd/containers/pld/rootfs
/var/lib/lxd/containers/pld/rootfs/var
/var/lib/lxd/containers/pld/rootfs/var/host
drwxr-xr-x 22 1000000 1000000 4096 Sep 26 12:33
/var/lib/lxd/containers/pld/rootfs
drwxr-xr-x 17 1000000 1000000 4096 Sep 26 10:05
/var/lib/lxd/containers/pld/rootfs/var
drwxr-xr-x  2 1000000 1000000 4096 Sep 26 10:05
/var/lib/lxd/containers/pld/rootfs/var/host




On Mon, Sep 26, 2016 at 12:45 PM, Fajar A. Nugraha <list at fajar.net> wrote:

> On Mon, Sep 26, 2016 at 5:38 PM, Paweł A. Gajda <mis at pld-linux.org> wrote:
>
>> I've added local dir (lxc config device add) to running (unprvileged,
>> default profile) containter and it just works, but after container stop, it
>> cannot start again with "Permission denied - Failed to mount". Any fix?
>>
>> $ lxc start pld
>>  lxc 20160926115846.879 ERROR lxc_utils - utils.c:safe_mount:1692 -
>> Permission denied - Failed to mount /var/lib/lxd/devices/pld/disk.var-host
>> onto /usr/lib64/lxc/rootfs/var/host
>>   lxc 20160926115846.879 ERROR lxc_conf - conf.c:mount_entry:1650 -
>> Permission denied - failed to mount '/ ' on
>>
>
> what do the directory permissions look like? e..g
> ls -ld /var/lib/lxd/containers/pld/rootfs /var/lib/lxd/containers/pld/rootfs/var
> /var/lib/lxd/containers/pld/rootfs/var/host
>
> --
> Fajar
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160926/05bb6688/attachment.html>


More information about the lxc-users mailing list