Re: [Lxc-users] Routing issues

2013-06-03 Thread Papp Tamas
On 06/04/2013 12:52 AM, Rory Campbell-Lange wrote: > > Hi Tamas > > Thanks very much for your email. First of all thanks very much for the > note about the lxc.network.ipv4 paramenter -- I disabled that and > routing seems to be fine. > > My question was unclear -- sorry! My host is on the internet

Re: [Lxc-users] Routing issues

2013-06-03 Thread Papp Tamas
On 06/03/2013 06:55 PM, Rory Campbell-Lange wrote: > > I have (with Rob van der Hoeven's help) setup a Debian Wheezy container on a > Wheezy host. This worked well. > > I can ssh into the main host from the lxc host. However I cannot hit the > internet from the lxc host. I'd be grateful for some po

Re: [Lxc-users] frequent host machine kernel panic

2013-06-02 Thread Papp Tamas
On 06/02/2013 01:32 PM, Kalyana sundaram wrote: > lxc 0.8.0 > Please don not use toppost! Is there any speacial, when it goes to panic? Any details? I would try with higher and lower version of LXC and update kernel, if there is any. Though, I've never used LXC on CentOS, I've never heard thing

Re: [Lxc-users] frequent host machine kernel panic

2013-06-01 Thread Papp Tamas
On 06/02/2013 06:06 AM, Kalyana sundaram wrote: > No actually kernel panics happen in more than one host. > Please keep the mailing list in the address list and don't use toppost. What version do you use? tamas -- Get

Re: [Lxc-users] frequent host machine kernel panic

2013-06-01 Thread Papp Tamas
On 06/01/2013 09:43 PM, Kalyana sundaram wrote: > Hi All > We run a bunch of lxc containers over a centos 6.2 host. The containers use > veth pairs and connect > to the network through a linux bridge(br0) at the host. The setup was fine. > But suddenly the host > machine started crashing frequent

Re: [Lxc-users] Cloning container over network

2013-04-17 Thread Papp Tamas
On 04/17/2013 01:09 PM, Robin Monjo (appldiget) wrote: > I'd like to be able to clone a lxc container over the network. For example, I > have a machine that > contains lxc containers and on another machine, clone these containers and > use them. Any idea ? Use rsync, tar, zfs send/recv, btrfs se

Re: [Lxc-users] Running an NFS server within LXC

2013-04-15 Thread Papp Tamas
On 04/15/2013 09:13 PM, Istvan Balazs wrote: > Dear Tamás! > > Theres is a workaround solution for this. > > We are using NFS mounts inside KVM guests. But can be achieved with native > hosts too. > > 1. The KVM guest is the one who mounts the NFS mount folder , let's say: > mount -t nfs 10.10.10.

Re: [Lxc-users] Running an NFS server within LXC

2013-04-15 Thread Papp Tamas
On 04/15/2013 12:34 PM, David Parks wrote: > > It's really a no-go on LXC huh? That's too bad. Glusterfs seems like > overkill, I just want a remote mount for a small, but critical, backup > process. But it must be mounted, I'd rather not clutter up the host OS, as > the whole point of LXC was to k

Re: [Lxc-users] Running an NFS server within LXC

2013-04-15 Thread Papp Tamas
On 04/15/2013 12:17 PM, David Parks wrote: > Could this be an LXC specific issue? I’m trying to run an NFS server within a > container. > > davidparks21@hadoop-fsimage-bkup1:~$ sudo service nfs-kernel-server restart > > * Stopping NFS kernel daemon > > ...done. > > * Unexporting directories fo

Re: [Lxc-users] Fedora 18 - User namespace: missing

2013-04-07 Thread Papp Tamas
On 04/08/2013 03:05 AM, István Király wrote: > Hi folks. > > I installed a fresh Fedora 18. Updated, kernel is at 3.8.5-201.fc18.x86_64 > Downloaded lxc 0.9.0, and compiled it. > > [root@g7 ~]# lxc-checkconfig > Kernel configuration not found at /proc/config.gz; searching... > Kernel configuration

Re: [Lxc-users] sudo add-apt-repository command in container

2013-04-05 Thread Papp Tamas
On 04/05/2013 02:46 PM, brian mullan wrote: > Recently I had the need to use the add-apt-repository command in some > containers. > > But when executing it: > > *sudo add-apt-repository ppa:/stable* > * > * > *it fails* > *sudo: add-apt-repository: command not found* > > so I made sure python-soft

Re: [Lxc-users] zfs support

2013-04-04 Thread Papp Tamas
On 04/04/2013 03:54 PM, Serge Hallyn wrote: > > If you want to go ahead and send a full patch against the current > lxc-clone.in script, that should help me reproduce what you want in > the api version. I have limited scripting skills, but I do my best. > Will the path used as rootfs always be a

Re: [Lxc-users] zfs support

2013-04-03 Thread Papp Tamas
On 04/03/2013 11:43 PM, Serge Hallyn wrote: > > It's on the list - only trick is I need to learn how to use it :) I planning to make some changes like this: echo " -B zfs [--zfs-root PATH]" >&2 echo " --zfs-root PATHspecify the zfs path for lxcpath (default: tank/lxc)" >&2 wher

Re: [Lxc-users] zfs support

2013-04-03 Thread Papp Tamas
On 04/03/2013 11:18 PM, Serge Hallyn wrote: > > I'm working right now on clone in the c api. The basics were simple > enough, now to tackle the blockdev copy/snapshotting... Is zfs on the support list?:) Or just existing backingtores, like btrfs, lvm..etc? 10x tamas ---

Re: [Lxc-users] zfs support

2013-04-03 Thread Papp Tamas
On 03/05/2013 02:46 PM, Serge Hallyn wrote: > > Quoting Scott Moser (smo...@ubuntu.com): >> On Tue, 5 Mar 2013, Papp Tamas wrote: >> >>> On 03/05/2013 05:27 AM, Scott Moser wrote: >>>> >>>> I wrote the btrfs clone stuff, I just cloned the rootf

Re: [Lxc-users] lxc-destroy fs

2013-03-07 Thread Papp Tamas
On 03/07/2013 09:43 PM, zoolook wrote: > > On Thu, Mar 7, 2013 at 5:21 PM, Papp Tamas wrote: >>>>else >>>># In case rootfs is not under $lxc_path/$lxc_name, remove it >>>>rm -rf --one-file-system --preserve

Re: [Lxc-users] lxc-destroy fs

2013-03-07 Thread Papp Tamas
On 03/07/2013 04:54 PM, Serge Hallyn wrote: > > Quoting Papp Tamas (tom...@martos.bme.hu): >> >> hi All, >> >> At the end of this script it wants to remove the fs in some cases. >> But something is wrong about it, as if it's other they are ignored. >

[Lxc-users] lxc-destroy fs

2013-03-06 Thread Papp Tamas
hi All, At the end of this script it wants to remove the fs in some cases. But something is wrong about it, as if it's other they are ignored. # Deduce the type of rootfs # If LVM partition, destroy it. For btrfs, we delete the subvolue. If anything # else, ignore it. We'll support deletion of o

Re: [Lxc-users] python api

2013-03-06 Thread Papp Tamas
On 03/04/2013 07:44 PM, Papp Tamas wrote: > > How does python api works what does it look for? > Or maybe there is an issue only in lxc-ls: > > If I see correctly, it checks if /var/lib/lxc/$container/config file exists. > I tried without the lxcpath setting as well. > Tha

Re: [Lxc-users] zfs support

2013-03-05 Thread Papp Tamas
On 03/05/2013 05:27 AM, Scott Moser wrote: > > I wrote the btrfs clone stuff, I just cloned the rootfs directory as it > was the only thing I thought would be of any significant size. The other > things I think just get copied). > > Its probably me thats missing something obvious, but whats the be

