[Lxc-users] poor performance between host and container

2011-01-05 Thread Papp Tamas
hi! There is a post in the archivum: http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg00071.html Now I have the same problem. Has anybody a solution to this? My system is Ubuntu 10.04 x86_64 and lxc 0.7.2 from the PPA. I have some systems like this, but there are no problems. T

Re: [Lxc-users] poor performance between host and container

2011-01-05 Thread Papp Tamas
On 01/05/2011 09:25 AM, Papp Tamas wrote: > hi! > > There is a post in the archivum: > > http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg00071.html > > Now I have the same problem. Has anybody a solution to this? > > My system is Ubuntu 10.04 x86_64 an

Re: [Lxc-users] rootfs backup

2011-01-06 Thread Papp Tamas
On 01/06/2011 06:12 PM, matthew byers wrote: > Hey i was wondering if there is a way to backup a rootfs aside from > copying it over. Im asking because i made a container with intent of > messing it up. I succeeded which in turn messed up the rootfs. So i > was wondering if there was a way to b

Re: [Lxc-users] poor performance between host and container

2011-01-06 Thread Papp Tamas
On 01/05/2011 10:45 AM, Daniel Lezcano wrote: > AFAIR, the mtu should fit the mtu of the bridge. > > Let us know if > http://comments.gmane.org/gmane.linux.kernel.containers.lxc.general/663 fixed > your problem. MTU was fine but this helped: /usr/sbin/ethtool -K br0 sg off /usr/sbin/ethtool -

[Lxc-users] openvpn usage

2011-03-14 Thread Papp Tamas
hi! Is it possible with LXC 0.7.4? Thank you, tamas -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/interna

Re: [Lxc-users] OpenLdap in an LXC container

2011-05-04 Thread Papp Tamas
On 05/04/2011 10:50 PM, David Touzeau wrote: > Dear > > I have created a Fedora container on an Ubuntu. > I have installed OpenLDAP inside the container but OpenLDAP did want to > start with permissions issues. > *** > [root@fedora ~]

Re: [Lxc-users] Hide container processes on the host...

2011-05-04 Thread Papp Tamas
On 05/05/2011 12:14 AM, David Touzeau wrote: > Dear, > > I have an issue about hide processes on the host > > I have a watchdog script on the host that ensure slapd is up > > there is different behavior using pidof or pgrep > > the ps aux output > > # ps aux|grep slapd > root 2444 0.0 0.2

Re: [Lxc-users] Howto detect the containers host

2011-05-26 Thread Papp Tamas
On 05/26/2011 09:34 AM, Jäkel, Guido wrote: > Hi all, > > something related to the "Howto detect we're a LXC Container" is the > question: "Howto detect from inside a container the name (or something > equivalent) of the machine we're hosted on?" This might be of interest for > administration le

Re: [Lxc-users] [Spam-Wahrscheinlichkeit=94]Re: Howto detect the containers host

2011-05-26 Thread Papp Tamas
On 05/26/2011 11:37 AM, Jäkel, Guido wrote: > Papp>I hope a container cannot identify its host. > > You mean that's a concern of security? Why it shouldn't; "security through > obscurity" is never a solution at all, you'll know! Yes, that's true, but this is not the case. Actually lxc at this tim

Re: [Lxc-users] [Spam-Wahrscheinlichkeit=94]Re: Howto detect the containers host

2011-05-26 Thread Papp Tamas
On 05/26/2011 11:06 PM, Daniel Lezcano wrote: > On 05/26/2011 11:57 AM, Papp Tamas wrote: >> On 05/26/2011 11:37 AM, Jäkel, Guido wrote: >>> Papp>I hope a container cannot identify its host. >>> >>> You mean that's a concern of security? Why it shouldn&#

Re: [Lxc-users] lxc_namespace - failed to clone(0x6c020000): Invalid argument

2011-06-01 Thread Papp Tamas
On 06/01/2011 11:17 AM, Daniel Lezcano wrote: > On 06/01/2011 10:45 AM, Ulli Horlacher wrote: > > [ ... ] >> 2011-06-01 10:34:53 [ 5228.816214] device vetheBqcj5 entered promiscuous mode >> 2011-06-01 10:34:53 [ 5228.817240] ADDRCONF(NETDEV_UP): vetheBqcj5: link is >> not ready >> >> This is stran

Re: [Lxc-users] veth name

2011-06-15 Thread Papp Tamas
On 06/15/2011 12:13 PM, ubik pl wrote: > Hello, > > Is there a way to assign veth name(visible from the host) to be the same > each time the container boots ? > At the moment it is a random value like vethFFzyq2 > Yes there is: lxc.network.type = veth lxc.network.flags = up lxc.network.link = br-

Re: [Lxc-users] Network setup

2011-06-30 Thread Papp Tamas
On 2011-06-30 20:55, Jason McKellar wrote: Hello, I have been trying for quite sometime to get the network setup in an LXC container (I am using debian wheezy where LXC comes standard). I have created the container and can start it fine, but no networking works. My host /etc/networking/interfac

