[lxc-users] Unable to mount local dir

Fajar A. Nugraha list at fajar.net
Mon Sep 26 10:45:08 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160926/1186f053/attachment.html>


More information about the lxc-users mailing list