Re: [Lxc-users] zfs support

2013-03-04 Thread Papp Tamas
On 03/04/2013 04:45 PM, Serge Hallyn wrote: > > Quoting Papp Tamas (tom...@martos.bme.hu): >> hi All, >> >> I'm about adding zfs support to lxc-create like lvm and btrfs has. >> >> elif [ "$backingstore" = "btrfs" ]; then >>

[Lxc-users] python api

2013-03-04 Thread Papp Tamas
hi, How does python api works what does it look for? Or maybe there is an issue only in lxc-ls: If I see correctly, it checks if /var/lib/lxc/$container/config file exists. I tried without the lxcpath setting as well. Than I see, it want's to connect to /var/lib/lxc/$container/command file and c

Re: [Lxc-users] lxcpath

2013-03-04 Thread Papp Tamas
On 03/04/2013 03:34 PM, Stéphane Graber wrote: > > > The change proposed above wouldn't work for cases where you create the > container config in /var/lib/lxc/ but don't store the rootfs > there. For example when using lvm-backed containers. > > In such case, a second call to lxc-create would compl

Re: [Lxc-users] lxc configuration bug

2013-03-02 Thread Papp Tamas
On 02/19/2013 11:53 PM, Serge Hallyn wrote: > > > At this point, there will be a /var/lib/lxc/ltest/config which will > list lxc.rootfs = /var/lib/lxc/ltest/rootfs. So these steps are not > quite what you want. > > Perhaps you just want to > > sudo lxc-create -n ltest -t ubuntu > sudo

