[lxc-users] lxd-client: frequent "Unable to connect to"

2016-01-26 Thread Tomasz Chmielewski
I'm using lxd-client in a lxd container. Unfortunately, very frequently I'm getting "Unable to connect to" (after several seconds of "hanging"), for example: # lxc list error: Get https://10.0.3.1:8443/1.0/containers?recursion=1: Unable to connect to: 10.0.3.1:8443 I've checked with tcpdump

Re: [lxc-users] lxd-client: frequent "Unable to connect to"

2016-01-26 Thread Jäkel , Guido
Dear Tomasz, What's the output of watch -n 1 cat /proc/sys/kernel/random/entropy_avail around blocking or hanging times? >-Original Message- >From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf >Of Tomasz Chmielewski >Sent: Tuesday, January 26, 2016

[lxc-users] Lxc container, add custom route

2016-01-26 Thread florian leparoux
Hello, I try to setup a custom route for my CT. I've add the route-eth0 file with my route but this file is ignored because the ifcfg-eth0 doesn't exist. The CT ip is set by the config file: lxc.network.ipv4 So, can we add a lxc.network.ipv4.route? Regards, T1loc __

[lxc-users] Could not find writable mount point for cgroup hierarchy 8 while trying to create cgroup

2016-01-26 Thread John Lewis
root@thunderguard:/home/diskimg/lxc# lxc-start -n rosxubuntu lxc-start: Could not find writable mount point for cgroup hierarchy 8 while trying to create cgroup. lxc-start: failed creating cgroups lxc-start: failed to spawn 'rosxubuntu' lxc-start: The container failed to start. lxc-start: Additiona

[lxc-users] Could not find writable mount point for cgroup hierarchy 8 while trying to create cgroup

2016-01-26 Thread John Lewis
root@thunderguard:/home/diskimg/lxc# lxc-start -n rosxubuntu lxc-start: Could not find writable mount point for cgroup hierarchy 8 while trying to create cgroup. lxc-start: failed creating cgroups lxc-start: failed to spawn 'rosxubuntu' lxc-start: The container failed to start. lxc-start: Additiona

[lxc-users] Does memory limit affects file system cache?

2016-01-26 Thread Eax Melanhovich
Hello. Lets say I would like to test how PostgreSQL behaves under some circumstances in particular when some table does not fit into memory. The problem is I have 16 Gb of RAM so to test this I have to create quite a large table. Can I just set: lxc.cgroup.memory.limit_in_bytes = 1024M ... inste

Re: [lxc-users] Does memory limit affects file system cache?

2016-01-26 Thread Wolfgang Bumiller
> On January 26, 2016 at 2:21 PM Eax Melanhovich wrote: > > > Hello. > > Lets say I would like to test how PostgreSQL behaves under some > circumstances in particular when some table does not fit into memory. > The problem is I have 16 Gb of RAM so to test this I have to create > quite a large

Re: [lxc-users] Problems with user sessions inside a Ubuntu Desktop Container

2016-01-26 Thread Alain St-Denis
Le 2016-01-26 02:55, Serge Hallyn a écrit : > Quoting Alain St-Denis (al...@zenfolie.org): >> Hi, >> >> I experience the exact same problem. Similar setup (wily host, elementary >> freya container). No user session is created when I login the desktop so >> polkit won't grant elevated privileges

Re: [lxc-users] is starting unprivileged containers as root as secure as running them as any other user?

2016-01-26 Thread Serge Hallyn
I think that is correct. Except that it's not the host on which you run 'lxc' which matters, but the one running the lxd daemons. But yes, afaik you can create a container which mounts /dev/sda as a disk device and do what you like. Quoting david.an...@bli.uzh.ch (david.an...@bli.uzh.ch): > Sin

Re: [lxc-users] Lxc container, add custom route

2016-01-26 Thread Fajar A. Nugraha
On Tue, Jan 26, 2016 at 7:05 PM, florian leparoux wrote: > Hello, > > I try to setup a custom route for my CT. > I've add the route-eth0 file with my route but this file is ignored > because the ifcfg-eth0 doesn't exist. > try creating ifcfg-eth0, with BOOTPROTO=none, and IPADDR, NETMASK, NETWOR

Re: [lxc-users] lxd-client: frequent "Unable to connect to"

2016-01-26 Thread Tomasz Chmielewski
Entropy seems fine. It looks as if communication in the bridge stops working sometimes, probably when there is no traffic in it for longer periods of time. Tomasz Chmielewski http://wpkg.org On 2016-01-26 20:57, Jäkel wrote: Dear Tomasz, What's the output of watch -n 1 cat /proc/

[lxc-users] "lxc file push" corrupts files

2016-01-26 Thread Tomasz Chmielewski
In some cases, "lxc file push" corrupts files. To reproduce: - file must exist in the container - existing file in the container must be bigger than the file being pushed Reproducer: * make sure /tmp/testfile does not exist in the container: host# lxc exec container rm /tmp/testfile * cre