Re: [Lxc-users] Network problem on start

2011-07-02 Thread Papp Tamas
On 2011-07-02 16:09, Stuart Johnson wrote: > lxc version: 0.7.4 > Ubuntu 11.04/natty > > > I have set up my container with a static IP address. If the start the > container, I can see the IP address in ifconfig, but the route is not > set up until I do a ifdown eth0&& ifup eth0 > You forgot to p

Re: [Lxc-users] Network problem on start

2011-07-02 Thread Papp Tamas
On 2011-07-02 16:50, Stuart Johnson wrote: >> You forgot to paste your config files. > thanks, does this help? Its the gateway address that doesn't get set up > until I do a ifdown eth0&& ifup eth0 > > > lxc.network.type = veth > lxc.network.flags = up > lxc.network.link = br0 > lxc.network.ipv4

Re: [Lxc-users] Network problem on start

2011-07-02 Thread Papp Tamas
On 2011-07-02 17:03, Stuart Johnson wrote: > >> Did you modify /etc/init/* scripts? The guest is also Natty? > > No, I didn't change the init scripts. Guest also Natty. Any > particular script or log I should be looking at? If there is no gateway after startup, then your guest's network was not

[Lxc-users] mount from outside of a container online

2011-07-16 Thread Papp Tamas
hi! Is it possible somehow? I'd like to bind mount a directory into a container and also I'd like to avoid restarting it. Thank you, tamas -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, t

Re: [Lxc-users] mount from outside of a container online

2011-07-18 Thread Papp Tamas
On 2011-07-16 19:41, Papp Tamas wrote: > hi! > > Is it possible somehow? > > I'd like to bind mount a directory into a container and also I'd like to > avoid restarting it. > Does this mean, it'

Re: [Lxc-users] mount from outside of a container online

2011-07-18 Thread Papp Tamas
On 2011-07-18 15:14, Serge E. Hallyn wrote: > It should be possible, but you have to set it up in advance. You can > create a /lxcshare directory on the host, make sure it is slave > (mount --make-rslave /lxcshare) and bind-mount that into the container > at startup. Then mounting a directory int

Re: [Lxc-users] LXC and Tun/Tap ?

2011-07-21 Thread Papp Tamas
On 2011-07-21 08:54, Daniel Lezcano wrote: > On 07/13/2011 06:40 PM, Gordon Henderson wrote: >> ISTR that about a year ago tun/tap use inside an LXC container wasn't >> possible... Just wondering if things have changed? >> > No nothing was done around that. > > As the thread is old, can you recall

Re: [Lxc-users] LXC and Tun/Tap ?

2011-07-21 Thread Papp Tamas
On 2011-07-21 10:04, Joerg Gollnick wrote: > Hello all, > I'm using openvpn client in a container (lxc from git as 20110715) since a > "few" hours. > > # Config from lxc.conf > # tun > lxc.cgroup.devices.allow = c 10:200 rwm > > # In the container rootfs create directory net and device tun > DEV=${

Re: [Lxc-users] Ubuntu kernel 2.6.32-33-generic-pae breaks LXC

2011-07-21 Thread Papp Tamas
On 2011-07-21 20:34, Rod Roark wrote: > I've been running 3 LXC containers (each with Ubuntu 8.04) under Ubuntu > 10.04 > since May of last year. Works great. > > Yesterday I did a routine upgrade of the 10.04 server, which among other > things > upgraded its kernel from 2.6.32-31-generic-pae to 2

Re: [Lxc-users] Ubuntu kernel 2.6.32-33-generic-pae breaks LXC

2011-07-21 Thread Papp Tamas
On 2011-07-21 20:40, Papp Tamas wrote: > Ubuntu kernel maintainers disabled network(?) namespace in newer > packages. Use Natty backported kernels. > I mean this:) linux-image-server-lts-backport-maverick tamas ---

[Lxc-users] memory limit

2011-08-12 Thread Papp Tamas
hi! I'm asking you about limiting memory. This is the test config: lxc.cgroup.memory.limit_in_bytes = 16M lxc.cgroup.memory.memsw.limit_in_bytes = 1G lxc.cgroup.cpuset.cpus = 0-1 lxc.cgroup.cpu.shares = 1024 I run apt-get upgrade and an openfire server (java) as memory harvester jobs. 23:42:

Re: [Lxc-users] memory limit

2011-08-16 Thread Papp Tamas
On 2011-08-16 00:29, Daniel Lezcano wrote: > On 08/12/2011 11:51 PM, Papp Tamas wrote: >> hi! >> >> I'm asking you about limiting memory. >> >> This is the test config: >> lxc.cgroup.memory.limit_in_bytes = 16M >> lxc.cgroup.memory.memsw.l

[Lxc-users] stopping a container

2011-09-02 Thread Papp Tamas
hi! What is the right way to stop a container? lxc-stop kills all the processes inside the container. This command should be used if the processes are no longer accessible and can no be exited normally. I guess lxc-stop should not be the standard way. Anyway,The init script in Ubuntu

Re: [Lxc-users] stopping a container

2011-09-04 Thread Papp Tamas
On 09/02/2011 06:33 PM, Matteo Bernardini wrote: > 2011/9/2 Papp Tamas: >> What is the right way to stop a container? > hope this lxc-devel's thread can help > > http://sourceforge.net/mailarchive/forum.php?thread_name=4DDA6AD2.3070900%40thomas-krenn.com&forum_name=lxc-d

Re: [Lxc-users] stopping a container

2011-09-05 Thread Papp Tamas
On 09/05/2011 08:38 AM, Jäkel, Guido wrote: >> What is the right way to stop a container? > Dear Papp, > > Like with the thread paradigm in computing langugages, the "right" way is > that the thread decides to stop. Therefore your container have to leave. > > Depending on your Linxus flavor inside

Re: [Lxc-users] Ubuntu /etc/init.d/xinetd kills container's xinetd

2011-10-05 Thread Papp Tamas
On 10/05/2011 06:43 PM, Ulli Horlacher wrote: > I have an Ubuntu LXC hosts with several containers running internet > services via xinetd. > > Sometimes the container services died without any reason and no logfile > entry. First, I thought LXC is not that stable as I hoped, but now I > found the

[Lxc-users] Fwd: RE: Price Request For lxc.org

2011-10-11 Thread Papp Tamas
Title: Price Request For lxc.org FYI, already it's much cheaper:D tamas Original Message Subject: RE: Price Request For lxc.org Date: Fri, 7 Oct 2011 14:50:23 +

Re: [Lxc-users] shutting down CentOS6 container

2011-10-17 Thread Papp Tamas
On 10/17/2011 10:02 PM, Milos Negovanovic wrote: > On Mon, Oct 17, 2011 at 10:36:24PM +0300, Iliyan ilf Stoyanov wrote: >> Hi Milos, >> >> have you tried doing lxc-console --name $NAME_OF_YOUR_CENTOS6_CONTAINER, >> then loging in and issuing shutdown -h now. It works for me on Fedora >> 15/SL6.1. >

Re: [Lxc-users] shutting down CentOS6 container

2011-10-17 Thread Papp Tamas
On 10/17/2011 10:26 PM, Milos Negovanovic wrote: > > If I am not mistaken thats similar approach to using this script: > > http://pastie.org/2713689 > > Ive tried using that python script, but instead of shutting down my > container restarts! Can you paste your container /etc/inittab by any > chanc

Re: [Lxc-users] shutting down CentOS6 container

2011-10-17 Thread Papp Tamas
On 10/17/2011 10:54 PM, Derek Simkowiak wrote: > /I tried the python script, it just works fine./ Q1: How does the "kill -INT init" method affect running processes, especially MySQL and other databases that may need to shutdown gracefully to avoid data corruption? I believe that the

Re: [Lxc-users] shutting down CentOS6 container

2011-10-17 Thread Papp Tamas
On 10/17/2011 11:05 PM, Milos Negovanovic wrote: > OK got it working by tweaking the following config file inside centos6 > container: > > /etc/init/control-alt-delete.conf > > After I modified the behavior of ctrl-alt-del handling, container shuts > down using that python script. > > Thanks for al

[Lxc-users] limit number of processes

2011-10-18 Thread Papp Tamas
hi! Is it possible to limit the maximum number of processes per container? Thank you, tamas -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performa

Re: [Lxc-users] Launching init in a container as non-root

2011-10-18 Thread Papp Tamas
On 10/18/2011 04:47 PM, Serge E. Hallyn wrote: > > http://wiki.ubuntu.com/UserNamespace > > I've got a few patches to send yet for tightening down some remaining > privilege leaks, then we should be ready to start relaxing things to make > them usable. This includes Eric's simple implementation of

Re: [Lxc-users] OUI

2011-10-18 Thread Papp Tamas
On 10/18/2011 10:30 PM, Brian K. White wrote: > So after looking at the IEEE site about applying for an OUI, it seems to > me there needs to be some actual entity to do that appplication. Since I > am not a principle developer nor is my company more than an interested > user, I can't really just go

Re: [Lxc-users] OUI

2011-10-19 Thread Papp Tamas
On 10/19/2011 12:36 AM, Derek Simkowiak wrote: > /But actually I think, lxc-virt.org sounds better./ I disagree with lxc-virt.org. The difference between "container" and "virtual machine" is already confusing enough. There is no virtualization layer in LXC, so I don't think "virt" sh

Re: [Lxc-users] cannot start any more any container?!

2011-10-19 Thread Papp Tamas
On 10/19/2011 07:24 PM, Ulli Horlacher wrote: > Besides my problem with "cannot stop/kill lxc-start" (see other mail), I > have now an even more severe problem: I cannot start ANY container anymore! > > I am sure I have overlooked something, but I cannot see what. I am really > desperate now, becau

Re: [Lxc-users] cannot start any more any container?!

2011-10-19 Thread Papp Tamas
On 10/19/2011 09:18 PM, Ulli Horlacher wrote: > root@vms1:/lxc# ps axf | grep vmtest1 > 31571 ?Ds 0:00 lxc-start -f /data/lxc/vmtest1.cfg -n vmtest1 -d > -o /data/lxc/vmtest1.log > 2171 ?Ds 0:00 lxc-start -f /data/lxc/vmtest1.cfg -n vmtest1 -l > DEBUG -d -o /data/lxc/vmt

Re: [Lxc-users] cannot start any more any container?!

2011-10-19 Thread Papp Tamas
On 10/19/2011 09:28 PM, Ulli Horlacher wrote: > On Wed 2011-10-19 (21:24), Papp Tamas wrote: >> On 10/19/2011 09:18 PM, Ulli Horlacher wrote: >> >>> root@vms1:/lxc# ps axf | grep vmtest1 >>> 31571 ?Ds 0:00 lxc-start -f /data/lxc/vmtest1.cfg -n vmtest1

Re: [Lxc-users] cannot start any more any container?!

2011-10-20 Thread Papp Tamas
On 10/20/2011 12:54 AM, Ulli Horlacher wrote: > On Wed 2011-10-19 (22:11), Papp Tamas wrote: > >> What version of lxc package do you use? > See my first mail: > > lxc version: 0.7.4.1 Well, I don't see anything like this. Actually I use 0.7.5. Try to upgrade. What do y

Re: [Lxc-users] cannot start any more any container?!

2011-10-20 Thread Papp Tamas
On 10/20/2011 08:39 PM, Ulli Horlacher wrote: > > Which kernel should I use instead? I use natty(-backported if I remember well?) somewhere. Other places I just use natty for lxc hosts:) Anyway, I also met this in the past and I had to delete the iface manually or something like that. ip link d

Re: [Lxc-users] note on using rsyslog in a container

2011-11-07 Thread Papp Tamas
On 11/07/2011 06:44 PM, Ulli Horlacher wrote: > On Tue 2011-01-11 (02:54), Mike wrote: > >> I noticed netfilter messages getting trashed in the various >> /var/log/messages on a system with two containers, netfilter rules on >> the host, and each container and the host running rsyslog. On closer >

Re: [Lxc-users] Linux Containers vs Solaris Zones

2011-11-15 Thread Papp Tamas
On 11/15/2011 10:14 AM, bruce bushby wrote: > Hello > > I'm hoping someone on the list could answer a couple of questions. I > believe Linux Containers are the perfect answer to some of the issues > I have at work but wanted to confirm some technical bits before > formally submitting any designs. I

Re: [Lxc-users] "PTY allocation request failed on channel 0 - stdin: is not a tty"

2011-11-27 Thread Papp Tamas
On 11/27/2011 05:54 AM, Patrick Kevin McCaffrey wrote: > Hello, > > I'm trying to configure a few LXC guests on my Ubuntu machine. I have > configured the container using the methods described at > http://blog.bodhizazen.net/linux/lxc-linux-containers/ and > http://blog.bodhizazen.net/linux/lxc

Re: [Lxc-users] "PTY allocation request failed on channel 0 - stdin: is not a tty"

2011-11-29 Thread Papp Tamas
On 11/29/2011 04:40 PM, Patrick Kevin McCaffrey wrote: > Sorry for the late reply, but it was a holiday weekend here in the US. Thank > you for your input. Creating the devpts.conf as you described allows me to > SSH into my running container. However, lxc-console is still unresponsive. > Wh

Re: [Lxc-users] "PTY allocation request failed on channel 0 - stdin: is not a tty"

2011-11-29 Thread Papp Tamas
On 11/29/2011 05:15 PM, Patrick Kevin McCaffrey wrote: > I do not have a tty config file. Containers are new to me - how would I go > about seeing if there's a shell running on tty1? Sorry if these are silly > questions - just trying to understand more about how LXC works. > $ dpkg -S /etc/ini

Re: [Lxc-users] Security in LXC

2012-01-31 Thread Papp Tamas
On 02/01/2012 06:28 AM, Shweta Shinde wrote: Thanks for your kind response. As we see Ubuntu is making use of LXC to have virtualization over cloud, interested to know any insights about the same

Re: [Lxc-users] Creating stand alone container

2012-02-15 Thread Papp Tamas
On 02/15/2012 11:51 AM, bruce bushby wrote: > Hi > > I've been following these two guides: > https://access.redhat.com/kb/docs/DOC-67682 > http://berrange.com/posts/2011/09/27/getting-started-with-lxc-using-libvirt/ > > and I finally have a container running (Happy Days) I wanted to ask > the list

Re: [Lxc-users] Creating stand alone container

2012-02-15 Thread Papp Tamas
On 02/15/2012 11:51 AM, bruce bushby wrote: > Hi > > I've been following these two guides: > https://access.redhat.com/kb/docs/DOC-67682 > http://berrange.com/posts/2011/09/27/getting-started-with-lxc-using-libvirt/ > > and I finally have a container running (Happy Days) I wanted to ask > the list

Re: [Lxc-users] version 0.8.0 coming soon

2012-02-27 Thread Papp Tamas
On 02/28/2012 01:20 AM, Serge Hallyn wrote: > Quoting Daniel Lezcano (daniel.lezc...@free.fr): >> Hi all, >> >> I will release a 0.8.0-rc1. I am looking for volunteer to test it :) > Worked fine for me. Tested create and clone of ubuntu, ubuntu and > ubuntu-cloud images, with dir and lvm backing s

Re: [Lxc-users] version 0.8.0 coming soon

2012-02-28 Thread Papp Tamas
On 02/28/2012 04:13 PM, Serge Hallyn wrote: > Quoting Papp Tamas (tom...@martos.bme.hu): >> On 02/28/2012 01:20 AM, Serge Hallyn wrote: >>> Quoting Daniel Lezcano (daniel.lezc...@free.fr): >>>> Hi all, >>>> >>>> I will release a 0.8.0-rc1. I

Re: [Lxc-users] limit number of processes

2012-03-05 Thread Papp Tamas
On 03/05/2012 05:50 PM, Daniel Lezcano wrote: > On 03/01/2012 06:49 PM, Ulli Horlacher wrote: >> On Tue 2011-10-18 (14:54), Papp Tamas wrote: >> >>> Is it possible to limit the maximum number of processes per container? >> I have the same problem. A user has kill

Re: [Lxc-users] failed to rename cgroup ?

2012-03-07 Thread Papp Tamas
On 03/07/2012 09:58 AM, 陈竞 wrote: > i want to start lxc-sshd, but get error: > > localhost lxc # /usr/local/bin/lxc-start -n sshd > lxc-start: No such file or directory - failed to rename cgroup > /cgroup//lxc/9740->/cgroup//lxc/sshd > lxc-start: failed to spawn 'sshd' > lxc-start: No such file or

Re: [Lxc-users] Upgrade distribution

2012-03-07 Thread Papp Tamas
On 03/07/2012 07:18 PM, Stéphane Graber wrote: > It's "possible" but I wouldn't recommend it until 12.04. > > In my experience upgrading will at least require you to umount > /lib/init/fstab and tty[1234] and console in /dev, otherwise udev, > mountall and a few others will fail to upgrade. I trie

[Lxc-users] Ubuntu template questions

2012-03-08 Thread Papp Tamas
hi All, I always created an own template with debootstrap and I used it. Now I tried lxc-create -t ubuntu and I still have some question and suggestion: 1. I suggest ntpdate not to be installed (remove after debootstrap). Also I think 'update-rc.d -f ondemand remove' would be fine in the cont

Re: [Lxc-users] Ubuntu template questions

2012-03-08 Thread Papp Tamas
On 03/08/2012 09:27 AM, Papp Tamas wrote: > hi All, > > I always created an own template with debootstrap and I used it. > > Now I tried lxc-create -t ubuntu and I still have some question and > suggestion: > > 1. I suggest ntpdate not to be installed (remove after deboo

Re: [Lxc-users] Ubuntu template questions

2012-03-10 Thread Papp Tamas
On 03/08/2012 04:30 PM, Papp Tamas wrote: > On 03/08/2012 09:27 AM, Papp Tamas wrote: >> hi All, >> >> I always created an own template with debootstrap and I used it. >> >> Now I tried lxc-create -t ubuntu and I still have some question and >> suggestio

Re: [Lxc-users] Ubuntu template questions

2012-03-10 Thread Papp Tamas
On 03/11/2012 12:06 AM, Fajar A. Nugraha wrote: > On Sun, Mar 11, 2012 at 3:08 AM, Papp Tamas wrote: >> Are these questions or requests somehow not good? >> I'm really interested in them:) > I'm guessing that while your suggestions are vallid, most of which are > re

Re: [Lxc-users] Ubuntu template questions

2012-03-28 Thread Papp Tamas
On 03/13/2012 11:05 PM, Serge Hallyn wrote: > Quoting Fajar A. Nugraha (l...@fajar.net): >> On Wed, Mar 14, 2012 at 2:04 AM, Serge Hallyn >> wrote: >>> Quoting Papp Tamas (tom...@martos.bme.hu): >>>> One more, I think very important question. >>>

Re: [Lxc-users] Ubuntu template questions

2012-03-28 Thread Papp Tamas
On 03/13/2012 08:02 PM, Serge Hallyn wrote: I'm sorry for the late answer. > Hm, perhaps /etc/network/if-up.d/ntpdate should be updated to not run > in a container. > > It also might be worth removing CAP_SYS_TIME from the container's > rights. Yes, that's true. > You mean to run after the cont

[Lxc-users] init keep files opened

2012-03-28 Thread Papp Tamas
hi! I have a container, which init process uses 100% CPU. If I create a strace dump from it: open("/dev/ptmx", O_RDWR|O_NOCTTY) = -1 EMFILE (Too many open files) close(1022) = 0 close(1023) = 0 pipe([1022, 1023]) =

Re: [Lxc-users] init keeps files opened

2012-03-28 Thread Papp Tamas
On 03/28/2012 11:26 AM, Papp Tamas wrote: > hi! > > I have a container, which init process uses 100% CPU. > > If I create a strace dump from it: > > open("/dev/ptmx", O_RDWR|O_NOCTTY) = -1 EMFILE (Too many open files) > close(1022)

Re: [Lxc-users] init keeps files opened

2012-03-29 Thread Papp Tamas
Does somebody have any idea about this? Thanks, tamas On 03/28/2012 02:25 PM, Papp Tamas wrote: > On 03/28/2012 11:26 AM, Papp Tamas wrote: >> hi! >> >> I have a container, which init process uses 100% CPU. >> >> If I create a strace dump from it: >&g

Re: [Lxc-users] init keeps files opened

2012-03-30 Thread Papp Tamas
On 03/30/2012 07:58 AM, Serge Hallyn wrote: > Funky. > > Can you turn off apache and mysqld (switch the startup jobs to not run) > and see if the container behaves better? Good idea: # lsof|grep -c mysql.log 1008 init 1 root 1016w REG 253,0 1407936 270760 /var/log

[Lxc-users] precise update in container

2012-04-02 Thread Papp Tamas
hi, I guess something is still not good. Setting up util-linux (2.20.1-1ubuntu3) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 12314 files and directories currently installed.) Preparing to replace udev 175-0ubuntu6 (using .../udev_1

Re: [Lxc-users] precise update in container

2012-04-02 Thread Papp Tamas
On 04/02/2012 03:22 PM, Serge Hallyn wrote: > Quoting Papp Tamas (tom...@martos.bme.hu): >> hi, >> >> I guess something is still not good. > Yes, a bug was re-opened on that last week. See bugs http://pad.lv/969299 > and http://pad.lv/925024. > Nezd time I ch

[Lxc-users] dropped packets on bridged interface

2012-04-20 Thread Papp Tamas
hi, There is this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/986043 Has anybody meet it ever? Does anybody have an idea? Thank you, tamas -- For Developers, A Lot Can Happen In A Second. Boundary is the

Re: [Lxc-users] dropped packets on bridged interface

2012-04-20 Thread Papp Tamas
On 04/20/2012 10:10 AM, Fajar A. Nugraha wrote: > On Fri, Apr 20, 2012 at 3:05 PM, Papp Tamas wrote: >> hi, >> >> There is this bug: >> >> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/986043 >> >> Has anybody meet it ever? Does anybody have a

Re: [Lxc-users] dropped packets on bridged interface

2012-04-20 Thread Papp Tamas
On 04/20/2012 05:31 PM, Serge Hallyn wrote: > Bugs like these have cropped up occasion, and often go completely > unreproduced and un-diagnosed. Often they turn out to be caused by > funky router settings neaby. There is no router in this case:) I mean, I hope the problem is not something about t

Re: [Lxc-users] Backing Up A Container

2012-05-03 Thread Papp Tamas
On 05/03/2012 07:01 PM, Patrick Kevin McCaffrey wrote: > Hello list, > I've been doing some work on my LXC setup lately. I have several Debian > containers set up under an Ubuntu 12.04 host. Each container runs different > services (email, web, database, etc.), and I've been trying to figure ou

Re: [Lxc-users] "hostname --fqdn" returns just an error message

2012-05-07 Thread Papp Tamas
On 05/07/2012 05:19 PM, Harald Dunkel wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi folks, > > Running "hostname --fqdn" in an lxc client returns an error > message on stderr and an empty string on stdout: > > # hostname --fqdn > hostname: Name or service not known > >

[Lxc-users] postgres

2012-05-12 Thread Papp Tamas
hi! I want to increase shared_buffers value. Machine has 8GB of RAM. OS is Ubuntu Precise on both host and container. kernel.shmmax = 2147483648 kernel.shmall = 2147483648 kernel.shmmni = 4096 Originally the maximum value was 25M, I don't know how, but I could increase it until 29M. It starts

Re: [Lxc-users] postgres

2012-05-14 Thread Papp Tamas
On 05/14/2012 11:05 AM, Matthijs Kooijman wrote: hi! >> kernel.shmmax = 2147483648 >> kernel.shmall = 2147483648 >> kernel.shmmni = 4096 > I assume you misspelled "shmmin" there? No. Do you have shmmin?:) > Where did you set these values? sysctl -a|grep shm >> Originally the maximum value was

Re: [Lxc-users] uptime

2012-05-14 Thread Papp Tamas
On 05/04/2012 09:04 AM, Ulli Horlacher wrote: > On Fri 2012-05-04 (00:05), Samuel Maftoul wrote: > >> Maybe, the uptime of container's init process will show you uptime of the >> container (so is accessible from within the container). > init does not provide its start time > > I have now written a

Re: [Lxc-users] postgres

2012-05-14 Thread Papp Tamas
On 05/14/2012 12:10 PM, Matthijs Kooijman wrote: hi, > Sorry for the useless noise. Easy to be confused about this paramaters. > Ah, right. In that case, perhaps postgresql somehow allocates different > amounts of SHM based on some autodetection mechanism or other > circumstance, and lxc is so

Re: [Lxc-users] uptime

2012-05-14 Thread Papp Tamas
On 05/14/2012 06:14 PM, Ulli Horlacher wrote: > Of course. I do not post non-functional code. I think so:) > Error message? No error message. Just shows host's uptime. Ubuntu 12.04 is host and various guests. tamas -

Re: [Lxc-users] container with 2 public ip subnets

2012-05-24 Thread Papp Tamas
On 05/24/2012 02:50 PM, Andreas Fleckl wrote: > hi, i try to enable > a new public subnet > into a well running lxc container > > but i cant get a hint for the right syntax > is it possible? > Yes, you just need to duplicate configuration entries: lxc.network.type = veth lxc.network.flags = up lx

Re: [Lxc-users] [PATCH 9/9] lxc-destroy: wait until the container is stopped

2012-05-27 Thread Papp Tamas
On 05/27/2012 10:37 PM, Derek Simkowiak wrote: >/the subsequent rm -rf $rootfs/ Serge, Could you elaborate on this? The lxc-destroy is not supposed to rm -rf the root filesystem, is it? What if I had data in there I wanted to copy to a new LXC rootfs I'm building? Unless I

[Lxc-users] SIOCGIFNAME

2012-05-29 Thread Papp Tamas
hi All, This doesn't work now: ioctl(3, SIOCGIFNAME, {ifr_index=0, ifr_name=???}) = -1 ENODEV (No such device) Is there any way to make it work? Thank you, tamas -- Live Security Virtual Conference Exclusive live e

Re: [Lxc-users] SIOCGIFNAME

2012-05-29 Thread Papp Tamas
On 05/29/2012 07:29 PM, Daniel Lezcano wrote: > > On 05/29/2012 03:48 PM, Papp Tamas wrote: >> hi All, >> >> >> This doesn't work now: >> >> ioctl(3, SIOCGIFNAME, {ifr_index=0, ifr_name=???}) = -1 ENODEV (No such >> device) >> >>

Re: [Lxc-users] SIOCGIFNAME

2012-05-30 Thread Papp Tamas
On 05/30/2012 04:28 AM, Daniel Lezcano wrote: > > On 05/29/2012 10:10 PM, Papp Tamas wrote: >> On 05/29/2012 07:29 PM, Daniel Lezcano wrote: >>> >>> On 05/29/2012 03:48 PM, Papp Tamas wrote: >>>> hi All, >>>> >>>> >>>>

Re: [Lxc-users] SIOCGIFNAME

2012-05-30 Thread Papp Tamas
On 05/30/2012 10:14 AM, Daniel Lezcano wrote: > I am afraid the code is buggy because it plays with the interface > indexes assuming they will be always +1 and beginning with index 0 which > is not true. > I "assume" if you have your host with two network interfaces, so we have > indexes 0, 1, 2, a

[Lxc-users] Ubuntu 12.04: initscripts.postinst

2012-06-15 Thread Papp Tamas
hi All, I upgraded initscripts package: # apt-get install initscripts Reading package lists... Done Building dependency tree... Done Recommended packages: psmisc The following packages will be upgraded: initscripts 1 upgraded, 0 newly installed, 0 to remove and 46 not upgraded. Need to get

Re: [Lxc-users] small improvement to lxc scripts

2012-06-15 Thread Papp Tamas
On 06/14/2012 11:40 PM, -- NeoX -- wrote: > #!/bin/bash > [...custom script...] In Ubuntu 12.04 there is a custom script called lxc-list: #!/bin/sh set -e if [ ! -x "$(which lxc-info 2>/dev/null)" ] then echo "E: lxc-info - no such file" exit 1 fi for _STATUS in RUNNING STOPPED do

[Lxc-users] linkedin

2012-06-19 Thread Papp Tamas
hi, I created a group for LXC on linkedin. If I see well, there is no other group, like this. Is a project logo available? Should an invitation be sent to this list? Thanks, tamas -- Live Security Virtual Conference Ex

Re: [Lxc-users] linkedin

2012-06-19 Thread Papp Tamas
On 06/19/2012 03:30 PM, Jonathan Carter (highvoltage) wrote: > Hi Papp > > On 19/06/2012 08:52, Papp Tamas wrote: >> I created a group for LXC on linkedin. If I see well, there is no other >> group, like this. >> >> Is a project logo available? >> Should an

Re: [Lxc-users] Ubuntu 12.04: initscripts.postinst

2012-06-19 Thread Papp Tamas
On 06/15/2012 04:49 PM, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): >> On 06/15/2012 09:10 AM, Papp Tamas wrote: >>> hi All, >>> >>> I upgraded initscripts package: >>> >>> # apt-get install initscripts >>> Rea

Re: [Lxc-users] linkedin

2012-06-19 Thread Papp Tamas
On 06/19/2012 11:34 PM, Fajar A. Nugraha wrote: > The difference is, many people (like me) when getting at invitation to > linkedin, will simply delete it or mark it as spam. Cause there's just > too many people who sends invitation to everyone in their address > book. > > Sending the link, with a

[Lxc-users] open files

2012-07-02 Thread Papp Tamas
hi All, How is this counted? Should it be in a separated namespace? I see sometimes, that too many files are opened, which is not possible _inside_ the container. Recently with Ubuntu 12.04 x86_64 lxc 0.7.5-3ubuntu58 kernel 3.2.0-25-generic Thank you, tamas ---

Re: [Lxc-users] Cluster filesystem?

2012-10-08 Thread Papp Tamas
On 10/08/2012 09:47 AM, Ulli Horlacher wrote: > Are there recommendations on cluster filesystems? > I have several hosts with fibre channel. They should use a common > filesystem to have a half-automatic fail-over. I think you should be able to use any of the cluster FS (eg. gluster, moosefs, GFS

Re: [Lxc-users] Cluster filesystem?

2012-10-08 Thread Papp Tamas
On 10/08/2012 05:00 PM, Ulli Horlacher wrote: > "should" - I prefer recommendations ny experience :-) > > I have tried by myself gluster and it is HORRIBLE slow. > With GFS I have heard of several fatal crashes with data corruption. Also GFS locking mechanism is not the best if I know well. If you

Re: [Lxc-users] Cluster filesystem?

2012-10-08 Thread Papp Tamas
On 10/08/2012 05:58 PM, Ulli Horlacher wrote: > Moosefs is FUSE based (for clients) and therefore will be very slow. I > suspect NFS is faster, even on (only) GbE. Glusterfs is also fuse based. If you don't want that, try Lustre. NFS is faster, but it's not clusterfs. > Ubuntu 12.04 does not h

Re: [Lxc-users] use lxc in python,manage lxc

2012-10-15 Thread Papp Tamas
On 10/15/2012 09:50 AM, Stéphane Graber wrote: > There are a few scripts already using python3-lxc to manage containers, > Jonathan Carter has one on his github: > https://github.com/highvoltage/llxc Is there an uptodate LXC ppa available? Maybe Serge, do you plan to update your backport PPA int h

[Lxc-users] task counter cgroup

2012-10-16 Thread Papp Tamas
hi All, Is there any news about this in the mainline kernel? I didn't see it in the kernel changelog. Thank you, tamas -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app perf

Re: [Lxc-users] Using lxc on production

2012-10-22 Thread Papp Tamas
On 10/22/2012 02:39 PM, swair shah wrote: > I've been trying out lxc for a week now, and it seems there are a lot > of issues if the host system is centos and things work fine while > using ubuntu as the host. any way, right now I don't think lxc seems > to be fit to run on production boxes. > >

Re: [Lxc-users] centos6 container and root login

2012-10-22 Thread Papp Tamas
On 10/22/2012 09:05 PM, olx69 wrote: > Hello, > > basically I did follow > http://wiki.1tux.org/wiki/Centos6/Installation/Minimal_installation_using_yum > > Additionally I added > > echo "pts/0" >> /etc/securetty > > to the lxc container to allow root login, but it doesn't allow me this. > Any hint

[Lxc-users] start order

2012-12-07 Thread Papp Tamas
hi All, Regarding the bug #1087765 is there a way in Ubuntu to specify the starting order of containers? I this this code in /etc/init/lxc.conf: for f in /etc/lxc/auto/*; do c="$(basename $f .conf)" lxc-info -n $c 2>/dev/null | grep state | grep -q "RUNNING" || lxc-start

Re: [Lxc-users] broadcast storm

2012-12-12 Thread Papp Tamas
On 12/12/2012 10:54 AM, Kalyana sundaram wrote: > Hey > I have set up some 10 containers on two different host machines with veth > setup > > My network config is > > lxc.network.type = veth > lxc.network.flags = up > lxc.network.link = br0 > lxc.network.ipv4 = x.x.x.x/23 Did you specified real I

  1   2   >