[Lxc-users] zfs support

2013-03-02 Thread Papp Tamas
hi All, I'm about adding zfs support to lxc-create like lvm and btrfs has. elif [ "$backingstore" = "btrfs" ]; then mkdir "$lxc_path/$lxc_name" if ! out=$(btrfs subvolume create "$rootfs" 2>&1); then echo "$(basename $0): failed to create subvolume in $rootfs: $out" >&2

Re: [Lxc-users] lxcpath

2013-03-02 Thread Papp Tamas
On 02/25/2013 02:56 PM, Serge Hallyn wrote: > > Quoting Papp Tamas (tom...@martos.bme.hu): >> hi Serge and Others, >> >> lxc version: 0.9.0.alpha3 >> >> lxcpath=/data/lxc >> >> tank/lxc/ltest on /tank/lxc/ltest type zfs (rw,noatime) >>

Re: [Lxc-users] Ubuntu 12.04 LTSEnablementStack: missing user namespace

2013-03-02 Thread Papp Tamas
On 03/01/2013 07:47 PM, Stéphane Graber wrote: > No kernel until 3.8 (and slightly higher actually) will really support > user namespaces. > > In any case, the lxc version in 12.04 doesn't know how to use the user > namespaces even if they were there. So that output from lxc-checkconfig > is safe

Re: [Lxc-users] I'm wonder if there is a command to see the status of all container ?

2013-02-27 Thread Papp Tamas
On 02/27/2013 10:41 AM, Stéphane Klein wrote: > > Hi, > > I'm wonder if there is a command to see the status of all container ? > > example : > > # lxc-info --all > 'foo' is STOPPER > 'bar' is RUNNING > … > > I've see this script > https://github.com/phbaer/lxc-tools/blob/master/lxc-status > > Thi

Re: [Lxc-users] databases in lxc container

2013-02-26 Thread Papp Tamas
On 02/26/2013 08:24 PM, Csordás Csaba Ifj. wrote: > Is it possible to run a database server in an LXC container? Yes. > Does anybody accomplished this task with Oracle XE 10g/11g? Yes. However at this very moment I'm not sure it's 10g. > I can't get it to working, and I need to be sure. In fac

Re: [Lxc-users] tail -f (inotify) not working in container?

2013-02-26 Thread Papp Tamas
On 02/26/2013 07:36 PM, Dan Kegel wrote: > > Oddly, tail -f doesn't seem to be working properly inside my container. > It displays ten lines, and then sits forever. ^C and running it again > shows a more up to date ten lines, but then sits forever. > > strace shows: > ... > inotify_init()

Re: [Lxc-users] oracle yum install

2013-02-25 Thread Papp Tamas
On 02/25/2013 12:36 PM, Csordás Csaba Ifj. wrote: > Hi, > > when using the oracle template on a Debian host > > yum install mc > > wants to install 71M of dependencies (77 Packages). The were already > installed during container creation. > > How to tell yum to recognize those packages? > You have

[Lxc-users] lxcpath

2013-02-22 Thread Papp Tamas
hi Serge and Others, lxc version: 0.9.0.alpha3 lxcpath=/data/lxc tank/lxc/ltest on /tank/lxc/ltest type zfs (rw,noatime) # sh -x /usr/bin/lxc-create -n ltest -t ubuntu + . /usr/share/lxc/lxc.functions + globalconf=/etc/lxc/lxc.conf + bindir=/usr/bin + templatedir=/usr/share/lxc/templates + lxc

Re: [Lxc-users] lxc configuration bug

2013-02-22 Thread Papp Tamas
On 02/22/2013 04:49 PM, Stéphane Graber wrote: > > We're planning on setting up a default lxcpath for user run containers, > -P will just be used to override this. Excellent. Thanks, tamas -- Everyone hates slow websit

[Lxc-users] listadmin

2013-02-22 Thread Papp Tamas
hi All, Who is the admin for this list? Failed to deliver to 'msklizman...@ebuddy.com' SMTP module(domain mail-in.ebuddy.com:25) reports: host mail-in.ebuddy.com:25 says: 550 5.1.1 User unknown If he/she doesn't have enough for that, I'd like to do it so much. I cannot help the project with

Re: [Lxc-users] lxc configuration bug

