Re: [Lxc-users] start ubuntu in a lxc?

2012-03-05 Thread Fajar A. Nugraha
2012/3/6 陈竞 cj.mag...@gmail.com: I see that we can start a ubuntu in a lxc. So when ubuntu do block io operation, what does it really do, since it does not simulate hardware? All OS running in lxc containers shares the same kernel with the host. The kernel performs the necessary i/o operation.

Re: [Lxc-users] Ubuntu 12.04 linux-container package and init modifications

2012-03-06 Thread Fajar A. Nugraha
On Wed, Mar 7, 2012 at 10:45 AM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Fajar A. Nugraha (l...@fajar.net): # cat /etc/init/lxc-lo.conf start on startup env container pre-start script         if [ x$container != xlxc -a x$container != xlibvirt ]; then                 stop

Re: [Lxc-users] how to configure lxc's route table without route cmd?

2012-03-06 Thread Fajar A. Nugraha
2012/3/7 陈竞 cj.mag...@gmail.com: i start a container with virtual network without configuring route, i wonder if i can configure route table according to lxc configure file or changing some file in host os. i dont want to execute route command in lxc. IMHO it's easier to: - create bridged

Re: [Lxc-users] how to start sshd service in application container?

2012-03-07 Thread Fajar A. Nugraha
2012/3/7 陈竞 cj.mag...@gmail.com: we know that we can start sshd in system container. You mean the host? However can we start sshd in application container? You mean the guest? Sure. since the application container has virtual network configuration. Just start it like you usually do from

Re: [Lxc-users] Upgrade distribution

2012-03-07 Thread Fajar A. Nugraha
2012/3/7 Miroslav Lednicky miroslav.ledni...@fnusa.cz: Hello,        i have question about LXC in Ubuntu. Is it possible to do upgrade system inside LXC?  From 10.04 to 12.04 for example. If you can upgrade it on a normal installation, then you should be able to do it inside lxc. Did

Re: [Lxc-users] Can we run Ubuntu template on RHEL6?

2012-03-07 Thread Fajar A. Nugraha
On Thu, Mar 8, 2012 at 9:07 AM, Allen Elliott allen303al...@gmail.com wrote: 在 2012年3月7日星期三,Mauras Olivier oliver.mau...@gmail.com 写道: On Wed, Mar 7, 2012 at 3:16 PM, Allen Elliott allen303al...@gmail.com It seems fine most of time, except the connection, I can't connect to the guest OS from

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

2012-03-07 Thread Fajar A. Nugraha
2012/3/8 陈竞 cj.mag...@gmail.com: i am running gentoo in my host What kernel are you using? Ubuntu precise uses 3.2, which works just fine. Gentoo should have latest stable available as well. -- Fajar -- Virtualization

Re: [Lxc-users] Ubuntu 12.04 container non-root logins fail

2012-03-08 Thread Fajar A. Nugraha
On Fri, Mar 9, 2012 at 10:34 AM, Thaddeus Hogan thadd...@thogan.com wrote: When I start this container everything is working fine. However I don't want my containers in /var/lib/lxc (ext4 fs) so I copy the rootfs to a btrfs volume mounted to /vm, into a subvolume that shares its name with the

Re: [Lxc-users] Installing Centos6 lxc guests under CentOS6 hosts

2012-03-10 Thread Fajar A. Nugraha
On Sat, Mar 10, 2012 at 6:57 PM, carlopmart carlopm...@gmail.com wrote: Hi all,   I am trying to install a centos 6.2 container under centos 6.2 host using libvirt and virt-manager. I have selected OS Container option, but when I try to launch this guest virt-manager returns me this error:

Re: [Lxc-users] Installing Centos6 lxc guests under CentOS6 hosts

2012-03-10 Thread Fajar A. Nugraha
On Sat, Mar 10, 2012 at 10:11 PM, carlopmart carlopm...@gmail.com wrote: Many thanks Fajar. I am trying to build a new CentOS 6 image, but when I try to launch my lxc guest via virt-manager stops in Enabling /etc/swaps:     [OK] ... and no go. My lxc guest fstab is: rootfs          /        

Re: [Lxc-users] Installing Centos6 lxc guests under CentOS6 hosts

2012-03-10 Thread Fajar A. Nugraha
On Sun, Mar 11, 2012 at 6:02 AM, Fajar A. Nugraha l...@fajar.net wrote: On Sat, Mar 10, 2012 at 10:11 PM, carlopmart carlopm...@gmail.com wrote: Many thanks Fajar. I am trying to build a new CentOS 6 image, but when I try to launch my lxc guest via virt-manager stops in Enabling /etc/swaps

Re: [Lxc-users] Ubuntu template questions

