Re: [lxc-users] java11 vs memory.limit_in_bytes

2020-02-28 Thread Jäkel , Guido
Dear Harri, I don't check it yet, but is -XX:+UseContainerSupport a requirement for this?? >root@c526096eb86e:/# java -XX:MaxRAMPercentage=20.0 -XX:MinRAMPercentage=10.0 >-XX:+PrintFlagsFinal - >root@debian10:~# java -XX:MaxRAMPercentage=20.0 -XX:MinRAMPercentage=10.0 >-XX:+PrintFlagsFinal

Re: [lxc-users] ps -eo lxc no longer works

2020-02-13 Thread Jäkel , Guido
Hello, can't verify this in a hurry, but IMHO this more likely caused by others than LXC, like a regression in ps. The top command also offer a column for this, you might to have to enable it via the 'f'(ields) menu. Compare the ouput of 'ps --version'; maybe you can try to use the older ps

Re: [lxc-users] lxc profiles

2020-01-24 Thread Jäkel , Guido
Dear Mike, for LXD, I don't know. For LXC, to my knowledge only for that moment you named "launch", .i.e. while lxc-start is reading this files in the phase of preparing the container environment. With other word: It's "save" to change configuration for an running container; it will be used

Re: [lxc-users] Howto save snapshots only to another drive? Bug?

2020-01-13 Thread Jäkel , Guido
Dear Oliver, I just want to mention, that with this workaround it isn't a real snapshot anymore but may be called a "slow bullet" instead: It will take some real time to copy the whole image and in contrast to a snapshot, it will be not completely consistent if the Container is running at this

Re: [lxc-users] LXC 3.2.1 ./. CGroups v1

2019-08-15 Thread Jäkel , Guido
NULL; 743 } 744 *p2 = '\0'; [...] >-----Original Message- >From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf >Of Jäkel, Guido >Sent: Thursday, August 15, 2019 3:13 PM >To: 'LXC users mailing-list' >Subject: [lxc-users] LXC 3.2.1 ./. CGroup

[lxc-users] LXC 3.2.1 ./. CGroups v1

2019-08-15 Thread Jäkel , Guido
Dear all, Using LXC in my Gentoo environment for years (since 0.8.4) and currently using V2.1.1 in Production, I'm just evaluating LXC 3.2.1. I'm still using CGroups V1 with all available controllers mounted on /cgroups and /cgroups/lxc as a parent group. Until yet, this works well. But with

Re: [lxc-users] not allowed to change kernel parameters inside container

2019-05-27 Thread Jäkel , Guido
Because * your Container is not started as a privileged one? * you let bind-mount /sys readonly? Guido >-Original Message- >From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf >Of Saint Michael >Sent: Monday, May 27, 2019 1:49 PM >To: LXC users mailing-list

Re: [lxc-users] not allowed to change kernel parameters inside container

2019-05-27 Thread Jäkel , Guido
Dear Michael, > For me, the single point of using LXC is to be able to redeploy a complex > app from host to host in a few minutes. I use one-host->one-Container. So > what is the issue of giving all power to the containers? I don't understand yet, why you want to use

[lxc-users] Followup: Issue concerning total CPU usage in top (package procps)

2019-01-10 Thread Jäkel , Guido
c-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf >Of Jäkel, Guido >Sent: Thursday, January 10, 2019 9:26 AM >To: 'lxc-users' >Subject: [lxc-users] Issue concerning total CPU usage in top (package procps) > >Dear all, > >I'm using Gentoo for LXC host and contai

[lxc-users] Issue concerning total CPU usage in top (package procps)

2019-01-10 Thread Jäkel , Guido
Dear all, I'm using Gentoo for LXC host and containers. After upgrading the procps package from 3.3.12 to 3.3.15, in the top application the value of summed CPU usage inside a container is always 0 (zero). * This issue shows up in the containers only, but not on the host * If I switch the

Re: [lxc-users] lxc-checkconfig improvement?

2018-12-17 Thread Jäkel , Guido
Hi, in https://stackoverflow.com/questions/45905642/mapping-kernel-config-variables-to-modules there's described that the corresponding module Makefile will have line like obj-${CONFIG_...} [:+]= .o But this will require the kernel sources at runtime, which is not reasonable of

Re: [lxc-users] Does cpu cgroup has been enabled in lxc/lxd

2018-11-01 Thread Jäkel , Guido
>I have no idea on how LXD container works now. >Maybe udev is disabled or some other mechanism may be used to manage device. LXC/LXD is not limited to that, but the probably most used model for Containers it that it should form a key-ready environment for a Linux userland to run applications,

Re: [lxc-users] Network instability with bridged nat and macvlan interfaces