2013-02-22 Thread Papp Tamas
On 02/22/2013 04:04 PM, Serge Hallyn wrote: > > Oh, my recipe wasn't quite right - when you > > sudo sed -i 's@/var/lib/lxc@/data/lxc@' /var/lib/lxc/r2/config > > that also changes the path to r2's fstab. So either you have to > tweak the sed command, or > > sudo mv /var/lib/lxc/r2/fst

Re: [Lxc-users] lxc configuration bug

2013-02-22 Thread Papp Tamas
On 02/22/2013 04:04 PM, Stéphane Graber wrote: > Once every user will be able to just run lxc containers, you don't want > them to have to check what container names the others are using to avoid > clashing with them. I see, you're absolutely right. > It'd have been confusing to restrict system

Re: [Lxc-users] lxc configuration bug

2013-02-22 Thread Papp Tamas
On 02/22/2013 03:54 PM, Serge Hallyn wrote: > > > Why not? Why would I do that? It would just make myself confused. I don't see any reason to do that. tamas -- Everyone hates slow websites. So do we. Make your web apps

Re: [Lxc-users] lxc configuration bug

2013-02-22 Thread Papp Tamas
On 02/22/2013 03:22 PM, Serge Hallyn wrote: > > > About what? What I described above should work. Yes, that's correct. It doesn't (at least for me) that's why it is a bug, I guess;) > Note also that the staging branch now supports '-P|--lxcpath' for all > commands, so you could simply > >

Re: [Lxc-users] lxc configuration bug

2013-02-22 Thread Papp Tamas
On 02/20/2013 12:06 AM, Papp Tamas wrote: > On 02/19/2013 11:53 PM, Serge Hallyn wrote: >> >> >> At this point, there will be a /var/lib/lxc/ltest/config which will >> list lxc.rootfs = /var/lib/lxc/ltest/rootfs. So these steps are not >> quite what you wan

Re: [Lxc-users] lxc configuration bug

2013-02-19 Thread Papp Tamas
On 02/19/2013 11:53 PM, Serge Hallyn wrote: > > > At this point, there will be a /var/lib/lxc/ltest/config which will > list lxc.rootfs = /var/lib/lxc/ltest/rootfs. So these steps are not > quite what you want. > > Perhaps you just want to > > sudo lxc-create -n ltest -t ubuntu > sudo

[Lxc-users] lxc configuration bug (was: Re: lxc-destroy erase rootfs)

2013-02-18 Thread Papp Tamas
On 02/11/2013 04:11 AM, Serge Hallyn wrote: > > Agreed, please do get us precise reproduction steps so we can look into > it and fix it. I'm sorry about the delay. I tested is again and I'm quite surprised, that you're right. If it's at the originial location, then it just works fine. >> If you

Re: [Lxc-users] lxc-destroy erase rootfs

2013-02-09 Thread Papp Tamas
On 02/10/2013 12:06 AM, Fajar A. Nugraha wrote: > > On Sun, Feb 10, 2013 at 8:34 AM, Papp Tamas <mailto:tom...@martos.bme.hu>> wrote: > > On 02/09/2013 12:41 AM, Serge Hallyn wrote:>> Or just suggest a way to > modify containers > configuration. >

Re: [Lxc-users] lxc-destroy erase rootfs

2013-02-09 Thread Papp Tamas
On 02/09/2013 12:41 AM, Serge Hallyn wrote: > > Not to users who are already scripting around lxc-destroy and would > now have to change all the callers. I see that and you're absolutely right. Me and other people use stop-destroy-create-start circle as a workaround because there is no other wa

Re: [Lxc-users] lxc-destroy erase rootfs

2013-02-08 Thread Papp Tamas
On 02/08/2013 02:46 PM, Serge Hallyn wrote: > > Quoting John (l...@jelmail.com): >> I raised this issue back on 6th/7th December. It was a side-issue in >> a discussion entitled "unable to run systemd in an LXC container". I >> have always performed a destroy/create cycle to apply changes >> writte

Re: [Lxc-users] lxc-destroy erase rootfs

2013-02-07 Thread Papp Tamas
On 02/08/2013 12:10 AM, Roland Neary wrote: > Sorry to hear you b0rked your setup. Are you perhaps a Xen user who found out > that `'xm destroy` != > lxc-destroy? > > If so, you're probably not the first Actually neither xen, nor virsh destroys _data_ and until v0.7 (or v0.8?) lxc does it on

Re: [Lxc-users] lxc-destroy erase rootfs

2013-02-07 Thread Papp Tamas
On 02/07/2013 11:42 PM, Christoph Willing wrote: > > > On 08/02/2013, at 8:37 AM, Papp Tamas wrote: > >> hi All, >> >> Actually there was already a topic about this, but I don't really remember >> the result, because with >> lxc v0.7 the rootfs

