Re: [Lxc-users] How to make a container init DIE after finishing runlevel 0

2010-01-25 Thread Daniel Lezcano
Michael H. Warfield wrote: On Mon, 2010-01-25 at 21:50 +0100, Daniel Lezcano wrote: apologies for the length, but how is everyone else handling this? this is the last thing i need to solve before i actually start running all my services on this setup. I was wondering

Re: [Lxc-users] How to make a container init DIE after finishing runlevel 0

2010-01-25 Thread Daniel Lezcano
Michael H. Warfield wrote: On Mon, 2010-01-25 at 21:50 +0100, Daniel Lezcano wrote: apologies for the length, but how is everyone else handling this? this is the last thing i need to solve before i actually start running all my services on this setup. I was wondering

Re: [Lxc-users] How to make a container init DIE after finishing runlevel 0

2010-01-25 Thread Daniel Lezcano
Michael H. Warfield wrote: On Mon, 2010-01-25 at 23:39 +0100, Daniel Lezcano wrote: Michael H. Warfield wrote: On Mon, 2010-01-25 at 21:50 +0100, Daniel Lezcano wrote: apologies for the length, but how is everyone else handling this? this is the last thing i need

Re: [Lxc-users] Network confusion

2010-01-29 Thread Daniel Lezcano
Matteo Ghezzi wrote: 2010/1/29 Daniel Lezcano dlezc...@fr.ibm.com: Thanks for your answer. Can you send the config file of the container ? it should be in /var/lib/lxc/container_name/config or /etc/lxc/container_name. The config file of the container

Re: [Lxc-users] restricting container visible cpus

2010-02-01 Thread Daniel Lezcano
atp wrote: Hi, There is a /proc virtualization layer prototype with fuse which needs to be enhanced but it's not for the short term as there are several issues with the container itself to be solved before adding it. But any volunteer is welcome ;) I hacked up a quick

Re: [Lxc-users] Kernel 2.6.33-rc6, 3 bugs container specific.

2010-02-04 Thread Daniel Lezcano
Serge E. Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): Serge E. Hallyn wrote: Quoting Jean-Marc Pigeon (j...@safe.ca): Hello, I was wondering out loud about the best design to solve his problem. If we try to redirect kernel-generated messages

Re: [Lxc-users] Regarding lxc tools and libvirt (virsh).

2010-02-05 Thread Daniel Lezcano
Kumar L Srikanth-B22348 wrote: Hi, I am new to Linux Containers and Libvirt. Recently, I installed Linux Container tools on my Fedora Core 12 (64 bit) machine and able to create/start/destroy my own containers using the following commands: lxc-create lxc-sshd lxc-start lxc-destroy And

Re: [Lxc-users] Regarding lxc tools and libvirt (virsh).

2010-02-05 Thread Daniel Lezcano
set the target directory to '/'? By the way, I am using libvirt version o.7.6. I won't be able to answer as I don't know libvirt, it's better you ask to the libvirt mailing list. This mailing list is for the lxc container tools. -Original Message- From: Daniel Lezcano

Re: [Lxc-users] Unable to SSH to the containers.

2010-02-05 Thread Daniel Lezcano
Kumar L Srikanth-B22348 wrote: Hi Daniel, Please see my inline comments. Regards, Srikanth -Original Message- From: Daniel Lezcano [mailto:daniel.lezc...@free.fr] Sent: Friday, February 05, 2010 5:40 PM To: Kumar L Srikanth-B22348 Cc: lxc-users@lists.sourceforge.net Subject

Re: [Lxc-users] Still can not get macvlan to work.

2010-02-08 Thread Daniel Lezcano
Michael H. Warfield wrote: I mentioned this in an earlier posting that I was using the veth method with bridges because I could NOT get macvlan to work. Problem is that the containers will come up and will talk on the network but the host can not talk to any of the guest containers. Ping

Re: [Lxc-users] Networking issues with LXC

2010-02-10 Thread Daniel Lezcano
Daniel Lezcano wrote: Michael B. Trausch wrote: Hello, I am running LXC version 0.6.5, with kernel 2.6.32.7. I am having some pretty significant troubles getting networking to reliably work with the containers. That is to say, the host name is doing just fine, and answers network

Re: [Lxc-users] Networking issues with LXC

2010-02-11 Thread Daniel Lezcano
Michael B. Trausch wrote: On 02/11/2010 03:46 AM, Daniel Lezcano wrote: If you do not set a mac address in the container configuration file, the kernel will choose one for you preventing duplicate mac address on the host. Will it pick something that is static for each container? I'd like

Re: [Lxc-users] setrlimit(3) and containers

2010-04-02 Thread Daniel Lezcano
Mikhail Gusarov wrote: Twas brillig at 09:47:33 01.04.2010 UTC-05 when se...@us.ibm.com did gyre and gimble: Here process drops root privileges, setuids to uid=103 and limits itself to 3 processes with this uid. Clone fails due to fact there are two processes with uid=103 running in