2018-06-08 Thread Jäkel , Guido
an apache2 on port 8082, and it falls at the same time as >haproxy ports 80 and 443. Only ssh keeps responding. >Weird! > >Michel > > > > > > On 8 Jun 2018, at 08:15, Jäkel, Guido <mailto:g.jae...@dnb.de> > wrote: > > Dear Michel, > >

Re: [lxc-users] Network instability with bridged nat and macvlan interfaces

2018-06-08 Thread Jäkel , Guido
Dear Michel, did you already take a look on the other parts of the involved network environment? Maybe you have an issue on layer two vs. three concerning the MAC <-> IP correlation on the involved next upstream switch. You may check the ARP tables. And -- because you "loose" port 80 and 443,

Re: [lxc-users] Macvlan explained

2018-05-04 Thread Jäkel , Guido
Dear Michel, Thank you! That's I was looking for long. From a quick look, IMHO the short paragraph about the Linux bridge miss the fact, that this "device" -- in addition to attach other NICs to it -- has a "build-in" pseudo-NIC to attach the hosts "IP Stack" here. Like the additional MACVLAN

Re: [lxc-users] Error on upgrade to lxc-3.0.0 and integration with openvswitch

2018-04-25 Thread Jäkel , Guido
Dear G., may you provide you the ebuild for V3 or point me to a source? Me and others are interested in, see https://bugs.gentoo.org/652582 Your lxc-start fail at if (!cgroup_init(handler)) { ERROR("Failed initializing cgroup support"); goto

Re: [lxc-users] LXD move, how to reduce downtime without live migration

2017-05-02 Thread Jäkel , Guido
Dear Fajar, with respect, imho this time you go too far. It's definite not in the responsibility of any common application to be data-consistent at every point in time. In the opposite, there are well-known and well-respected signaling mechanisms at both sides -- application and operating

Re: [lxc-users] Establish a bind mount to a running container

2016-10-25 Thread Jäkel , Guido
Dear Stéphane, I got time to play around with injecting mounts into a running container You suggest: Setup steps, before you first start the container: 1) mkdir /tmp/shared-c1 2) mount --bind /tmp/shared-c1 /tmp/shared-c1 3) mount --make-rshared /tmp/shared-c1 4)

Re: [lxc-users] Establish a bind mount to a running container

2016-10-07 Thread Jäkel , Guido
Fri, Oct 07, 2016 at 01:26:26PM +, Jäkel, Guido wrote: >> >-Original Message- >> >From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On >> >Behalf Of Stéphane Graber >> >Sent: Friday, October 07, 2016 11:46 AM >> >To: LXC u

Re: [lxc-users] Establish a bind mount to a running container

2016-10-07 Thread Jäkel , Guido
>On Fri, Oct 07, 2016 at 07:03:21AM +, Jäkel, Guido wrote: >> Dear experts, >> >> I wonder if it's possible to establish a bind mount filesystem resource from >> the LXC host to an already running container in >an manual way, but analogous as it is done at startup t

Re: [lxc-users] which container is swapping?

2016-06-21 Thread Jäkel , Guido
Dear Harald, years ago I scripted my own lxc-free to be used as something lxc-aware inside the container. It's based on the memory controllers values, too. Please take a look at memory.stats, too. Here, I get other values to calculate the values for RSS+Cache, active, free and used RAM, too.

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] Problems with user sessions inside a Ubuntu Desktop Container

2016-01-21 Thread Jäkel , Guido
Dear all, this is my 2nd try to get an "Ubuntu Desktop" container running on a hosting server using "Gentoo" at home. The server is used as a router, media server, audio player. It is used and administrated "headless" via ssh. But it's hardware is a vanilla PC and now it also should be usable

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

2016-01-21 Thread Jäkel , Guido
In addition, it might be helpful for you to get an outline of the current running processes and daemons inside the "Desktop Container": root@delly ~ # ps faux | cut -c 66- [...] lxc-start -n celly -l DEBUG -L /var/log/lxc/celly.out \_ /sbin/init \_

Re: [lxc-users] Ubuntu container IP address

2015-11-20 Thread Jäkel , Guido
Dear Robert, now it become a meta discussion at all. But in fact it was such one since you start. Because, in core you don’t ask help or a solution, you just want to complain about the level of knowledge to use LXC in comparison to similar tools. Break here, if you can't agree to this! But

Re: [lxc-users] memory.limit_in_bytes works, but not memory.memsw.limit_in_bytes and cpuset.cpus

