Re: [Lxc-users] Restarting LXC containers after power failure

2013-05-06 Thread Tamas Papp
On 05/06/2013 02:58 PM, David Parks wrote: We just had a datacenter power failure, upon restart of course our LXC containers were stopped. It would be just dandy if there were an LXC option to restart the containers that were already running before the sudden failure. Is there any such

[Lxc-users] Skype in a container

2013-05-18 Thread Tamas Papp
hi All, Is there a cookbook to run Skype in a container? I upgraded my laptop to Saucy and Skype seems to crash continuously. So I think it would be a good idea to run a Precise container with Skype. 10x tamas --

[Lxc-users] errors

2013-05-22 Thread Tamas Papp
hi All, # lxc-ls --fancy Traceback (most recent call last): File /usr/bin/lxc-ls, line 221, in module ips = container.get_ips(protocol=protocol, timeout=1) TypeError: 'protocol' is an invalid keyword argument for this function # lxc-info -n sc --state-is=running # echo $? 1 The

Re: [Lxc-users] errors

2013-05-22 Thread Tamas Papp
On 05/23/2013 01:02 AM, Tamas Papp wrote: hi All, # lxc-ls --fancy Traceback (most recent call last): File /usr/bin/lxc-ls, line 221, in module ips = container.get_ips(protocol=protocol, timeout=1) TypeError: 'protocol' is an invalid keyword argument for this function # lxc

Re: [Lxc-users] errors

2013-05-22 Thread Tamas Papp
On 05/23/2013 04:27 AM, Stéphane Graber wrote: Oops, looks like I broke lxc-ls --fancy with my recent get_ips() API change. I'll fix it directly to staging (trivial fix) and trigger a new daily build, you should be able to update to a fixed package in the next couple of hours. hi, Although

Re: [Lxc-users] errors