Re: [Lxc-users] lxc.console with lxc from git

2010-04-02 Thread Daniel Lezcano
Mikhail Gusarov wrote: Hi. I have tried to run lxc tools from git and got the following output: [dotted...@vertex:~]% sudo lxc-start --logfile=/dev/stderr --logpriority=TRACE -n cf lxc-start 1270236851.229 INFO lxc_conf - tty's configured lxc-start 1270236851.229 ERROR

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

2010-04-06 Thread Daniel Lezcano
Osvaldo Filho wrote: I this: ... mountall: mount /dev/pts [25] terminated with status 1 mount: according to mtab, none is already mounted on /dev/shm mountall: mount /dev/shm [26] terminated with status 1 mount: according to mtab, varrun is already mounted on /var/run mountall: mount

Re: [Lxc-users] Lucid host container - ignored fstab?

2010-04-11 Thread Daniel Lezcano
Roman Yepishev wrote: Hello all, I am trying to use LXC to run Ubuntu Lucid Lynx containers on Lucid Lynx hosts. I have succeeded in configuring the container properly so it starts, connects to the network etc. However, as described in [1], my container can remount the /srv partition

Re: [Lxc-users] Lucid host container - ignored fstab?

2010-04-12 Thread Daniel Lezcano
Roman Yepishev wrote: Hello, Daniel. Thanks for your reply! On Sun, 2010-04-11 at 09:41 +0200, Daniel Lezcano wrote: When the container starts, it setup the root filesystem. The rootfs is done with the pivot_root syscall, hence the old rootfs contains the mount points which

[Lxc-users] X server consumes 100% of CPU after launching a container

2010-04-12 Thread Daniel Lezcano
Hi all, did someone experienced the X server consuming 100% of CPU after launching a container on Ubuntu 9.10 ? Thanks -- Daniel -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself.

Re: [Lxc-users] [Network] ioctl on socket fails in container

2010-04-14 Thread Daniel Lezcano
stephane.rivi...@regis-dgac.net wrote: Hi, I'm using LXC to run Perl scripts that generate network traffic, using the Net::RawIP package. The scripts work perfectly well on a real host, but fail inside an LXC container. After a few hours of testing/debuging, the origin of the problem is

Re: [Lxc-users] tc on container gets RTNETLINK answers: Invalid argument

2010-04-17 Thread Daniel Lezcano
Przemysław Knycz wrote: Hi! At the first glance I would say it is not supported by the kernel yet. Is there support for IFB or IMQ in container? 2.6.33 can support this? IFB and IMQ are out of kernel tree, right ? I am discovering IFB / IMQ. Are you asking if we can move a

Re: [Lxc-users] lxc-unshare woes and signal forwarding in lxc-start

2010-05-05 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: I can see that lxc-unshare isn't for me: I wanted to use it to avoid adding the extra lxc-start process between two daemons communicating via signals, but it's impossible to unshare PID namespaces, so

Re: [Lxc-users] Resources sharing and limit

2010-05-06 Thread Daniel Lezcano
Yanick Emiliano wrote: Hi everybody, I have just started playing with lxc and having some difficulties to set cpu and memory on my guests. After my searches, seems that resources controlling is managing in cgroup files and I think that I missed something or I didn't understand how deal with

Re: [Lxc-users] lxc-start leaves temporary pivot dir behind

2010-05-06 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: While playing with lxc-start, I noticed that /tmp is infested by empty lxc-r* directories: [...] Ok, this name comes from lxc-rootfs in conf.c:setup_rootfs. After setup_rootfs_pivot_root returns

Re: [Lxc-users] lxc-unshare woes and signal forwarding in lxc-start

2010-05-06 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: I'd like to use lxc-start as a wrapper, invisible to the parent and the (jailed) child. Of course I could hack around this by not exec-ing lxc-start but keeping the shell around, trap all

Re: [Lxc-users] lxc-start leaves temporary pivot dir behind

2010-05-06 Thread Daniel Lezcano
Ferenc Wagner wrote: Ferenc Wagner wf...@niif.hu writes: Daniel Lezcano dlezc...@fr.ibm.com writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: While playing with lxc-start, I noticed that /tmp is infested by empty lxc-r* directories

Re: [Lxc-users] lxc-unshare woes and signal forwarding in lxc-start

2010-05-06 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: I'd like to use lxc-start as a wrapper, invisible to the parent and the (jailed) child

Re: [Lxc-users] lxc-start leaves temporary pivot dir behind

2010-05-08 Thread Daniel Lezcano
Ferenc Wagner wrote: Ferenc Wagner wf...@niif.hu writes: Daniel Lezcano dlezc...@fr.ibm.com writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: While playing with lxc-start, I noticed that /tmp is infested

Re: [Lxc-users] lxc-start leaves temporary pivot dir behind

