[lxc-users] apparmor="DENIED" operation="mount" info="failed flags

2018-08-10 Thread Michel Dubé
Hi! I have a dedicated server (ubuntu 18.04) with one BTRFS partition (md4 on RAID1) mounted on /srv/lxd LXD (3.0.1) is installed, BTRFS storage-pools, default profile, nothing has been added or modified and all containers are Ubuntu 18.04. The storage pool is also mounted on that BTRFS

Re: [lxc-users] LXC container and Systemd

2018-08-10 Thread Fajar A. Nugraha
On Fri, Aug 10, 2018 at 5:12 PM, Goran wrote: > Your test-asuser.service works as intended. If I change the user and > group to grafana it shows the same problems. > > # id grafana > uid=207(grafana) gid=207(grafana) groups=207(grafana) > > # cat /etc/passwd > ... >

Re: [lxc-users] LXC container and Systemd

2018-08-10 Thread Goran
Your test-asuser.service works as intended. If I change the user and group to grafana it shows the same problems. # id grafana uid=207(grafana) gid=207(grafana) groups=207(grafana) # cat /etc/passwd ... grafana:x:207:207::/var/lib/grafana:/sbin/nologin ... cat /etc/group ... grafana:x:207: ...

Re: [lxc-users] LXC container and Systemd

2018-08-10 Thread Fajar A. Nugraha
On Fri, Aug 10, 2018 at 4:38 PM, Goran wrote: > Always the same behavior, if the binary is executed as a user > different from root, systemd does not find the binary. > > In this case > > # which bash > /usr/bin/bash > > can't be found by systemd. ExecStart=whatsoever does not work. It > doesn't

Re: [lxc-users] LXC container and Systemd

2018-08-10 Thread Goran
Always the same behavior, if the binary is executed as a user different from root, systemd does not find the binary. In this case # which bash /usr/bin/bash can't be found by systemd. ExecStart=whatsoever does not work. It doesn't matter if it's bash or grafana-server as long the user differs

Re: [lxc-users] LXD move container to another pool ?

2018-08-10 Thread Mark Constable
On 10/08/18 17:20, Pierre Couderc wrote: Note that lxc1 and lxd from snap uses different directories than lxd from package. Sorry for the noise : I use lxd (from sources on debian), and I had not seen that /var/lib/lxc exits but is empty... FWIW /var/lib/lxc != /var/lib/lxd

Re: [lxc-users] LXD move container to another pool ?

2018-08-10 Thread Pierre Couderc
On 08/10/2018 05:27 AM, Fajar A. Nugraha wrote: On Thu, Aug 9, 2018 at 7:57 PM, Pierre Couderc > wrote: On 08/09/2018 11:30 AM, Fajar A. Nugraha wrote: Basically you'd just need to copy /var/lib/lxd and whatever storage backend you use (I use zfs), and