2013-05-23 Thread Tamas Papp
On 05/23/2013 03:35 PM, Stéphane Graber wrote: That looks like broken locking, though Serge would know for sure. You may want to try clearing /dev/shm/*lxc* and see if that fixes the problem (not usually recommended as those locks are there for a reason). OK. At this moment I'm trying to

Re: [Lxc-users] errors

2013-05-23 Thread Tamas Papp
On 05/23/2013 03:39 PM, Tamas Papp wrote: On 05/23/2013 03:35 PM, Stéphane Graber wrote: That looks like broken locking, though Serge would know for sure. You may want to try clearing /dev/shm/*lxc* and see if that fixes the problem (not usually recommended as those locks

Re: [Lxc-users] errors

2013-05-23 Thread Tamas Papp
On 05/23/2013 07:34 PM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): On 05/23/2013 03:39 PM, Tamas Papp wrote: On 05/23/2013 03:35 PM, Stéphane Graber wrote: That looks like broken locking, though Serge would know for sure. You may want to try clearing /dev/shm/*lxc* and see

Re: [Lxc-users] errors

2013-05-23 Thread Tamas Papp
On 05/23/2013 07:55 PM, Serge Hallyn wrote: FYI, now it works fine now with 0.9.0.0~staging~20130523-0240-0ubuntu1~ppa1~precise1 . For this I had to stop all containers then start them again. Ok - I suspect what was happening was that every lxc-ls was segfaulting while holding the semaphore,

Re: [Lxc-users] Use host syslog socket in container

2013-05-23 Thread Tamas Papp
On 05/23/2013 09:42 PM, Vallevand, Mark K wrote: Will that work for a single file? I thought it was for directories. It works for files, but I would use parent directories for the syslog sockets, since sockets are changing eg. by restarting the syslog server. tamas

Re: [Lxc-users] errors

2013-05-23 Thread Tamas Papp
On 05/23/2013 09:47 PM, Serge Hallyn wrote: The lxc lock had nothing to do with the segfaulting - and no, the new hanges will simply swap out use of named semaphore for a flock on an open fd (so that they get auto-cleaned if process is killed). Any potential for segvs *should* be found while

[Lxc-users] case sensitivity

2013-05-23 Thread Tamas Papp
hi, lxc-ls --fancy-format is case sensitivie: $ lxc-ls --fancy --fancy-format name,state,ipv4,autostart NAME STATEIPV4AUTOSTART According to the above headers the suspected format is uppercase (I thin). lxc-info --state-is is

[Lxc-users] list admin

2013-05-23 Thread Tamas Papp
hi Guys, Please, someone! Who is the owner/admin of this list? Thanks, tamas -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that

Re: [Lxc-users] list admin

2013-05-23 Thread Tamas Papp
On 05/23/2013 11:13 PM, Michael H. Warfield wrote: Last I knew, it was Daniel who created the list and most likely owns it. It was created at my suggestion to move user questions off the devel list ages and ages ago. Lately he's typically been buried over his head busy that he doesn't show

Re: [Lxc-users] list admin

2013-05-24 Thread Tamas Papp
On 05/24/2013 02:06 AM, Daniel Lezcano wrote: Yes, sure. Sorry, I have been more and more busy with other stuff and flooded by emails, so I did not followed the discussion closely. Can you explain in a few words what do you need ? I'd like to be sure, there is no SPOF in the listadmin

Re: [Lxc-users] Skype in a container

2013-05-24 Thread Tamas Papp
On 05/24/2013 11:11 AM, Fajar A. Nugraha wrote: On Sun, May 19, 2013 at 4:03 AM, Tamas Papp tom...@martos.bme.hu wrote: On 05/18/2013 10:39 PM, Elie Deloumeau wrote: Hi, you need a xserver in your container. Create a container, install gnome or whatever and install Skype for Linux ;) It's

[Lxc-users] lxc-create -B zfs

2013-06-10 Thread Tamas Papp
hi, # lxc-create -n pony -t ubuntu -B zfs --zfsroot=tank/lxc getopt: unrecognized option '--rootfs=/usr/lib/x86_64-linux-gnu/lxc' lxc-create: container creation template for pony failed lxc-create: Error creating container pony # lxc-create -n pony -t ubuntu -B zfs cannot create 'lxc/pony': no

Re: [Lxc-users] lxc-create -B zfs

2013-06-17 Thread Tamas Papp
On 06/10/2013 03:41 PM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): hi, # lxc-create -n pony -t ubuntu -B zfs --zfsroot=tank/lxc Hm. Mine is simply called 'lxc', and that works. So it sounds like I'm doing something wrong in parsing the zfsroot, but I can't offhand see

Re: [Lxc-users] Getting IP address of running container

2013-07-11 Thread Tamas Papp
On 07/11/2013 04:45 PM, Robin Monjo wrote: Hello, I need to know the IP address of a running container in order to add a port forwarding rule with iptables. My containers are build using the default ubuntu template and use dhcp to obtain an IP. I'm able to access the ip by reading the

Re: [Lxc-users] clones of clones are failing to start

2013-07-17 Thread Tamas Papp
On 07/17/2013 10:01 PM, Jay Taylor wrote: Hi, I'm not sure what I am doing wrong here. This is a EC2 VM with /var/lib/lxc linking to a mounted BTRFS volume. OS: Ubuntu 12.04 LTS LXC Version: 0.9.0 FS: BTRFS The current situation is that I have a base container, base, which starts

Re: [Lxc-users] clones of clones are failing to start

2013-07-17 Thread Tamas Papp
On 07/17/2013 10:14 PM, Jay Taylor wrote: lxc.cap.drop = mac_test_1 Remove this line. tamas -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from

[Lxc-users] lxc-ls --fancy is lying

2013-07-31 Thread Tamas Papp
hi All, I've seen a couple of times in the past like this: # lxc-ls --fancy --stopped --fancy-format name,state NAME STATE finance STOPPED hammer STOPPED ijc-cipool STOPPED jay STOPPED marvin4jsci STOPPED marvinci STOPPED svntest

Re: [Lxc-users] lxc-ls --fancy is lying

2013-07-31 Thread Tamas Papp
On 07/31/2013 07:37 PM, Jay Taylor wrote: Out of curiosity, did you see it in the past before you you updated from the PPA today? No, I didn't. tamas -- Get your SQL database under version control now! Version

Re: [Lxc-users] lxc-ls --fancy is lying

2013-07-31 Thread Tamas Papp
On 07/31/2013 09:44 PM, zoolook wrote: On Wed, Jul 31, 2013 at 3:47 PM, Tamas Papp tom...@martos.bme.hu wrote: On 07/31/2013 07:37 PM, Jay Taylor wrote: Out of curiosity, did you see it in the past before you you updated from the PPA today? No, I didn't. I did but a simple reboot fixed

Re: [Lxc-users] lxc-ls --fancy is lying

2013-08-04 Thread Tamas Papp
On 08/02/2013 11:51 PM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): hi All, I've seen a couple of times in the past like this: # lxc-ls --fancy --stopped --fancy-format name,state NAME STATE finance STOPPED hammer STOPPED ijc

Re: [Lxc-users] Running the latest LXC version

2013-08-07 Thread Tamas Papp
On 08/08/2013 12:39 AM, Kevin LaTona wrote: I am still getting up to speed with Ubuntu and I went looking to see how I could install the latest version of LXC on Ubuntu 12.04 and can't find anything that shows how to do this. Is anyone aware of any documentation that shows how one can

[Lxc-users] copy from OEL template does not work

2013-08-15 Thread Tamas Papp
hi, env: Linux virt101 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:17:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux No LSB modules are available. Distributor ID:Ubuntu Description:Ubuntu 13.04 Release:13.04 Codename:raring ii lxc 0.9.0.0~staging~20130814-145 amd64

Re: [Lxc-users] copy from OEL template does not work

2013-08-15 Thread Tamas Papp
On 08/15/2013 06:37 PM, Dwight Engen wrote: On Thu, 15 Aug 2013 16:12:26 +0200 Tamas Papp tom...@martos.bme.hu wrote: hi, env: Linux virt101 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:17:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux No LSB modules are available. Distributor ID:Ubuntu

Re: [Lxc-users] copy from OEL template does not work

2013-08-15 Thread Tamas Papp
On 08/15/2013 07:26 PM, Tony Su wrote: Also, Without an error message more informative than a simple segfault, who knows? There is no more. Recommend: Search your Host syslogs for a more informative error message If not in a message, post the Container config file somewhere where someone

Re: [Lxc-users] copy from OEL template does not work

2013-08-15 Thread Tamas Papp
On 08/15/2013 08:31 PM, Dwight Engen wrote: It looks like you called your container VM, not container. What Yes, sorry, mixed that. In fact, it's name is jcc-vmc01 :) does lxc-ls show? Are you sure the host has network connectivity with the container? (ie. are you resolving to the container?

[Lxc-users] shared memory

2013-09-09 Thread Tamas Papp
hi All, I always had issues regarding to shared memory and containers in the past. It was about postgresql and shmmax tuning or something like that. I always solved the those issues in different way. Now I'd like to install a DB2 server in a container. After a successful setup process I get

Re: [Lxc-users] lxc-create -B zfs

2013-09-10 Thread Tamas Papp
On 06/18/2013 04:14 AM, Serge Hallyn wrote: hi Serge, Quoting Tamas Papp (tom...@martos.bme.hu): On 06/10/2013 03:41 PM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): hi, # lxc-create -n pony -t ubuntu -B zfs --zfsroot=tank/lxc Hm. Mine is simply called 'lxc

Re: [Lxc-users] Some important project changes

2013-09-20 Thread Tamas Papp
On 09/20/2013 06:37 PM, Stéphane Graber wrote: hi Stephane, Don't hesitate to contact me, if you need help with the infrastructure or the migration process. Though I guess you're fine about these things:) For the website (I see it the first time now): lxc-ls --fancy | grep p1 I would change

Re: [Lxc-users] lxc-centos/lxc-rhel?

2013-09-30 Thread Tamas Papp
On 09/30/2013 06:23 PM, Michael H. Warfield wrote: The Oracle Linux template worked well on Fedora. Will it work on other distros like Arch, Alt, or Suse which doesn't have a (compatible) version of yum/rpm? That's one of my major take-aways from Linux It works on Ubuntu (12.04+ in my case).

Re: [Lxc-users] lxc-centos/lxc-rhel?

2013-09-30 Thread Tamas Papp
On 09/30/2013 08:37 PM, Michael H. Warfield wrote: Oh? I thought it did, but you had to have the rpm and yum packages installed (you won't with the new one). I thought I had tested that out on one of my Ubuntu systems. This is the end of the process: Copy

Re: [Lxc-users] lxc-centos/lxc-rhel?

2013-09-30 Thread Tamas Papp
On 09/30/2013 08:37 PM, Michael H. Warfield wrote: Dwight, Actually I have a problem with the Oracle template. I have a a couple of Oracle Linux containers and they are running fine. There are running Oracle Databases as well... But I cannot run anything through an ssh session

Re: [Lxc-users] lxc-create -B zfs

2013-10-01 Thread Tamas Papp
On 10/01/2013 07:08 AM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): On 06/18/2013 04:14 AM, Serge Hallyn wrote: hi Serge, Quoting Tamas Papp (tom...@martos.bme.hu): On 06/10/2013 03:41 PM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): hi, # lxc-create

Re: [Lxc-users] Puppetmaster (server) in container

2013-10-03 Thread Tamas Papp
On 10/03/2013 02:15 PM, Kaj Wiik wrote: Hi! I am trying to run puppetmaster in a vanilla ubuntu lxc container. Upon startup, I get the following error: /usr/lib/ruby/1.8/puppet/util/pidlock.rb:39:in `initialize': Permission denied - /var/lib/puppet/run/master.pid (Errno::EACCES) from

Re: [Lxc-users] (no subject)

2013-10-03 Thread Tamas Papp
On 10/04/2013 06:03 AM, Kalyana sundaram wrote: Hi lxc by default creates rootfs and fstab on /var/lib/lxc Is it possible to use some other directory? Because when I do lxc-ls, it does a ls of /var/lib/lxc Either use lxcpath=/some/other/dir in /etc/lxc/lxc.conf or -P switch Cheers, tamas

[Lxc-users] lxc-instance fail

2013-10-04 Thread Tamas Papp
hi, Starting a container from cli by lxc-start works fine, lxc-info shows the right state. Using upstart: start lxc-instance NAME=archiva-test CONFIG=/tank/lxc/archiva-test/config # lxc-info -n archiva-test state: STOPPED Though the container gets started. As a result I cannot use

Re: [Lxc-users] lxc-instance fail

2013-10-04 Thread Tamas Papp
On 10/04/2013 05:05 PM, zoolook wrote: I have also seen this problem from time to time in different boxes and different versions of lxc. It's not easily reproducible and I can't remember if I reported it (maybe not since I couldn't make a 100% reproducible test case). I also use a

Re: [Lxc-users] lxc mtab

2013-10-05 Thread Tamas Papp
On 10/05/2013 06:50 AM, Kalyana sundaram wrote: Hi I run a group of lxc containers over a ubuntu host. when I do df on the container, I get rootfs and /dev/disk. But since both are same(mounted on /), why mtab shows them separately, I think I am missing some insight in this. df -TH

Re: [Lxc-users] lxc-instance fail

2013-10-05 Thread Tamas Papp
On 10/04/2013 04:11 PM, Tamas Papp wrote: hi, Starting a container from cli by lxc-start works fine, lxc-info shows the right state. Using upstart: start lxc-instance NAME=archiva-test CONFIG=/tank/lxc/archiva-test/config # lxc-info -n archiva-test state: STOPPED Though

Re: [Lxc-users] lxc-create -B zfs

2013-10-07 Thread Tamas Papp
On 10/01/2013 07:14 AM, Serge Hallyn wrote: Right now if we say lxc-create -t ubuntu -n u1 -B zfs that means make the rootfs be type zfs. Where/how should it be specified that $lxcpath/$lxcname should be a new zfs, not $lxcpath/$lxcname/rootfs? 'zfs.mounttype = [whole | rootfs]' ?

Re: [Lxc-users] lxc-instance fail

2013-10-07 Thread Tamas Papp
On 10/07/2013 07:09 PM, Serge Hallyn wrote: An easy way to reproduce this without zfs is: sudo lxc-create -t ubuntu -n r0 sudo cp /var/lib/lxc/r0/config /tmp sudo lxc-start -n r0 -f /tmp/config -d sudo lxc-info -n r0 (it shows up as stopped) sudo

Re: [Lxc-users] lxc-centos/lxc-rhel?

2013-10-10 Thread Tamas Papp
On 10/02/2013 05:41 PM, Dwight Engen wrote: On Mon, 30 Sep 2013 23:18:59 +0200 Tamas Papp tom...@martos.bme.hu wrote: On 09/30/2013 08:37 PM, Michael H. Warfield wrote: Dwight, Actually I have a problem with the Oracle template. I have a a couple of Oracle Linux containers

Re: [Lxc-users] Problem with lxc and mutliple ips

2013-10-11 Thread Tamas Papp
On 10/11/2013 10:40 AM, Andreas Laut wrote: Ok, sorry. You're right. We are using a bridge named br0 bound to eth0 at lxc host. On the containers we are using veth, but this problem happens also with type macvlan. No change at all. We also tried using hwaddr. We're doing further

Re: [Lxc-users] Problem with lxc and mutliple ips

2013-10-11 Thread Tamas Papp
On 10/11/2013 02:42 PM, Andreas Laut wrote: Hi, actually can't get lxc nightly compiled with debian right now, configure has problems with pkg-config python3-dev (package pkg-config and python3-dev is installed) (configure line 5588) I tried instead lxc 0.9 from tarball and got the same

Re: [Lxc-users] Containers that don't die!

2013-10-23 Thread Tamas Papp
On 10/23/2013 08:55 PM, Leandro Ferreira wrote: Hi, I was testing a solution with lxc and apache2 on ubuntu 13.04, And very very often some containers don't react to lxc-stop end even don't die with kill -9, It's a known bug? there are some work around? What do you see exactly? What is

Re: [Lxc-users] How much LXC is secure?

2013-11-11 Thread Tamas Papp
On 11/11/2013 06:04 PM, Leonid Isaev wrote: On your system run $ lxc-checkconfig | grep User namespace to check if user namespaces are enabled on your host. That's correct: $ lxc-checkconfig | grep User namespace User namespace: enabled $ lsb_release -a No LSB modules are available.

Re: [Lxc-users] How much LXC is secure?

2013-11-11 Thread Tamas Papp
On 11/11/2013 10:23 PM, Serge Hallyn wrote: You can get the support either from ppa:ubuntu-lxc/kernel, or by installing the trusty kernel. The trusty kernel has had some issues until last week (including upstream bugs), but I think it should be usable now. I probably will wait until the

Re: [Lxc-users] lxc-create -B zfs

2013-11-20 Thread Tamas Papp
On 11/20/2013 05:24 PM, Serge Hallyn wrote: Quoting Tamas Papp (tom...@martos.bme.hu): On 10/01/2013 07:14 AM, Serge Hallyn wrote: Right now if we say lxc-create -t ubuntu -n u1 -B zfs that means make the rootfs be type zfs. Where/how should it be specified that $lxcpath/$lxcname

Re: [Lxc-users] lxc-centos/lxc-rhel?

2013-12-04 Thread Tamas Papp
for the tip. Cheers, tamas On 10/11/2013 06:17 PM, Dwight Engen wrote: On Thu, 10 Oct 2013 21:58:58 +0200 Tamas Papp tom...@martos.bme.hu wrote: On 10/10/2013 08:56 PM, Dwight Engen wrote: Hmm not sure what could be the issue. I would start by running ssh -vv against the container and see