[Lxc-users] lxc-destroy erase rootfs

2013-02-07 Thread Papp Tamas
hi All, Actually there was already a topic about this, but I don't really remember the result, because with lxc v0.7 the rootfs was removed only if it existed in /var/lib/lxc . If I use v0.9 it's removed anyway during the lxc-destroy process. Why is that? First I think it would be a great ide

Re: [Lxc-users] lxc-centos on Ubuntu 12.04

2013-02-05 Thread Papp Tamas
On 02/05/2013 01:56 PM, Roland Neary wrote: > Nothing exciting, I modified a few values such as dns servers which were > hardcoded into the script > but not appropriate for my setup. > > As is the script worked out of the box, I just didn't fancy fixing these > niggling issues by hand as > I made

Re: [Lxc-users] lxc-centos on Ubuntu 12.04

2013-02-05 Thread Papp Tamas
On 02/05/2013 11:34 AM, Roland Neary wrote: > Hi Tamas, > > I recetly setup CentOS on Ubuntu with a slight variation of > https://gist.github.com/hagix9/3514296 hi, What changes did you make? If it's not necessary, I don't want to make double work. 10x tamas

Re: [Lxc-users] lxc-centos on Ubuntu 12.04

2013-02-05 Thread Papp Tamas
On 02/04/2013 02:35 PM, Kalyana sundaram wrote: > I have made a lxc centos template > https://github.com/kalyanceg/lxc-centos Thanks Kalyana, unfortunately it doesn't seem to work correctly, because there is only an init process started, nothing else. However the script from the recent tarball

[Lxc-users] lxc-centos on Ubuntu 12.04

2013-02-04 Thread Papp Tamas
hi All, Is there a template available that can be used to create working CentOS 6 containers out of box? Thank you, tamas -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download Ap

Re: [Lxc-users] Bind mount within an LXC container

2013-01-30 Thread Papp Tamas
On 01/30/2013 01:13 PM, Ben Butler-Cole wrote: > Hello > > I find that I can't do a read-write bind mount within a container (that is to > say, the source and > target for the mount are both within the container's own filesystem). I > believe that it is being > restricted to read-only by Apparmou

Re: [Lxc-users] Is "lxc-create -n foo" supposed to work?

2013-01-23 Thread Papp Tamas
On 01/24/2013 05:47 AM, Dan Kegel wrote: > > On ubuntu 12.04, I tried the minimalist command > sudo lxc-create -n foo > without a -t option. This completed very quickly (yay) but then > sudo lxc-start -n foo > hung (after complaining there was no fstab.old or something). > > Is that suppos

Re: [Lxc-users] [LXC] loop module in ubuntu template

2013-01-10 Thread Papp Tamas
On 01/10/2013 07:16 PM, Sujay M wrote: > Hi Tamas, > > Thanks a lot for the help. You've almost solved my problem, The previous loop > error is not there but > I'm getting write-protected error when trying to mount > > root@vm0:/srv# ls -l swift-disk > -rw-r--r-- 1 ubuntu ubuntu 10 Jan 10

Re: [Lxc-users] [LXC] loop module in ubuntu template

2013-01-10 Thread Papp Tamas
On 01/10/2013 06:10 PM, Sujay M wrote: > >>In the container config: > >> > >>lxc.aa_profile = lxc-container-default--with- > >>loops > >># loop > >>lxc.cgroup.devices.allow = b 7:* rwm > >>lxc.cgroup.devices.allow = c 10:237 rwm > Should i create a new container with this property in config

Re: [Lxc-users] [LXC] loop module in ubuntu template

2013-01-10 Thread Papp Tamas
On 01/10/2013 05:36 PM, Sujay M wrote: > Hi all, > > I have created a container vm0 using the ubuntu template. I want to use > /mnt/sdb1/ as loopback > storage. so if i try to mount it i'm getting > > root@vm0:~# mount /mnt/sdb1/ > mount: Could not find any loop device. Maybe this kernel does not

Re: [Lxc-users] how to install LXC on CentOS 6.3?

2012-12-21 Thread Papp Tamas
On 12/21/2012 11:15 PM, Jun Yang wrote: > Hi all, > > I just rented a dedicated server. My provider only has CentOS 6.3 available. > I have had great > experience with LXC on Ubuntu. But I am a beginner on CentOS. From Google > search I can only find > very scarce information about how to ins

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

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

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. > >

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

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] 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 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

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

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

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

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-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) >> >>

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

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] 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] 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/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 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

[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] "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 > >

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] 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] 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

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

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-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)

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

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

  1   2   >