2010-05-10 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Ferenc Wagner wf...@niif.hu writes: Daniel Lezcano dlezc...@fr.ibm.com writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes

Re: [Lxc-users] lxc-start leaves temporary pivot dir behind

2010-05-11 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: We can't simply remove it because of the pivot_root which returns EBUSY. I suppose it's coming from: new_root and put_old must

Re: [Lxc-users] Ltsp on LXC: PXE-E32: TFTP open Timeout

2010-05-12 Thread Daniel Lezcano
Osvaldo Filho wrote: I get this error on thinclient boot: PXE-E32: TFTP open timeout Can you give the version and the configuration of lxc, the host configuration, the kernel version, and the circumstances of the problem ? Thanks -- Daniel

Re: [Lxc-users] Ltsp on LXC: PXE-E32: TFTP open Timeout

2010-05-12 Thread Daniel Lezcano
Osvaldo Filho wrote: Host Environment: Linux ltspserver01 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux lxc 0.6.5-1 Linux containers userspace tools === lxc.utsname = ltsp2 lxc.tty = 4 lxc.pts = 1024 lxc.network.type = veth

Re: [Lxc-users] Ltsp on LXC: PXE-E32: TFTP open Timeout

2010-05-12 Thread Daniel Lezcano
-unreachable REJECT all -- anywhere anywhere reject-with icmp-port-unreachable Chain OUTPUT (policy ACCEPT) target prot opt source destination = The problem, perhaps, is with openbsd-inetd. 2010/5/12 Daniel Lezcano daniel.lezc...@free.fr: Osvaldo Filho

Re: [Lxc-users] lxc-start leaves temporary pivot dir behind

2010-05-12 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Actually, I'm not sure you can fully solve this. If rootfs is a separate file system

Re: [Lxc-users] lxc-start leaves temporary pivot dir behind

2010-05-13 Thread Daniel Lezcano
Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Daniel Lezcano daniel.lezc...@free.fr writes: Ferenc Wagner wrote: Actually, I'm not sure you can fully solve

Re: [Lxc-users] LXC a feature complete replacement of OpenVZ?

2010-05-13 Thread Daniel Lezcano
On 05/13/2010 06:17 PM, Christian Haintz wrote: Hi, At first LXC seams to be a great work from what we have read already. There are still a few open questions for us (we are currently running dozens of OpenVZ Hardwarenodes). 1) OpenVZ in the long-term seams to be a dead end. Will LXC be a

Re: [Lxc-users] [lxc-devel] lxc-start and lucid container

2010-05-19 Thread Daniel Lezcano
On 05/17/2010 05:00 PM, Bodhi Zazen wrote: Sorry for the delay, I missed your mail in the spam filter :/ -- ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net

Re: [Lxc-users] help with root mount parameters

2010-05-26 Thread Daniel Lezcano
On 05/26/2010 11:07 AM, atp wrote: Thanks to both for the replies. This now makes sense. I've specified the rootfs.mount in the container config, and it gets past there and boots ok. Just in case anyone else cares, a very handy debug log can be had by using this command. lxc-start

Re: [Lxc-users] lxc-unshare woes and signal forwarding in lxc-start

2010-05-26 Thread Daniel Lezcano
On 05/13/2010 02:22 PM, Ferenc Wagner wrote: [ ... ] I attached a proof-of-concept patch which seems to work good enough for me. The function names are somewhat off now, but I leave that for later Ferenc, do you have definitive version for this ? I have some modifications in the start

Re: [Lxc-users] help with root mount parameters

2010-05-26 Thread Daniel Lezcano
On 05/26/2010 08:10 PM, Brian K. White wrote: On 5/26/2010 4:54 AM, Ralf Schmitt wrote: Daniel Lezcanodlezc...@fr.ibm.com writes: This is internal stuff of lxc. Before this commit, several temporary directories were created and never destroyed, polluting '/tmp'. In order to do

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-27 Thread Daniel Lezcano
On 05/27/2010 10:21 AM, Toby Corkindale wrote: On 27/05/10 18:06, atp wrote: As requested: ifconfig br0 from the host br0 Link encap:Ethernet HWaddr 00:1e:37:4d:8c:d8 inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr:

Re: [Lxc-users] Storage with lxc

2010-05-27 Thread Daniel Lezcano
On 05/27/2010 12:05 PM, Yanick Emiliano wrote: Hi everybody I would like know if lxc at this stage suppots centralization network storage. I mean a Storage Filer , iSCSI, or *AoE storage*,For example can I have all my rootfs on a network filer and start each VM on a specific device storage

Re: [Lxc-users] Dreadful network performance, only to host from container

2010-05-28 Thread Daniel Lezcano
On 05/28/2010 02:58 AM, Toby Corkindale wrote: On 28/05/10 05:55, Matt Bailey wrote: /usr/sbin/ethtool -K br0 sg off /usr/sbin/ethtool -K br0 tso off Might fix your problem, YMMV; this worked for me. Bam! Problem fixed. All I needed was the 'sg' option - tso wasn't enabled anyway. Now

