Re: [lxc-users] using cgroups

2016-06-30 Thread rob e
On 01/07/16 10:58, Serge E. Hallyn wrote: Quoting rob e (redger...@yahoo.com.au): thanks Serge, I tried that. Same result. Additionally, even when I comment out the CPU controls, leaving only Memory limits, it still fails. To confirm, I have 3 uses for cgroups - 1) Resource control on CPU, Me

[lxc-users] Error updating certificates when a directory is bind mounted

2016-06-30 Thread Luis Michael Ibarra
Hi everyone, I got the following error when I tried to install a package(via apt) which requires to install/update its certificates on a lxd container which it has a host directory bind mounted. $lxc config device add $container data disk source=/path/to/external_usb_disk path=/tmp/ ---

Re: [lxc-users] using cgroups

2016-06-30 Thread rob e
On 01/07/16 10:58, Serge E. Hallyn wrote: Quoting rob e (redger...@yahoo.com.au): thanks Serge, I tried that. Same result. Additionally, even when I comment out the CPU controls, leaving only Memory limits, it still fails. To confirm, I have 3 uses for cgroups - 1) Resource control on CPU, Me

Re: [lxc-users] using cgroups

2016-06-30 Thread Serge E. Hallyn
Quoting rob e (redger...@yahoo.com.au): > On 30/06/16 11:35, Serge E. Hallyn wrote: > >On Thu, Jun 30, 2016 at 11:24:25AM +1000, Rob wrote: > >>On 30/06/2016 10:36 AM, Serge E. Hallyn wrote: > >>>Quoting Rob Edgerton (redger...@yahoo.com.au): > >Oh, ok. I'm sorry, this should have been obvious to

Re: [lxc-users] using cgroups

2016-06-30 Thread rob e
On 30/06/16 11:35, Serge E. Hallyn wrote: On Thu, Jun 30, 2016 at 11:24:25AM +1000, Rob wrote: On 30/06/2016 10:36 AM, Serge E. Hallyn wrote: Quoting Rob Edgerton (redger...@yahoo.com.au): Oh, ok. I'm sorry, this should have been obvious to me from the start. You need to edit /etc/pam.d/comm

Re: [lxc-users] Accessing lxd containers?

2016-06-30 Thread Craig Tataryn
Hmm, iptables magic tends to work for me. Here's what I did to forward SSL traffic to one of my containers. sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j DNAT --to 10.0.3.115:443 Craig On Thu, Jun 30, 2016 at 10:33 AM, Kim C. Callis wrote: > When I did lxc containers, I tend

[lxc-users] Accessing lxd containers?

2016-06-30 Thread Kim C. Callis
When I did lxc containers, I tended to just put a container directly on the LAN and call it a day. With my lxd container i would like to access via lxdbr0 and just access ports as needed. I thought that my forwarding and iptables magic, I would be good to go... I was wrong! So what is the magic of

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Benoit GEORGELIN - Association Web4all
Thanks for the information but it dosen't work for me with btrfs It correctly set the value on btrfs limit but no changes inside the container lxc config device set benltsp root size 10GB btrfs qg show -r -e /var/lib/lxd/containers/ -p -c|grep 443 0/443 9.01GiB 8.74GiB 10.00GiB 10.00GiB ---

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread McDonagh, Ed
From https://www.stgraber.org/2016/03/26/lxd-2-0-resource-control-412/ lxc config device set my-container root size 20GB Works with ZFS and BTFS From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf Of Benoit GEORGELIN - Association Web4all Sent: 30 June 2016 15:20 To:

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Benoit GEORGELIN - Association Web4all
Yes, I have to idea in mind. 1- Using ZFS I have to try how it looks with LXD/LXC. I wanted to give a try to btrfs . With ZFS , are you using quotas ? Can you tell me what "df -h" looks into your container ? With btrfs , the container see the disk size of the host, so you don't know how much

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Sjoerd
On 30/06/2016 15:50, Benoit GEORGELIN - Association Web4all wrote: Yesterday I tried the kernel:v4.6.3-yakkety The command "lxc stop container" totaly crash the system . Hard reboot mandatory With v4.5.7-yakkety so far, everything looks fine, including the quota. But after what I read about b

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Benoit GEORGELIN - Association Web4all
Yesterday I tried the kernel:v4.6.3-yakkety The command "lxc stop container" totaly crash the system . Hard reboot mandatory With v4.5.7-yakkety so far, everything looks fine, including the quota. But after what I read about btrfs, I'll find another FS for production system ready because I n

Re: [lxc-users] audit and LXC guests

2016-06-30 Thread Michele Giacomoli
Thank you Serge Il 30/06/2016 15:34, Serge E. Hallyn ha scritto: On Thu, Jun 30, 2016 at 01:06:17PM +0200, Michele Giacomoli wrote: Hi, I'd like to setup auditd inside an unprivileged container running Ubuntu 14.04. Tried installing auditd package but nothing being logged. Trying /etc/init.d/a

Re: [lxc-users] audit and LXC guests

2016-06-30 Thread Serge E. Hallyn
On Thu, Jun 30, 2016 at 01:06:17PM +0200, Michele Giacomoli wrote: > Hi, > > I'd like to setup auditd inside an unprivileged container running > Ubuntu 14.04. Tried installing auditd package but nothing being > logged. Trying /etc/init.d/auditd start I get: > > * Starting audit daemon auditd >

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Sjoerd
On 30/06/2016 12:03, Tomasz Chmielewski wrote: "out of space" when doing snapshot affects kernels older than 4.6, no matter if you use RAID-1, RAID-5/6, or no RAID. It's especially annoying especially when snapshotting running containers with postgres, mysql, mongo etc. - as this causes datab

[lxc-users] audit and LXC guests

2016-06-30 Thread Michele Giacomoli
Hi, I'd like to setup auditd inside an unprivileged container running Ubuntu 14.04. Tried installing auditd package but nothing being logged. Trying /etc/init.d/auditd start I get: * Starting audit daemon auditd ...fail! auditd package is installed also in lxc host (Ubuntu 14.04 too) and

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Tomasz Chmielewski
On 2016-06-30 18:55, Sjoerd wrote: On 30/06/2016 11:17, Tomasz Chmielewski wrote: Please note that btrfs is not a stable filesystem, at least not in the latest Ubuntu (16.04). You may have "out of space" errors with them, especially when doing snapshots. kernels 4.6.x[1] behave stable for m

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Sjoerd
On 30/06/2016 11:17, Tomasz Chmielewski wrote: Please note that btrfs is not a stable filesystem, at least not in the latest Ubuntu (16.04). You may have "out of space" errors with them, especially when doing snapshots. kernels 4.6.x[1] behave stable for me. I am not using RAID5/6 with b

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Tomasz Chmielewski
On 2016-06-30 17:38, Sjoerd wrote: On 29/06/2016 20:02, Benoit GEORGELIN - Association Web4all wrote: Hi, (without hijacking another thread) I'm sharing with you some information about BTRFS and Ubuntu 15.10, Kernel 4.2.0-30-generic regarding a quota disk error on my LXC containers If you plan

Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

2016-06-30 Thread Sjoerd
On 29/06/2016 20:02, Benoit GEORGELIN - Association Web4all wrote: Hi, (without hijacking another thread) I'm sharing with you some information about BTRFS and Ubuntu 15.10, Kernel 4.2.0-30-generic regarding a quota disk error on my LXC containers If you plan tu use quota, this will be intere