2012-03-10 Thread Fajar A. Nugraha
On Sun, Mar 11, 2012 at 3:08 AM, Papp Tamas tom...@martos.bme.hu 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 related to guest creation and the template scripts. Since the existing

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 2:04 AM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Papp Tamas (tom...@martos.bme.hu): One more, I think very important question. Still there is no nice stop method in init configuration:      for f in /etc/lxc/auto/*; do          c=$(basename $f .conf)

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 1:49 PM, Daniel Baumann daniel.baum...@progress-technologies.net wrote: On 03/14/2012 02:37 AM, Serge Hallyn wrote: That unfortunately won't work with upstart in the host and guest. too bad then. since i have absolutely no clue about upstart at all.. i just hope there

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 1:58 PM, Fajar A. Nugraha l...@fajar.net wrote: On Wed, Mar 14, 2012 at 1:49 PM, Daniel Baumann daniel.baum...@progress-technologies.net wrote: On 03/14/2012 02:37 AM, Serge Hallyn wrote: That unfortunately won't work with upstart in the host and guest. too bad

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 3:17 PM, Jäkel, Guido g.jae...@dnb.de wrote: Dear Fajar, i just googled  http://www.makelinux.net/man/7/P/power-status-changed  . There's written:        This event is not handled in the default Upstart configuration. For control-alt-delete, the corresponding

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
On Thu, Mar 15, 2012 at 10:02 AM, Serge Hallyn serge.hal...@canonical.com wrote: On 03/14/2012 03:23 AM, Fajar A. Nugraha wrote: On Wed, Mar 14, 2012 at 3:17 PM, Jäkel, Guidog.jae...@dnb.de  wrote: Dear Fajar, i just googled  http://www.makelinux.net/man/7/P/power-status-changed  . There's

Re: [Lxc-users] CPU cgroup starts by itself

2012-03-15 Thread Fajar A. Nugraha
On Thu, Mar 15, 2012 at 7:44 PM, Goran Cetusic goran.cetu...@gmail.com wrote: I have problems with starting containers in Linux Mint Debian Edition because /dev/cgroup/cpu is mounted by itself. lxc-start: cgroup is not mounted lxc-start: failed to setup the cgroups for 'imunes' lxc-start:

Re: [Lxc-users] CPU cgroup starts by itself

2012-03-15 Thread Fajar A. Nugraha
On Thu, Mar 15, 2012 at 10:18 PM, Goran Cetusic goran.cetu...@gmail.com wrote: Found the culprit in...wait for it...rc.local! Also, there are commands in /etc/bash.bashrc that reference the mounted folders so an error pops up whenever you open bash: /etc/bash.bashrc:   mkdir -p -m 0700

Re: [Lxc-users] lxc-execute can not access to network

2012-03-15 Thread Fajar A. Nugraha
On Fri, Mar 16, 2012 at 9:58 AM, Sam Wang zhefw...@gmail.com wrote: First,I add a bridge in my computer,and the bridge IP is 10.0.2.15 How? lxc.network.link=br0 Is this the correct brige? lxc.network.ipv4=10.0.2.16/24 Not sure about this one. Personally I just run a dhcp server on the host

Re: [Lxc-users] container shutdown

2012-03-18 Thread Fajar A. Nugraha
On Mon, Mar 19, 2012 at 7:05 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 03/19/2012 12:00 AM, Serge Hallyn wrote: Hi, Thanks to Jäkel's and Fajar's great ideas, we can now cleanly shut down a container by sending it SIGPWR.  I'm attaching two ways to do that. In-line is a patch

Re: [Lxc-users] can I use lxc-execute to execute an application with network configured

2012-03-19 Thread Fajar A. Nugraha
2012/3/19 Sam Wang zhefw...@gmail.com: My need is that I want to use lxc-execute to start an application container to execute an application which need a unique IP address. Most applications can bind to a specific IP address only :) I have tried using bridge but the application can only

[Lxc-users] Ubuntu 12.04 - apparmor problem (WAS: Ubuntu 12.04 linux-container package and init modifications)

2012-03-20 Thread Fajar A. Nugraha
On Thu, Mar 8, 2012 at 1:16 AM, Stéphane Graber stgra...@ubuntu.com wrote: I hope this helped explain what we're doing in 12.04. I'm planning on a generic what's new in LXC for 12.04 blog post in the next few days, once we've turned apparmor back on and have somewhat secure containers again

Re: [Lxc-users] does lxc support controlling network io?

2012-03-20 Thread Fajar A. Nugraha
2012/3/20 陈竞 cj.mag...@gmail.com: lxc can support control block io, cpu and memory, can lxc support controlling network io? If by control you mean throttle the bandwidth, then AFAIK no. As in, no, cgroups (and thus lxc) can't throttle network I/O. However since the most common implementation

Re: [Lxc-users] Ubuntu 12.04 - apparmor problem (WAS: Ubuntu 12.04 linux-container package and init modifications)

2012-03-20 Thread Fajar A. Nugraha
On Tue, Mar 20, 2012 at 8:11 PM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Fajar A. Nugraha (l...@fajar.net): I just updated lxc on 12.04 to 0.7.5-3ubuntu40, which reenables apparmor profile. My previously-working lxc containers now refused to start. It's possible you're

Re: [Lxc-users] lxc-execute fails to exec lxc-init

2012-03-27 Thread Fajar A. Nugraha
On Tue, Mar 27, 2012 at 6:16 PM, Peter Gillard-Moss pgill...@thoughtworks.com wrote: Hello, I wondered if you could help. I have installed lxc-init from the Ubuntu package repos for both Natty and Oneiric and both fail on lxc-execute with the same error. Versions used are 0.7.4-0ubuntu7.2

Re: [Lxc-users] Multiple lxc containers with same IP/ethernet address

2012-03-29 Thread Fajar A. Nugraha
On Fri, Mar 30, 2012 at 2:30 AM, Arun M arunmahadevai...@gmail.com wrote: Hello, I have a set up where there are multiple short lived containers (sharing the same IP address) in a host. Why? Don't do that. When a TCP connection is established from the container to an outside host (in a

Re: [Lxc-users] problem starting a container

2012-04-17 Thread Fajar A. Nugraha
On Wed, Apr 18, 2012 at 2:43 AM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Daniel Stefaniuk (daniel.stefan...@gmail.com): Then the container seems to bu up and running. However, if I try to login to that container using lxc-console I get only this message Type Ctrl+a q to exit

Re: [Lxc-users] problem starting a container

2012-04-19 Thread Fajar A. Nugraha
On Thu, Apr 19, 2012 at 7:36 PM, Daniel Stefaniuk daniel.stefan...@gmail.com wrote: I use Ubuntu 10.04 LTS amd64 server (custom kernel 3.3.2) for the host and containers. That would probably be one source of your problem :) The upcoming ubuntu 12.04 pretty much works out-of-the-box as lxc host

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

2012-04-20 Thread Fajar A. Nugraha
On Fri, Apr 20, 2012 at 3:05 PM, Papp Tamas tom...@martos.bme.hu wrote: hi, There is this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/986043 Has anybody meet it ever? Does anybody have an idea? Not in my setup. $ ifconfig br0 br0 Link encap:Ethernet HWaddr

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

2012-04-20 Thread Fajar A. Nugraha
On Fri, Apr 20, 2012 at 3:05 PM, Papp Tamas tom...@martos.bme.hu wrote: hi, There is this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/986043 Has anybody meet it ever? Does anybody have an idea? Not in my setup. $ ifconfig br0 br0 Link encap:Ethernet HWaddr

Re: [Lxc-users] Is there a Redhat template?

2012-04-25 Thread Fajar A. Nugraha
2012/4/25 Sam Wang zhefw...@gmail.com: In lxc templates directory,I've found lxc-ubuntu,lxc-fedora...but there is no Redhat template. who can tell me where can I find a Redhat template? thanks a lot. I don't think there is one. Mainly because you can only download software from RHN if you

Re: [Lxc-users] lxc-start via ssh

2012-04-27 Thread Fajar A. Nugraha
On Fri, Apr 27, 2012 at 5:31 PM, István Király - LaKing d...@yahoo.com wrote: Hi folks. I know lxc-start is sensitive from where it is called. Like for example, it doesn't like to be called from mc's shell. .. I'm am trying to start a container via ssh. .. Somehow I managed to create a

Re: [Lxc-users] lxc-start via ssh

2012-04-27 Thread Fajar A. Nugraha
On Fri, Apr 27, 2012 at 5:36 PM, Matthijs Kooijman matth...@stdin.nl wrote: Hi István, Somehow I managed to create a shell script that can start it, but for some reason executing the command directly via ssh does not work. lxc-start -n fc14 -o /temp/fc14.log -s lxc.console=/temp/fc14.sys

Re: [Lxc-users] current status of LXC in Ubuntu precise? (WAS: Problem mounting Host directory in guest)

2012-05-07 Thread Fajar A. Nugraha
On Tue, May 8, 2012 at 12:28 PM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Fajar A. Nugraha (l...@fajar.net): Hi Serge, Quick confirmation: does this mean that currently the default ubuntu lxc combo (userland, kernel, apparmor, etc) in ubuntu precise is broken, but are being

Re: [Lxc-users] starting container requires re-login?

2012-05-09 Thread Fajar A. Nugraha
On Wed, May 9, 2012 at 4:26 PM, 张章 zhang_zh...@live.com wrote: hello i have configured the lxc with basic settings like this: lxc.ustname = lxc1 lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.name = eth0 lxc.network.ipv4 =

Re: [Lxc-users] starting container requires re-login?

2012-05-09 Thread Fajar A. Nugraha
On Thu, May 10, 2012 at 8:17 AM, 张章 zhang_zh...@live.com wrote: Many thanks I switch to Ubuntu 12.04 and use lxc-ubuntu to prepare my filesystem. Then I add the network part to config file like: lxc.utsname = amd64 lxc.tty = 4 lxc.pts = 1024 lxc.rootfs = /lxc/rootfs lxc.mount =

Re: [Lxc-users] current status of LXC in Ubuntu precise? (WAS: Problem mounting Host directory in guest)

2012-05-10 Thread Fajar A. Nugraha
On Tue, May 8, 2012 at 12:40 PM, Fajar A. Nugraha l...@fajar.net wrote: On Tue, May 8, 2012 at 12:28 PM, Serge Hallyn serge.hal...@canonical.com wrote: Also, a quick test on my setup (ubuntu precise amd64, linux-image-3.2.0-24-generic 3.2.0-24.37, lxc 0.7.5-3ubuntu53) shows freshly created

Re: [Lxc-users] Current status of lxc on ubuntu lucid and red hat 6

2012-05-10 Thread Fajar A. Nugraha
On Fri, May 11, 2012 at 9:54 AM, 张章 zhang_zh...@live.com wrote: hello,all I have tried starting linux container(lxc 0.7.5) on lucid and red hat 6, but both failed (succeeded in ubuntu precise) If a linux environment has recent-enough kernel and lxc userland tools, it should work. So if you're

Re: [Lxc-users] Network interface isolation

2012-05-14 Thread Fajar A. Nugraha
On Mon, May 14, 2012 at 11:48 PM, jeetu.gol...@gmail.com jeetu.gol...@gmail.com wrote: Are there other similar instances where I should make specific mention in the config file in order to prevent accidental and inadvertent sharing of resources between host and container? Try creating a

Re: [Lxc-users] Network interface isolation

2012-05-14 Thread Fajar A. Nugraha
On Tue, May 15, 2012 at 10:22 AM, jeetu.gol...@gmail.com jeetu.gol...@gmail.com wrote: Hi Fajar, Thanks for your response. I used the debian template and the config file does not (as far as I can tell) have any network related stanzas. Unfortunately this default behaviour lead to the

Re: [Lxc-users] kernel.shmmax in LXC

2012-06-08 Thread Fajar A. Nugraha
On Fri, Jun 8, 2012 at 2:58 PM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 06/07/2012 12:45 PM, Jan Den Ouden wrote: Hi, About a week ago I posted exactly the same question on this list, but I didn't get any responses. I have googled high and low for the answer to this, but no result.

Re: [Lxc-users] kernel.shmmax in LXC

2012-06-09 Thread Fajar A. Nugraha
On Fri, Jun 8, 2012 at 8:47 PM, Stéphane Graber stgra...@ubuntu.com wrote: On 06/08/2012 04:27 AM, Fajar A. Nugraha wrote: On Fri, Jun 8, 2012 at 2:58 PM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 06/07/2012 12:45 PM, Jan Den Ouden wrote: Hi, About a week ago I posted exactly

Re: [Lxc-users] IPv4 container in a non-IPv4 main system ?

2012-06-09 Thread Fajar A. Nugraha
On Sat, Jun 9, 2012 at 7:39 PM, Sébastien Montagne sebastien.monta...@gmail.com wrote: Hi dears, do you think it would be easy/hard/not possible to setup a container with an IPv4 address (optionnaly with an IPv6 address as well) in a IPv6-only (i.e. without an IPv4 address) main system ?

Re: [Lxc-users] LXC on ubuntu precise and dhclient/net config

2012-06-11 Thread Fajar A. Nugraha
Please keep cc to the list On Sun, Jun 10, 2012 at 1:42 PM, Vasiliy Molostov molost...@gmail.com wrote: On Sun, Jun 10, 2012 at 3:24 AM, Vasiliy Molostov molost...@gmail.com wrote: It shouldn't be related to apparmor. It MIGHT be related to bridge forwarding delay though. You didn't say

Re: [Lxc-users] IPv4 container in a non-IPv4 main system ?

2012-06-11 Thread Fajar A. Nugraha
On Tue, Jun 12, 2012 at 2:16 AM, Sébastien Montagne sebastien.monta...@gmail.com wrote: Now trying to setup it correctly ;) Sorry for annoying you again, but I couldn't make it work... Maybe someone could help ? My problem : I can't ping my gateway 91.121.99.254 from my container 

Re: [Lxc-users] IPv4 container in a non-IPv4 main system ?

2012-06-11 Thread Fajar A. Nugraha
On Tue, Jun 12, 2012 at 12:23 PM, Sébastien Montagne sebastien.monta...@gmail.com wrote: It seems that ARP reply is not seen in guest's eth0... Well, fix that :) Guest netstat -nr : # netstat -nr Kernel IP routing table Destination     Gateway         Genmask         Flags   MSS Window  

Re: [Lxc-users] IPv4 container in a non-IPv4 main system ?

2012-06-12 Thread Fajar A. Nugraha
On Tue, Jun 12, 2012 at 12:59 PM, Sébastien Montagne sebastien.monta...@gmail.com wrote: No firewall on my system. Are you sure? :) RHEL-derivates have iptables turned-on by default, and the default setup also filters bridged traffic. It is a hosted server ; I have only 1 available IPv4

Re: [Lxc-users] kernel.shmmax in LXC

2012-06-14 Thread Fajar A. Nugraha
. -- Fajar On Sat, Jun 9, 2012 at 6:56 PM, Stéphane Graber stgra...@ubuntu.com wrote: On 06/09/2012 06:38 AM, Fajar A. Nugraha wrote: However the apparmor problem might not seem obvious because there's no apparmor warning on syslog when you try to set shmmax with apparmor enabled. Also

Re: [Lxc-users] IPv4 container in a non-IPv4 main system ?

2012-06-14 Thread Fajar A. Nugraha
On Wed, Jun 13, 2012 at 2:00 PM, Fajar A. Nugraha l...@fajar.net wrote: I suggest you try ubuntu precise (with its kernel 2.6.32). Possibly on your workstation first (e.g. with virtualbox/kvm). I meant kernel 3.2 -- Fajar

Re: [Lxc-users] containers always seem to lock the host's X session

2012-06-15 Thread Fajar A. Nugraha
On Fri, Jun 15, 2012 at 7:26 PM, John Maclean jaye...@gmail.com wrote: Hello all, I have built lxc from the git hub repo and have been able to create containers using the stock templates for fedora. However, whenever I start a container it always locks the hosts, X session. a - How can i

Re: [Lxc-users] Maverick Template Issues with a Ubuntu Precise Host

2012-06-18 Thread Fajar A. Nugraha
On Tue, Jun 19, 2012 at 10:16 AM, Ken Elkabany k...@elkabany.com wrote: Hello, I have a Ubuntu Precise host, where I created a few test containers using the following commands: lxc-create -n env3 -t ubuntu -- -r precise lxc-create -n env4 -t ubuntu -- -r natty lxc-create -n env5 -t ubuntu

Re: [Lxc-users] linkedin

2012-06-19 Thread Fajar A. Nugraha
On Tue, Jun 19, 2012 at 8:43 PM, Papp Tamas tom...@martos.bme.hu wrote: 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

Re: [Lxc-users] Authoritative CentOS 6.2 template?

2012-06-25 Thread Fajar A. Nugraha
On Mon, Jun 25, 2012 at 11:41 PM, Johannes Graumann johannes_graum...@web.de wrote: Hello, Is there an authoritative lxc-template repository somewhere Authoritative? Not that I lnow of and/or does a template for the latest incarnation of CentOS exist? You can easily make one yourself:

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

2012-07-02 Thread Fajar A. Nugraha
On Mon, Jul 2, 2012 at 4:50 PM, zorg z...@probesys.com wrote: Hello I seem that it is possible to use openvpn in a container But can't make it work I try this DEV=${CONTAINER_ROOT}/dev mkdir ${DEV}/net mknod -m 666 c 10 200 ${DEV}/net/tun But I get this error mknod: invalid device type

Re: [Lxc-users] new containers doesn't start well after fresh creation.

2012-07-03 Thread Fajar A. Nugraha
On Tue, Jul 3, 2012 at 7:13 PM, Stefan Schlesinger s...@ono.at wrote: Hello, yesterday we did some testing of LXC on wheezy as well and got the same results. Seems like the necessary device nodes aren't created (/dev/tty*) and /etc/inittab needs to be modified. Example:

Re: [Lxc-users] container hostname not visible to host, ubuntu 12.04

2012-07-06 Thread Fajar A. Nugraha
On Fri, Jul 6, 2012 at 5:50 PM, Li, Zeyang a.bankn...@gmail.com wrote: I remember reading post that says that in order to run lxc-execute, I have to have lxc installed on the client. Do you use lxc-execute, or lxc-start? There's a BIG difference. You don't need lxc on the guest for lxc-start

Re: [Lxc-users] Remedy for centos base installation failing operations on /sys?

2012-07-19 Thread Fajar A. Nugraha
On Thu, Jul 19, 2012 at 2:03 PM, Johannes Graumann johannes_graum...@web.de wrote: Hi, The filesystem package is part of a centos base installation and is uninstallable in an lxc container (see pasted output below) due to lacking access rights to /sys ... I'm not sure that this is even

Re: [Lxc-users] Remedy for centos base installation failing operations on /sys?

2012-07-19 Thread Fajar A. Nugraha
On Fri, Jul 20, 2012 at 2:27 AM, Johannes Graumann johannes_graum...@web.de wrote: Also, how do you create your container? If you use templates, yum --installroot, or similar, then the package should already be installed. I modified the debian-supplied fedora template (and posted it to this

Re: [Lxc-users] Remedy for centos base installation failing operations on /sys?

2012-07-23 Thread Fajar A. Nugraha
On Mon, Jul 23, 2012 at 3:40 PM, Johannes Graumann johannes_graum...@web.de wrote: Thanks for your hints ... I have investigated this some more and the problem is that filesystem actually get's installed via the host, but once the guest is running it is missing the yum data base on what is

Re: [Lxc-users] Remedy for centos base installation failing operations on /sys?

2012-07-23 Thread Fajar A. Nugraha
On Mon, Jul 23, 2012 at 6:15 PM, Johannes Graumann johannes_graum...@web.de wrote: On the container /var/lib/rpm is now empty That is not right. It might be the source of your problem. Try yum --installroot=/some/path/of/your/choice groupinstall base ... and verify whether /var/lib/rpm under

Re: [Lxc-users] Remedy for centos base installation failing operations on /sys?

2012-07-23 Thread Fajar A. Nugraha
On Tue, Jul 24, 2012 at 4:20 AM, Fajar A. Nugraha l...@fajar.net wrote: On Mon, Jul 23, 2012 at 6:15 PM, Johannes Graumann johannes_graum...@web.de wrote: On the container /var/lib/rpm is now empty That is not right. It might be the source of your problem. Try yum --installroot=/some/path

Re: [Lxc-users] lxc headeache on debian wheezy

2012-07-29 Thread Fajar A. Nugraha
On Mon, Jul 30, 2012 at 2:52 AM, Daniel Baumann daniel.baum...@progress-technologies.net wrote: I cannot believe that lxc is that immature. I may surely be missing a lot of things, or is the Debian packaging of lxc such a pity? you are using debian testing, it's not called testing without

Re: [Lxc-users] lxc clone onto the host

2012-07-29 Thread Fajar A. Nugraha
On Mon, Jul 30, 2012 at 9:59 AM, calerius D'Souza caler...@gmail.com wrote: I have a service that is running inside container perfectly. I had deployed it using node.js package manager (npm). Now I wanted to run the service on the host itself instead of the container due to some disk space

Re: [Lxc-users] LXC no connectivity after first boot of the guest

2012-08-10 Thread Fajar A. Nugraha
On Fri, Aug 10, 2012 at 9:13 PM, Klemens Rauch klemens.ra...@rolmail.net wrote: as it looks know, wheezy will not get live-debconfig due to bureaucratic unwillingness of some debian people, i tried, but nothing i can do further about that i'm afraid. so, wheezy will as it looks like

Re: [Lxc-users] LXC questions

2012-08-13 Thread Fajar A. Nugraha
On Mon, Aug 13, 2012 at 3:17 PM, Xia Li x...@suse.com wrote: Hi, I'm a beginner with LXC and I have two questions about LXC. I hope someone can help... 1. If all LXC containers are running inside the host system's Kernel and not with a different Kernel? Yes. I am now use LXC to

[Lxc-users] lxc-ubuntu: lefotover cached package files

2012-08-16 Thread Fajar A. Nugraha
Creating a container with lxc-create -t ubuntu on ubuntu 12.04 amd64 currently results in over 300MB root filesystem. However, almost 100MBs of it are cached package files (/var/cache/apt/archives/*). Running apt-get clean freed it. Is there a particular reason to keep the package files after

Re: [Lxc-users] lxc-ubuntu: lefotover cached package files

2012-08-16 Thread Fajar A. Nugraha
On Thu, Aug 16, 2012 at 8:57 PM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Fajar A. Nugraha (l...@fajar.net): Creating a container with lxc-create -t ubuntu on ubuntu 12.04 amd64 currently results in over 300MB root filesystem. However, almost 100MBs of it are cached package

Re: [Lxc-users] lxc template for RHEL?

2012-08-23 Thread Fajar A. Nugraha
On Fri, Aug 24, 2012 at 7:00 AM, Dan Kegel d...@kegel.com wrote: Hi folks, has anyone written a /usr/lib/lxc/templates/lxc-rhel yet? AFAIK no. But see : - http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg03761.html and

Re: [Lxc-users] LXC in production envivroment

2012-08-24 Thread Fajar A. Nugraha
On Fri, Aug 24, 2012 at 6:12 PM, István Király - LaKing d...@yahoo.com wrote: Hello users, and mainly developers, .. My question is, how reliable, how stable is LXC in a production environment? .. how far is LXC from being released as stabile 1.0? As a user, I'd say lxc is usable for

Re: [Lxc-users] High SLAB

2012-08-24 Thread Fajar A. Nugraha
On Fri, Aug 24, 2012 at 6:37 PM, China ch...@email.it wrote: Often, after some hours, the containers occupy a lot of SLAB cache (over 100~200MB), specially dentry and ext3_inode_cache. Try this: http://www.linuxinsight.com/proc_sys_vm_vfs_cache_pressure.html I set mine at 1000 for a system

Re: [Lxc-users] LXC in production envivroment

2012-08-24 Thread Fajar A. Nugraha
On Fri, Aug 24, 2012 at 8:27 PM, István Király - LaKing d...@yahoo.com wrote: I would rather like to have a virtual-server farm or better said lxc container-farm, as soon as possible. .. If you control all the VPS in the farm, lxc might be usable. Otherwise, openvz might be a better choice.

Re: [Lxc-users] lxc template for RHEL?

2012-08-24 Thread Fajar A. Nugraha
On Sat, Aug 25, 2012 at 4:26 AM, Dan Kegel d...@kegel.com wrote: lxc-start: failed to rename vethMR2TXx-eth0 : File exists What does your config file looks like? It looks like you're telling lxc to label the container's network device in the HOST (lxc.network.veth.pair) as eth0. Which

Re: [Lxc-users] lxc template for RHEL?

2012-08-24 Thread Fajar A. Nugraha
On Sat, Aug 25, 2012 at 8:48 AM, Dan Kegel d...@kegel.com wrote: On Fri, Aug 24, 2012 at 6:23 PM, Fajar A. Nugraha l...@fajar.net wrote: On Sat, Aug 25, 2012 at 4:26 AM, Dan Kegel d...@kegel.com wrote: lxc-start: failed to rename vethMR2TXx-eth0 : File exists What does your config file looks

Re: [Lxc-users] lxc template for RHEL?

2012-08-25 Thread Fajar A. Nugraha
On Sat, Aug 25, 2012 at 9:22 AM, Dan Kegel d...@kegel.com wrote: On Fri, Aug 24, 2012 at 7:00 PM, Fajar A. Nugraha l...@fajar.net wrote: Aren't the default templates supposed to work with the default config file? It should. Which is why I thought you edit the config file. Try: - adding

Re: [Lxc-users] lxc template for RHEL?

2012-08-25 Thread Fajar A. Nugraha
On Sun, Aug 26, 2012 at 3:06 AM, Dan Kegel d...@kegel.com wrote: Trying the same thing with your centos template: cd /usr/lib/lxc/templates/ wget https://raw.github.com/fajarnugraha/lxc/centos-template/templates/lxc-centos.in mv lxc-centos.in lxc-centos lxc-create -t centos -n

Re: [Lxc-users] lxc template for RHEL?

2012-08-25 Thread Fajar A. Nugraha
On Sun, Aug 26, 2012 at 11:09 AM, Dan Kegel d...@kegel.com wrote: The default networking config section from lxc-fedora (upstream version), when used in Ubuntu host would add an additional interface in the container (because it's basically a separate, additional networking section) and will

Re: [Lxc-users] lxc-net.conf on ubuntu

2012-09-02 Thread Fajar A. Nugraha
On Sun, Sep 2, 2012 at 4:56 PM, groupie stopmakingse...@gmx.de wrote: Hi list! I just came over the fact that the iptables config set in the lxc-net upstart job does also rewrite connections between hosts on the bridge. I added a rule before the masquerade to prevent this and make sure, that

Re: [Lxc-users] Using VMware as a test-bed for hosting lxc containers.

2012-09-06 Thread Fajar A. Nugraha
On Fri, Sep 7, 2012 at 11:29 AM, Peter-Frank Spierenburg spier...@hotmail.com wrote: Anyway, I am having trouble convincing the lxc guests to talk to the network outside the box hosting the vm hosting the container. If you use latest ubuntu it'll work out of the box. I've also got iptables

Re: [Lxc-users] Piping output of lxc-monitor to a file without buffering

2012-09-07 Thread Fajar A. Nugraha
On Fri, Sep 7, 2012 at 7:46 AM, Ken Elkabany k...@elkabany.com wrote: Hi, The following outputs container state changes to the terminal as expected: $ lxc-monitor -n container-1 However, the following outputs the same state changes to a file only after a certain buffer size has been

Re: [Lxc-users] Problem ssh-ing into lxc container under Ubuntu 12.04

2012-09-14 Thread Fajar A. Nugraha
On Fri, Sep 14, 2012 at 9:27 PM, Peter-Frank Spierenburg spier...@hotmail.com wrote: Greetings, Whenever I try to ssh into an lxc container on Ubuntu 12.04, I get: ssh_exchange_identification: Connection closed by remote host using lxc-console to access the container, and checking the

Re: [Lxc-users] problem in start lxc container

2012-09-19 Thread Fajar A. Nugraha
On Thu, Sep 20, 2012 at 10:02 AM, Binknight zheng_hua...@163.com wrote: hi all, After searching for a while, I found there are many different introductions to install lxc container, but do not find a step by step tutorial that works for general purpose. At this moment using Ubuntu 12.04

Re: [Lxc-users] problem in start lxc container

2012-09-21 Thread Fajar A. Nugraha
On Fri, Sep 21, 2012 at 9:16 PM, Binknight zheng_hua...@163.com wrote: many thanks, I edit the container's /etc/rc.d/rc.sysinit and add : route add default gw 192.168.122.1 # address of virbr0 echo /etc/resolv.conf nameserver 10.2.0.41 #name server the same as that in HOST's

Re: [Lxc-users] lxc macvlan bridge problem

2012-09-24 Thread Fajar A. Nugraha
Why not just use veth + bridge, which is the default (at least the default on Ubuntu)? -- Fajar On Mon, Sep 24, 2012 at 1:48 PM, 宣铭艺 xuanmin...@gmail.com wrote: Hi guys I have a host machine and want to create 3 containers on it. Containers should can ping each other,but can't communicate

Re: [Lxc-users] lxc macvlan bridge problem

2012-09-26 Thread Fajar A. Nugraha
) and use DHCP on the guest container. -- Fajar 2012/9/24 Fajar A. Nugraha l...@fajar.net Why not just use veth + bridge, which is the default (at least the default on Ubuntu)? -- Fajar On Mon, Sep 24, 2012 at 1:48 PM, 宣铭艺 xuanmin...@gmail.com wrote: Hi guys I have a host machine

Re: [Lxc-users] lxc macvlan bridge problem

2012-09-26 Thread Fajar A. Nugraha
On Wed, Sep 26, 2012 at 7:59 PM, 宣铭艺 xuanmin...@gmail.com wrote: yes I used static ip. I seted the static ip 10.0.0.2 in the config file. It can't ping www.google.com Read my previous response about don't know much about networking or bridge. Today I don't set the static ip?Will that use

Re: [Lxc-users] problem in start lxc container

2012-10-08 Thread Fajar A. Nugraha
On Mon, Oct 8, 2012 at 11:04 AM, Binknight zheng_hua...@163.com wrote: I want to setup nginx service on the container, so the container should be visible to other hosts as well as the HOST it lives. The HOST machine's ip is 10.2.132.110. so is it possible to setup an ip for container that's

Re: [Lxc-users] Template for Oracle Linux 6.3

2012-10-20 Thread Fajar A. Nugraha
On Sat, Oct 20, 2012 at 8:12 PM, C. L. Martinez carlopm...@gmail.com wrote: Hi all, Somebody knows where can I found an Oracle Linux 6.3 template to use with a OL6.3 host using UEK2 kernel?? Short answer: No Or can I re-use OL5 template?? ... and No. Long answer: See this thread:

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 3:42 PM, C. L. Martinez carlopm...@gmail.com wrote: Hi all, I have setup my first OL6 container but it doesn't starts. How? lxc-start 1350808610.466 WARN lxc_conf - rootfs specified but no console found at '/usr/lib64/lxc/rootfs/dev/console' Does

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 3:46 PM, Fajar A. Nugraha l...@fajar.net wrote: lxc-start 1350808610.466 WARN lxc_conf - rootfs specified but no console found at '/usr/lib64/lxc/rootfs/dev/console' Does /usr/lib64/lxc/rootfs/dev/console exists? Sorry. It should be does /dev/console exists

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 4:14 PM, C. L. Martinez carlopm...@gmail.com wrote: On Sun, Oct 21, 2012 at 8:51 AM, Fajar A. Nugraha l...@fajar.net wrote: On Sun, Oct 21, 2012 at 3:46 PM, Fajar A. Nugraha l...@fajar.net wrote: lxc-start 1350808610.466 WARN lxc_conf - rootfs specified

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 4:23 PM, C. L. Martinez carlopm...@gmail.com wrote: On Sun, Oct 21, 2012 at 9:20 AM, Fajar A. Nugraha l...@fajar.net wrote: -- No, problem continues ... I have used this template to create my lxc container: In that I says use the unmodified config file first

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 4:41 PM, C. L. Martinez carlopm...@gmail.com wrote: If you HAVE used the default config file created by the template, but it still doesn't work, you should probably contact the template creator directly (it's on top of the template file) and ask them how to use the

Re: [Lxc-users] ssh'ing in the container ( ioctl operation not permitted /dev/tty failed - no such device or address )

2012-10-22 Thread Fajar A. Nugraha
On Mon, Oct 22, 2012 at 5:11 PM, swair shah swairs...@gmail.com wrote: I have a container running centos 6, on a host system also running centos 6. I have allocated a different subnet for containers and I'm able to ping the container. Now when I try to ssh into the container from another

Re: [Lxc-users] ssh'ing in the container ( ioctl operation not permitted /dev/tty failed - no such device or address )

2012-10-22 Thread Fajar A. Nugraha
On Mon, Oct 22, 2012 at 5:26 PM, swair shah swairs...@gmail.com wrote: Do I need to make any specific changes to the tty conf in the container? Do you have /dev/pts directory inside the container? What files are in there? /dev/pts has crw--w 1 roottty 136, 0 Oct 22 15:54 0

Re: [Lxc-users] how to limit disk space in lxc

2012-10-25 Thread Fajar A. Nugraha
On Thu, Oct 25, 2012 at 4:11 PM, 宣铭艺 xuanmin...@gmail.com wrote: Dear all: The problem is that,how can we limit the disk space in lxc.Now I use the default config. And the container can access all space in host.can we use lvm or other tools to limit it? And how :) simplest solution: place

Re: [Lxc-users] how to limit disk space in lxc

2012-10-25 Thread Fajar A. Nugraha
On Thu, Oct 25, 2012 at 9:07 PM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Fajar A. Nugraha (l...@fajar.net): On Thu, Oct 25, 2012 at 4:11 PM, 宣铭艺 xuanmin...@gmail.com wrote: Dear all: The problem is that,how can we limit the disk space in lxc.Now I use the default config

Re: [Lxc-users] Converting existing CentOS 6.x to container within Ubuntu 12.04 - can that be simple?

2012-10-28 Thread Fajar A. Nugraha
On Sun, Oct 28, 2012 at 1:36 AM, Whit Blauvelt w...@transpect.com wrote: I have this notion that it might be simple indeed to set this up. Sure it is. Well, kindof :) But that notion is admittedly foggy. If it is simple, is there a guide to this sort of thing somewhere? I see a template for

Re: [Lxc-users] Regarding connecting containers to vlan

2012-10-29 Thread Fajar A. Nugraha
On Mon, Oct 29, 2012 at 5:22 PM, Kalyana sundaram kalyan...@gmail.com wrote: Hi I am pretty new to lxc I have set up lxc centos containers on centos host. The centos host is connected to our private network (vlan id 211) What do you use on the host? eth0, or eth0.211? How could I make

Re: [Lxc-users] Regarding connecting containers to vlan

2012-10-30 Thread Fajar A. Nugraha
On Wed, Oct 31, 2012 at 12:39 AM, brian mullan bmullan.m...@gmail.com wrote: Kalyana Fajar I know this answer isn't about VLAN specifically but it might interest you. I'd stumbled upon it a few weeks ago and the title was Connecting containers on several hosts with Open vSwitch

  1   2   >