Re: [Lxc-users] [lxc-devel] template-script for ubuntu [lucid] containers

2010-06-01 Thread Daniel Lezcano
On 06/01/2010 09:50 PM, Wilhelm wrote: Am 01.06.2010 16:06, schrieb Daniel Lezcano: On 06/01/2010 06:04 PM, Daniel Lezcano wrote: On 05/30/2010 07:07 PM, Wilhelm wrote: Hi, for all interested: attached you'll find a template script for ubuntu containers. Hi Willem, thanks a lot

Re: [Lxc-users] [lxc-devel] template-script for ubuntu [lucid] containers

2010-06-01 Thread Daniel Lezcano
On 06/01/2010 10:12 PM, Wilhelm wrote: Am 01.06.2010 20:05, schrieb Daniel Lezcano: On 06/01/2010 09:50 PM, Wilhelm wrote: Am 01.06.2010 16:06, schrieb Daniel Lezcano: On 06/01/2010 06:04 PM, Daniel Lezcano wrote: On 05/30/2010 07:07 PM, Wilhelm wrote: Hi, for all interested: attached

Re: [Lxc-users] container shutdown

2010-06-02 Thread Daniel Lezcano
On 06/01/2010 08:27 PM, atp wrote: Ok, absolutely the last post tonight. I promise. I fixed the find /var/run -exec rm -f {} command in rc.sysinit. Now the problem is that the runlevel is written whilst things are still shutting down; /lxc/test01.dev.tradefair/rootfs/var/run/utmp MODIFY

Re: [Lxc-users] Questions on lxc-execute

2010-06-03 Thread Daniel Lezcano
On 06/03/2010 09:51 AM, Nirmal Guhan wrote: Have few questions on lxc-execute : 1) Getting an error as : [r...@guhan-fedora lxc]# lxc-execute --name=centos /bin/bash lxc-execute: No such file or directory - failed to exec /usr/libexec/lxc-init [r...@guhan-fedora lxc]# lxc-execute

Re: [Lxc-users] Questions on lxc-execute