2015-04-29 Thread Jäkel , Guido
Dear Yonsys, this is a known bug/feature of the controller, You can't * lower memory.memsw limit_in_bytes below memory.limit_in_bytes * raise memory.limit_in_bytes above memory.memsw limit_in_bytes Notice that the default is infinite (max integer). For the typical usecase to lower the

Re: [lxc-users] Autostart: container ordering for various multi-container operations

2015-03-05 Thread Jäkel , Guido
Dear Bostjan, I already told my 5ct on this many month ago, but now -- with LXC 1.x -- it might be the time to discuss about it, again. IMHO one want to describe dependencies and it's up to the computer to derive any order from that. It's the same feature as within all the different init

Re: [lxc-users] running NFS and cifs in a container.

2015-03-03 Thread Jäkel , Guido
i did not get the abstarct resource part. Can't mount ext4 from being inside a container after exporting the required volume to it. ??? Dear Mohan, IMHO it's best practice to have an virtual environment like a LX-Container as much as independent from a concrete hosting environment. And the

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread Jäkel , Guido
Dear Serge, Might be worth having lxc order the rules so that it'll always just work. The order of execution needed depends on the actual and desired values crossover the items. The setters of the Memory Controller should be act like Set_MemSwap(Limit) { Mem :=

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread Jäkel , Guido
Dear Anthony, Dear Fajar, On may unit letters like 'G' while setting the values of the memory cgroup controller. But note that memsw stands for the sum of memory and swap. Therefore, can't set memory.memsw.limit_in_bytes to a value *lower* than the actual value of

Re: [lxc-users] [Marketing Mail] Re: unprivileged container with zfs backing

2015-02-04 Thread Jäkel , Guido
Dear Adam, From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf Of Adam Gold I've only ever created containers using lxc-create. Are you saying that I should manually create a template container at the root of a particular zfs filesystem (e.g. zfs/lxc/containers/c1)

Re: [lxc-users] lxc.network.type = phys (or nothing...)

2014-10-08 Thread Jäkel , Guido
Dear Joris, BTW: I hate solutions by counter questions. Therefore, it should not be a solution but just a question of interest why the physical reach-through of interfaces is your preferred solution. Because my hosts are virtuals, and it's very easy to me to provide them 3 interfaces, mounting

Re: [lxc-users] lxc.network.type = phys (or nothing...)

2014-10-07 Thread Jäkel , Guido
Dear Joris, I've compared all configurations, nothing has changed... When I rollback my host with the last full backup, all goes OK... but it's the third time it re appears... Sorry, but that's illogical: If it reproducible work with some backup-image but not with the current one despite of a

Re: [lxc-users] lx-start taking a long time if veth is not added to lxcbr0Š

2014-10-02 Thread Jäkel , Guido
Dear Anjali, i noticed that in your posted snippets, there are different MACs for what's you're want to use to get the IP from the DHCP-daemon and the one the Containers veth got. you wrote ip address=172.16.0.3 netmask=255.255.0.0 dhcp host ip=172.16.0.1 mac=0A:00:DE:C0:DE:01

Re: [lxc-users] Containers seem to cannot spawn new processes

2014-09-22 Thread Jäkel , Guido
Dear all, during some private chat communication with Lukas it turns out, that (at least) the limit for the number of file handles per user (ulimit -n) was much too low for real world usecases . It was set at 1024 for all user, as well on the host as on the containers. I advise him to adjust

Re: [lxc-users] lxc and PREROUTING conflict

2014-08-05 Thread Jäkel , Guido
Better stick with Gavin's suggestion if possible. Or do some scripting to get server's IP address before calling iptables. ... or use a source ip match and the negation feature to extend the rule to skip traffic from internal addresses greetings Guido

Re: [lxc-users] VM stops allowing connections randomly

2014-07-15 Thread Jäkel , Guido
Dear Lukas, IMHO that's no network related problem (e.g. because all of the ssh handshake is well done and the terminal session is just about to start). But this container is out of some other resources, maybe filehandles? I assume you need this container working and I also assume that the

Re: [lxc-users] Packet flow from application running in container to physical NIC transmission

2014-06-27 Thread Jäkel , Guido
Dear Mohit, Please look out for some slide shows or blog articles about LXC. Maybe the following may help you to master the first hurdles, too: * The templates are used to set up a (more-or-less) key-ready root filesystem of some Linux distribution. They wil act as a bootstraper and will

Re: [lxc-users] Cannot start container when lxc.cgroup.memory.* in config

2014-03-07 Thread Jäkel , Guido
Dear Pheb, Your lxc-checkconfig says: Cgroup memory controller: enabled But in the output of the mount command, the memory keyword is missing. You have to look for the reason. For reference I append what one of my hosts state: # grep cgroup /proc/mounts