On Mon, Sep 26, 2016 at 5:38 PM, Paweł A. Gajda <[email protected]> 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
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to