2010-06-03 Thread Daniel Lezcano
On 06/03/2010 06:24 PM, Nirmal Guhan wrote: Forgot to mention previously that I am able to successfully do lxc-start on the same container and /bin/bash is also part of rootfs. Here is the strace output (pretty long). Failure seems to be at : [pid 2386] execve(/usr/libexec/lxc-init,

Re: [Lxc-users] File sharing between host and container during startup

2010-06-06 Thread Daniel Lezcano
On 06/04/2010 05:44 PM, Nirmal Guhan wrote: Hi, I tried to extend the fstab as below: /etc/resolv.conf /lxc/lenny/rootfs.lenny/etc/ resolv.conf none bind 0 0 /test /testdir none bind 0 0--- I added this line From the host : # ls /testdir a b c From the container :

Re: [Lxc-users] Set default GW

2010-06-09 Thread Daniel Lezcano
On 06/09/2010 09:15 PM, Bodhi Zazen wrote: Is there a way to set the default gateway in a linux container ? If I set an ipaddress in the config file lxc.utsname = foo lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.name = eth0 lxc.network.mtu = 1500

Re: [Lxc-users] Copy-on-write hard-link / hashify feature

2010-06-10 Thread Daniel Lezcano
On 06/10/2010 11:25 AM, Gordan Bobic wrote: On 06/09/2010 11:47 PM, Daniel Lezcano wrote: On 06/09/2010 10:46 PM, Gordan Bobic wrote: On 06/09/2010 09:08 PM, Daniel Lezcano wrote: On 06/09/2010 08:45 PM, Gordan Bobic wrote: Is there a feature that allows

Re: [Lxc-users] Copy-on-write hard-link / hashify feature

2010-06-11 Thread Daniel Lezcano
On 06/10/2010 10:54 PM, Gordon Henderson wrote: On Thu, 10 Jun 2010, John Drescher wrote: BTW, a second option is lessfs. http://www.lessfs.com/wordpress/?page_id=50 What about the KSM kernel option? It's aimed at KVM I think and in the kernel from 2.6.32. See:

Re: [Lxc-users] Copy-on-write hard-link / hashify feature

2010-06-11 Thread Daniel Lezcano
On 06/11/2010 11:08 AM, Gordan Bobic wrote: On 06/11/2010 09:57 AM, Daniel Lezcano wrote: On 06/10/2010 10:54 PM, Gordon Henderson wrote: On Thu, 10 Jun 2010, John Drescher wrote: BTW, a second option is lessfs. http://www.lessfs.com/wordpress/?page_id=50 What about the KSM kernel option

Re: [Lxc-users] Networking Qs

2010-06-18 Thread Daniel Lezcano
On 06/17/2010 06:49 PM, Nirmal Guhan wrote: Hi, Any reason why we require bridging in the host for lxc ? Am not able to setup IP address for the container unless I configure bridge in the host. You can use the macvlan but the container -- host communication won't work. Also couple of

Re: [Lxc-users] GPL

2010-06-22 Thread Daniel Lezcano
On 06/22/2010 01:44 AM, Nirmal Guhan wrote: Hi, Are the tools (lxc-create, lxc-enter etc.) and liblxc.so licensed under GPL v2 or v3 ? Please let me know. LGPL v2.1 -- ThinkGeek and WIRED's GeekDad team up for

Re: [Lxc-users] starting a container causes Xorg to consume 100% cpu

2010-06-22 Thread Daniel Lezcano
On 06/22/2010 07:05 PM, Daniel Lezcano wrote: On 06/22/2010 06:55 PM, Jon Nordby wrote: On 22 June 2010 17:32, Stuart Nixonstu...@rednut.net wrote: Hello LXCers When ever I start a lxc container the hosts Xorg process starts consuming 100% cpu time. Is this a known issue

Re: [Lxc-users] starting a container causes Xorg to consume 100% cpu

2010-06-22 Thread Daniel Lezcano
On 06/22/2010 05:32 PM, Stuart Nixon wrote: Hello LXCers When ever I start a lxc container the hosts Xorg process starts consuming 100% cpu time. Is this a known issue? Are there any work-arounds to avoid this behaviour? Ok, I think I got the problem. Until I fix this, you can use the

Re: [Lxc-users] starting a container causes Xorg to consume 100% cpu

2010-06-22 Thread Daniel Lezcano
On 06/22/2010 08:57 PM, Jon Nordby wrote: On 22 June 2010 19:50, Daniel Lezcanodaniel.lezc...@free.fr wrote: Until I fix this, you can use the workaround by specifying: lxc-start -n name -s lxc.console=$(tty) or lxc.console=/dev/null or lxc.console=mylog, whatever ... This

[Lxc-users] lxc-0.7.1 released

2010-06-24 Thread Daniel Lezcano
Hi All, Notes: == Bug fixes only. ChangeLog: == Ciprian Dorin, Craciun (1): lxc to apply mount options for bind mounts Daniel Lezcano (6): fix sshd template fix bad free when reading the configuration file fix default console to /dev/tty fix

Re: [Lxc-users] patch for read-only bind-mount

2010-06-24 Thread Daniel Lezcano
On 06/22/2010 07:25 AM, John Brendler wrote: lxc fails to make read-only bind mounts as documented. Read-only bind mounts are important to many use cases. A simple patch has been submitted to the lxc-devel mailing list (by Ciprian Dorin), but when I last checked, it was not clear if any

Re: [Lxc-users] lxc-start on openvz tempate

2010-06-24 Thread Daniel Lezcano
On 06/24/2010 11:16 PM, Papp Tamás wrote: Daniel Lezcano wrote, On 2010. 06. 24. 22:38: That's probably mean the container is already running. Did you checked with lxc-ps --name fsn ? Well, you are right. But shouldn't it also show it with lxc-ps --lxc ? Yes, correct. The --lxc option

Re: [Lxc-users] Gathering information about containers - from inside and from outside

2010-07-18 Thread Daniel Lezcano
On 07/18/2010 04:36 PM, Clemens Perz wrote: On 07/18/2010 02:39 PM, Daniel Lezcano wrote: On 07/18/2010 11:48 AM, Clemens Perz wrote: Hi, So doing a while on /var/lib/lxc as a starting point, run lxc-info on each, find out which one is running, examine its cgroup and so

Re: [Lxc-users] Running Fedora12 container on Ubuntu

2010-07-20 Thread Daniel Lezcano
On 07/20/2010 01:58 PM, Nikola Simidzievski wrote: Hi, I am trying to get Fedora 12 container on Ubuntu 10.4, but I have several problems. I installed new rootfs using febootstrap , and configured it, and created new fstab (guided form

Re: [Lxc-users] LXC container SSH X forwarding kernel crash

2010-07-23 Thread Daniel Lezcano
On 07/22/2010 05:09 PM, Arie Skliarouk wrote: Quoting Ferenc Holzhauser (ferenc.holzhau...@gmail.com): I'm experiencing an annoying kernel crash each time I'm trying to use SSH X forwarding into the container. I can open an SSH session but as soon as I start an X app, the crash

Re: [Lxc-users] LXC container SSH X forwarding kernel crash

2010-07-25 Thread Daniel Lezcano
On 07/24/2010 07:48 PM, Arie Skliarouk wrote: Hi, On Sat, Jul 24, 2010 at 00:14, Daniel Lezcanodaniel.lezc...@free.frwrote: I am trying to reproduce the problem on my system with the same kernel but it does not occur. What network configuration are you using ? I use following

Re: [Lxc-users] LXC container SSH X forwarding kernel crash

2010-07-26 Thread Daniel Lezcano
On 07/26/2010 11:34 AM, Ferenc Holzhauser wrote: On 26 July 2010 10:56, Daniel Lezcanodaniel.lezc...@free.fr wrote: On 07/26/2010 08:57 AM, Ferenc Holzhauser wrote: Hi, I beileve I can reproduce it and get a crash image. Then apport or crash could possibly show something useful.

Re: [Lxc-users] LXC container SSH X forwarding kernel crash

2010-07-26 Thread Daniel Lezcano
On 07/26/2010 11:34 AM, Ferenc Holzhauser wrote: On 26 July 2010 10:56, Daniel Lezcanodaniel.lezc...@free.fr wrote: On 07/26/2010 08:57 AM, Ferenc Holzhauser wrote: [ ... ] I've already searched for a known issue based on the crash information I have, with no luck. I don't think I have

Re: [Lxc-users] lxc-attach setns patch for kernel 2.6.34

2010-07-28 Thread Daniel Lezcano
On 07/28/2010 10:59 AM, Sebastien Pahl wrote: Nice thats what I thought. I will build a 2.6.34.1 kernel. If everything works like expected I will send you the updated patchset. Cool. Thanks ! Does it have to be in the quilt format? Yes if possible. You can send me directly a tarball, I will

Re: [Lxc-users] Analise this: config without fstab / root directory (/) is read only

2010-07-30 Thread Daniel Lezcano
On 07/30/2010 07:52 AM, Osvaldo Filho wrote: What are the lxc and kernel version ? config lxc.utsname = lucid64 lxc.tty = 4 lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.name = eth0 lxc.network.mtu = 1500 lxc.network.ipv4 = 192.168.10.0/24

Re: [Lxc-users] LXC and iperf: Why the difference between flows?

2010-08-03 Thread Daniel Lezcano
On 08/03/2010 07:53 PM, Nirmal Guhan wrote: On Tue, Aug 3, 2010 at 10:24 AM, Osvaldo Filhoarquivos...@gmail.com wrote: Why have this difference? Client on container [ 3] local 192.168.6.10 port 58172 connected with 192.168.6.1 port 5001 [ ID] Interval Transfer Bandwidth [

Re: [Lxc-users] LTSp Server on LXC container.

2010-08-03 Thread Daniel Lezcano
On 08/03/2010 03:10 AM, Osvaldo Filho wrote: I want to jail users to a LTSP server. I thought it would be easy to LXC. But I'm having problems. - the ltsp-build-client - arch i386 does not end. r...@localhost:/opt# ltsp-build-client --arch i386 ... I: Extracting upstart... I: Extracting

Re: [Lxc-users] LTSp Server on LXC container.

2010-08-03 Thread Daniel Lezcano
On 08/04/2010 12:16 AM, Daniel Lezcano wrote: On 08/03/2010 03:10 AM, Osvaldo Filho wrote: I want to jail users to a LTSP server. I thought it would be easy to LXC. But I'm having problems. - the ltsp-build-client - arch i386 does not end. r...@localhost:/opt# ltsp-build-client --arch

Re: [Lxc-users] lxc-attach setns patch for kernel 2.6.34

2010-08-05 Thread Daniel Lezcano
On 08/04/2010 02:13 AM, Sebastien Pahl wrote: Here is a refreshed patch for 2.6.35. The 2.6.34.2 kernel can use the 2.6.34.1 patch without problems. I tested both and they work. Uploaded ! Thanks Sebastian ! --

Re: [Lxc-users] port numbers for containers

2010-08-12 Thread Daniel Lezcano
On 08/12/2010 01:05 AM, Nirmal Guhan wrote: On Wed, Aug 11, 2010 at 11:05 AM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Nirmal Guhan (vavat...@gmail.com): On Wed, Aug 11, 2010 at 5:06 AM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Nirmal Guhan (vavat...@gmail.com):

Re: [Lxc-users] Best way to shutdown a container

2010-08-13 Thread Daniel Lezcano
On 08/13/2010 04:30 PM, Clemens Perz wrote: On 08/13/2010 03:55 PM, Clemens Perz wrote: Hi! I used to run lxc-stop on my system containers when I actually want to run a halt. Only today I noticed, that stop actually kills all processes, not really doing a halt. I went through the lxc

Re: [Lxc-users] 6mn to launch a VM (lxc hung_task_timeout_secs)

2010-08-19 Thread Daniel Lezcano
On 08/19/2010 11:18 AM, Sebastien Douche wrote: Hi folks, I have the problem each time I launch a VM (no more result with the sysctl setting). Any ideas to resolve this issue? The dmesg: [ 7560.404075] INFO: task mount:27788 blocked for more than 120 seconds. [ 7560.404123] echo 0

Re: [Lxc-users] port numbers for containers

2010-08-19 Thread Daniel Lezcano
On 08/19/2010 02:33 PM, Sebastien Douche wrote: On Thu, Aug 12, 2010 at 10:29, Daniel Lezcanodlezc...@fr.ibm.com wrote: Answering to your question, if you do lxc.network.type=macvlan, the network stack will be private to your container. Hi Daniel, not sure I understand your

Re: [Lxc-users] 6mn to launch a VM (lxc hung_task_timeout_secs)

2010-08-20 Thread Daniel Lezcano
On 08/20/2010 09:16 AM, Sebastien Douche wrote: On Thu, Aug 19, 2010 at 23:23, Daniel Lezcanodaniel.lezc...@free.fr wrote: Hmm, it is very probable the problem is located in the kernel. This kind of warnings appears when a task is in a uninterruptible state and the kernel compilation

Re: [Lxc-users] Running XOrg in a container

2010-08-23 Thread Daniel Lezcano
On 08/23/2010 01:13 PM, l...@jelmail.com wrote: With some tweaks that maybe possible, but IMHO it is not adequate. Lxc is not like QEMU/KVM or Virtualbox, the hardware is not virtualized, so you may have conflicts with the differents X server because they will share the same hardware (eg.

Re: [Lxc-users] Running XOrg in a container

2010-08-23 Thread Daniel Lezcano
On 08/23/2010 03:01 PM, l...@jelmail.com wrote: With some tweaks that maybe possible, but IMHO it is not adequate. Lxc is not like QEMU/KVM or Virtualbox, the hardware is not virtualized, so you may have conflicts with the differents X server because they will share the same

Re: [Lxc-users] getty's and lxc-console

2010-08-25 Thread Daniel Lezcano
On 08/25/2010 11:45 AM, Clemens Perz wrote: Daniel, maybe you want to have a look on this, too. The current debian templates add lxc.pts = 1024 to the config. If you have two containers with that setting and you start them, only the first one started will give you access to the console. The

Re: [Lxc-users] getty's and lxc-console

2010-08-25 Thread Daniel Lezcano
On 08/25/2010 12:51 PM, Clemens Perz wrote: On 08/25/2010 12:05 PM, Daniel Lezcano wrote: On 08/25/2010 11:45 AM, Clemens Perz wrote: Daniel, maybe you want to have a look on this, too. The current debian templates add lxc.pts = 1024 to the config. If you have two containers

Re: [Lxc-users] Cannot start a container with a new MAC address

2010-08-27 Thread Daniel Lezcano
On 08/27/2010 11:27 AM, Sebastien Douche wrote: I created a container with an interface. I stop it, I change the MAC address, restart it: lxc-start: ioctl failure : Cannot assign requested address lxc-start: failed to setup hw address for 'eth0' lxc-start: failed to setup netdev lxc-start:

Re: [Lxc-users] unstoppable container

2010-08-30 Thread Daniel Lezcano
On 08/30/2010 02:11 PM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 08/30/2010 12:40 PM, Papp Tamás wrote: In the tasks file I saw three processes: udevd, init and one more, which I don't remember. I killed them all, but the cgroup still exists.

Re: [Lxc-users] unstoppable container

2010-08-30 Thread Daniel Lezcano
On 08/31/2010 12:23 AM, Serge E. Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 08/30/2010 02:36 PM, Serge E. Hallyn wrote: Quoting Papp Tamás (tom...@martos.bme.hu): Daniel Lezcano wrote, On 2010. 08. 30. 13:08: Usually, there is a mechanism

Re: [Lxc-users] unstoppable container

2010-08-31 Thread Daniel Lezcano
On 08/31/2010 12:07 PM, Papp Tamás wrote: Serge E. Hallyn wrote, On 2010. 08. 31. 4:06: Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 08/31/2010 12:23 AM, Serge E. Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 08/30/2010 02:36 PM, Serge E. Hallyn wrote: Quoting

Re: [Lxc-users] Container swap usage question

2010-08-31 Thread Daniel Lezcano
On 08/31/2010 09:30 AM, Victor Leschuk wrote: Hello all, I have been playing with LXC for few days and I got a question. I am using a simple container without OS and network just to launch applications with certain resource limits using lxc-execute. Here is a configuration: $ cat

Re: [Lxc-users] resize2fs

2010-09-05 Thread Daniel Lezcano
On 09/04/2010 11:16 PM, Papp Tamás wrote: hi All, I don't know, whether this is lxc releated, or only ext3. The system is an uptodate Ubuntu Lucid 10.04 x86_64 . I tried to resize a partition, unser an lxc container. I did it from the host. The partition was mounted on a subdirectory of the

Re: [Lxc-users] linux32/setarch

2010-09-07 Thread Daniel Lezcano
On 09/07/2010 11:05 AM, Ralf Schmitt wrote: Hi all, I'm running a 32 bit container on a 64 bit host system. Is there a configuration option to set the architecture? Currently I'm using 'linux32 lxc-start -n NAME' to set the architecture. hum, no. Maybe that would be worth to add a

Re: [Lxc-users] uptodate Ubuntu Lucid guests

2010-09-10 Thread Daniel Lezcano
On 09/09/2010 11:22 PM, Papp Tamás wrote: Daniel Lezcano wrote, On 2010. 09. 05. 22:30: Well, I can. Now again, right after I start a container I get the kernel panic. I see the console through a KVM, this is a screenshot: Papp, I suppose you attached an image but I don't see

Re: [Lxc-users] uptodate Ubuntu Lucid guests

2010-09-13 Thread Daniel Lezcano
On 09/13/2010 12:16 AM, Papp Tamás wrote: Papp Tamás wrote, On 2010. 09. 12. 23:18: hi! I also tried with qemu and no problem. I've just upgraded the box to Maverick, and after a short time it looks better. After 1 hour still it's up and working. I don't know, if it helps.

Re: [Lxc-users] linux32/setarch

2010-09-13 Thread Daniel Lezcano
On 09/07/2010 11:34 AM, Ralf Schmitt wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 09/07/2010 11:05 AM, Ralf Schmitt wrote: Hi all, I'm running a 32 bit container on a 64 bit host system. Is there a configuration option to set the architecture? Currently I'm using

Re: [Lxc-users] uptodate Ubuntu Lucid guests

2010-09-13 Thread Daniel Lezcano
On 09/13/2010 10:15 AM, Ferenc Holzhauser wrote: On 13 September 2010 00:16, Papp Tamástom...@martos.bme.hu wrote: Papp Tamás wrote, On 2010. 09. 12. 23:18: hi! I also tried with qemu and no problem. I've just upgraded the box to Maverick, and after a short time it looks better. After

Re: [Lxc-users] Launch multiple apps in exactly on container

2010-09-16 Thread Daniel Lezcano
On 09/16/2010 09:36 AM, Jue Hong wrote: As I understand, running one application with the command lxc-execute will create a container instance. E.g., by running lxc-execute -n foo /bin/bash, a container named foo will be created, and I can find a foo directory under the mounted cgroup

Re: [Lxc-users] Launch multiple apps in exactly on container

2010-09-16 Thread Daniel Lezcano
On 09/16/2010 10:56 AM, Jue Hong wrote: Sure Daniel, what you say actually works. But I still want to know, whether I can launch another app into a running container. Doing as you say: lxc-execute -n foo /bin/bash -- this bash runs inside container 'foo' lxc-execute -n bar /bin/bash

Re: [Lxc-users] failed to open '/proc/12580/ns/pid'

2010-09-17 Thread Daniel Lezcano
On 09/17/2010 05:06 PM, Sebastien Pahl wrote: I hope so too:-) Daniel do you have any news about this? Yes, I had a private discussion last week with Eric Bierderman, and he said he will send the patches for upstream at the end of this week or next week if he has time and enough bandwidth to

Re: [Lxc-users] Mounting filesystem for container

2010-09-18 Thread Daniel Lezcano
On 09/17/2010 11:41 PM, l...@jelmail.com wrote: Hi, I just tried to mount a filesystem in a container and I got this: [root ~]# lxc-start -n mycontainer lxc-start: Operation not permitted - failed to mount '/dev/sdd1' on '/srv/lxc/mycontainer/mnt' lxc-start: failed to setup the mounts for

Re: [Lxc-users] Mounting filesystem for container

2010-09-20 Thread Daniel Lezcano
On 09/20/2010 11:13 AM, l...@jelmail.com wrote: As mentioned Serge, that maybe the cgroup device white list which prevent you to do that. You can check by temporarly comment out in /var/lib/lxc/mycontainer all the lxc.cgroup.devices lines and then launch the container again. If you

Re: [Lxc-users] lxc doesn't work on Fedora 13

2010-09-21 Thread Daniel Lezcano
On 09/17/2010 10:27 AM, Scott Bronson wrote: I have lxc working pretty well on my Ubuntu Lucid box. Now I'm trying to get it to work on my Fedora 13 laptop but I can't seem to get it to connect to any guest consoles. I was able to reproduce it. I have the 'init' process and the

Re: [Lxc-users] lxc doesn't work on Fedora 13

2010-09-23 Thread Daniel Lezcano
On 09/23/2010 05:28 AM, Scott Bronson wrote: On Tue, Sep 21, 2010 at 8:27 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: I was able to reproduce it. I have the 'init' process and the 'mountall' processes. The latter is blocked on: That smells right. Good find! Wouldn't

Re: [Lxc-users] automount in the container

2010-09-24 Thread Daniel Lezcano
On 09/24/2010 09:02 AM, Helmut Lichtenberg wrote: Hi, I set up my first container and want to mount the home directories for the users with automount/autofs5. During installation of autofs5 in the container, it complained that it can't create /dev/autofs. Create this node with mknod was

  1   2   3   4   >