[lxc-users] lxd build failure

2018-08-10 Thread Pierre Couderc
Sorry : lxd build failure On 08/11/2018 08:37 AM, Pierre Couderc wrote: Trying to build lxd from sources, I get a message about sqlite3 missing, and an invite to "make deps". But it fails too with : No package 'sqlite3' found Consider adjusting the PKG_CONFIG_PATH environment variable if y

[lxc-users] lxc build failure

2018-08-10 Thread Pierre Couderc
Trying to build lxd from sources, I get a message about sqlite3 missing, and an invite to "make deps". But it fails too with : No package 'sqlite3' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set

[lxc-users] Containers won't start under stretch-backport kernel reboot

2018-08-10 Thread Tony Lewis
I have been running LXD/LXC on a stock Debian Stretch kernel(4.9.0-7-amd64), and it's working fine.  But it's beneficial for me to go to the Stretch Backports (4.17.0-0.bpo.1-amd64). When I do, my container's won't start until I forcefully kill the LXD daemon and restart the service. Details

[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 partitio

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 > ... > grafana:x:207:207::/var/lib/gr

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 fr

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