Re: [Lxc-users] New Kernel 2.6.35 from Ubuntu PPA

2010-07-23 Thread Serge Hallyn
Quoting Osvaldo Filho (arquivos...@gmail.com): This is a question. It is? -serge -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first --

Re: [Lxc-users] port numbers for containers

2010-08-11 Thread Serge Hallyn
Quoting Nirmal Guhan (vavat...@gmail.com): Hi, Want to know if port numbers are virtualized for containers or do the containers and host share the port space ? Please let me know. Wrong layer. If the container shares a network namespace with the host, then it shares its networking. If it

Re: [Lxc-users] can't restart container without rebooting entire host, because can't delete cgroups files, tasks is 0

2010-11-08 Thread Serge Hallyn
Quoting Brian K. White (br...@aljex.com): But also, since upgrading to kernel 2.6.36 (and already using lxc 0.7.2) I haven't had to delete any cgroups manually anyways. It's probably not my release_agent because I just noticed I didn't have a working release_agent (no output in it's log,

Re: [Lxc-users] vsftpd in LXC - solved! (Re: can't restart container without rebooting entire host, because can't delete cgroups files, tasks is 0)

2010-11-23 Thread Serge Hallyn
Quoting Miroslav Lednicky, AVONET, s.r.o. (ledni...@avonet.cz): Hello, i consulted it with Chris Evans and there is solution: Add this config settings to vsftpd.conf: isolate=NO isolate_network=NO vsftpd uses the kernel container support internally and it is problem. Remember

Re: [Lxc-users] lxc.mount and mount.entry not working

2010-11-25 Thread Serge Hallyn
Quoting Geordy Korte (gko...@gmail.com): This basically tells me that pivot_root is umounting the mount I just made. Can anyone help me with this??? I have also tried putting the mount inside the fstab for the container but same problem. Have you entered the container to verify? I would

Re: [Lxc-users] lxc.mount.entry denied mount permission for -t ext4?

2010-12-15 Thread Serge Hallyn
You have: lxc.cgroup.devices.allow = c 1:3 rwm lxc.cgroup.devices.allow = c 1:5 rwm lxc.cgroup.devices.allow = c 1:8 rwm lxc.cgroup.devices.allow = c 1:9 rwm lxc.cgroup.devices.allow = c 4:* rwm lxc.cgroup.devices.allow = c 5:0 rwm lxc.cgroup.devices.allow = c 5:1 rwm lxc.cgroup.devices.allow = c

Re: [Lxc-users] How make top, meminfo etc. to show the limits of the container?

2011-01-21 Thread Serge Hallyn
Quoting atp (andrew.phill...@lmax.com): Hi, Its not as simple as it seems. What you're asking for is to selectively hide or modify what gets shown to container processes by the /proc file system. In other words making /proc container aware. /proc is already partially there - with the pid

Re: [Lxc-users] [PATCH 1/1] Update ubuntu templates

2011-01-22 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 01/21/2011 06:10 PM, Serge Hallyn wrote: Rename 'ubuntu' template to 'lucid' Add new maverick and natty templates, which do much less tweaking of the environment. These should only be used on a kernel which supports sysfs tagging for /sys

Re: [Lxc-users] native (non-NAT) routing?

2011-04-05 Thread Serge Hallyn
Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): On Mon 2011-04-04 (19:35), Ulli Horlacher wrote: My first Ubuntu 10.04 container is up and running on a Ubuntu 10.04 host, but the container can only connect to the host (and vice versa), but not to the world outside. I found a

Re: [Lxc-users] Can't execute lxc-execute /bin/bash

2011-04-11 Thread Serge Hallyn
Quoting Krzysztof Karwacki (krzys...@motokirc.pl): Hi! I Compiled procfs from lxc sources, but when i want to lxc-execute –n vm0 /bin/bash I’ve got error. root@debian:~# lxc-execute -n vm0 /bin/bash lxc-execute: No such file or directory - failed to exec /usr/lib/lxc/lxc-init Does

Re: [Lxc-users] lxc-start eats eth1

2011-04-12 Thread Serge Hallyn
Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): On Tue 2011-04-12 (09:19), Ulli Horlacher wrote: I use lxc with physical eth1. I can start the container, connect to it, etc. Everything looks ok. But when I stop the container and try to restart it, eth1 is no more availble. Looks

Re: [Lxc-users] Two Questions: UID Privilage Isolation . Prevent cgroup mount in VM

2011-04-14 Thread Serge Hallyn
Quoting sanjay (genacct...@gmail.com): Hi! I am new to the technology and thread. I have two basic questions, hope you can provide some guidance. 1. UID Privilege Isolation. ~ If I understand it right, currently if a host-uid and guest-uid have the same numerical value,

Re: [Lxc-users] Container inside an ESX VM

2011-04-15 Thread Serge Hallyn
Quoting Mauras Olivier (oliver.mau...@gmail.com): Hello, I'm struggling for two days now with some completely weird network behaviours. My host is a virtual machine hosted on an ESX farm. I planned to deploy several containers on it to achieve various tasks. Host is running Scientific

Re: [Lxc-users] Lxc-attach status update?

2011-04-27 Thread Serge Hallyn
Quoting Christoph Mitasch (cmita...@thomas-krenn.com): Hi, I would really love to see the patch applied to latest Ubuntu natty kernel to have lxc-attach working again. Is this on the way? Natty is closed. This patch isn't going into natty. If Daniel resends the patchset, I'll happily

Re: [Lxc-users] Lxc-attach status update?

2011-04-27 Thread Serge Hallyn
Quoting Greg Kurz (gk...@fr.ibm.com): On Wed, 2011-04-27 at 08:47 -0500, Serge Hallyn wrote: Quoting Christoph Mitasch (cmita...@thomas-krenn.com): Hi, I would really love to see the patch applied to latest Ubuntu natty kernel to have lxc-attach working again

Re: [Lxc-users] Lxc-attach status update?

2011-04-28 Thread Serge Hallyn
Quoting Christoph Mitasch (cmita...@thomas-krenn.com): Hi Serge, great if you can create packages for Natty. Kernel is built in ppa:serge-hallyn/lxc-natty (https://launchpad.net/~serge-hallyn/+archive/lxc-natty) I've not tested it, but it should be precisely the same as Daniel's. -serge

Re: [Lxc-users] mapping host PID - container PID

2011-05-03 Thread Serge Hallyn
Quoting Greg Kurz (gk...@fr.ibm.com): On Thu, 2011-04-28 at 09:41 -0500, Serge Hallyn wrote: Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): Is there a way to get the corresponding host PID for a container PID? For example: inside the the container the process init has

Re: [Lxc-users] mapping host PID - container PID

2011-05-03 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 05/03/2011 05:36 PM, Greg Kurz wrote: On Thu, 2011-04-28 at 09:41 -0500, Serge Hallyn wrote: Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): Is there a way to get the corresponding host PID for a container PID? For example: inside

Re: [Lxc-users] mapping host PID - container PID

2011-05-03 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): Yes. And I think the positive side effect is we can determine if the pid belongs to the same pid namespace than the current one when the container_init is 1, no ? Yup. (Presumably if one happens to access a /proc for a non-descendent

Re: [Lxc-users] Making LXC accept an already open network interface—or other options

2011-05-09 Thread Serge Hallyn
Quoting David Serrano (dserra...@gmail.com): Hi, At $work we're currently using KVM and setting it up so that it uses a previously opened TAP interface: 'kvm -net tap,fd=3'. This way, we are able to create the interface a set up a couple of ebtables filters on it before going on. Now, we

Re: [Lxc-users] Making LXC accept an already open network interface—or other options

2011-05-10 Thread Serge Hallyn
Quoting David Serrano (dserra...@gmail.com): On Mon, May 9, 2011 at 14:52, Serge Hallyn serge.hal...@canonical.com wrote: Thanks for your response. Before scripting it, let's try manually first: devs=`ls /sys/class/net/veth*` ip link add type veth newdevs=`ls /sys/class/net/veth

Re: [Lxc-users] [PATCH] ignore non-lxc configuration line

2011-05-13 Thread Serge Hallyn
-by: Daniel Lezcano dlezc...@fr.ibm.com Acked-by: Serge Hallyn serge.hal...@canonical.com I'm curious, whatcha got in mind? --- src/lxc/confile.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 791f04f..d632404

Re: [Lxc-users] LVM in LXC

2011-05-13 Thread Serge Hallyn
Quoting Daniel Lezcano (dlezc...@fr.ibm.com): On 05/13/2011 12:13 AM, Benjamin Kiessling wrote: Hi, under Debian (and in general I think) LVM requires udev to work at all which makes it unusable in a container environment. Has anybody tried to get it working in a container? You can use

Re: [Lxc-users] [PATCH] ignore non-lxc configuration line

2011-05-14 Thread Serge Hallyn
Quoting David Serrano (dserra...@gmail.com): On Sat, May 14, 2011 at 00:15, Serge Hallyn serge.hal...@canonical.com wrote: I'm curious, whatcha got in mind? I don't think you have to have something in mind to implement this. Just that old motto Be lenient in what you accept :). So if I

Re: [Lxc-users] lxc container messing with hosts networking

2011-05-14 Thread Serge Hallyn
Quoting arkai...@gmail.com (arkai...@gmail.com): I've setup a web server and do requests each 5 seconds from my laptop. Then start tcpdump in the host machine and after a while I do lxc-start. Inspecting later with wireshark, it looks like once the lxc guest finishes DHCP negotiation and

Re: [Lxc-users] LVM in LXC

2011-05-14 Thread Serge Hallyn
Quoting Benjamin Kiessling (mittages...@l.unchti.me): Hi, That's still doable, just a bit more work. Take a look at ls -l /dev/lxc (or whatever is the vg you're looking at). It has symlinks to the real devices. When you look at the link targets, you can find their maj:min.

Re: [Lxc-users] lxc container messing with hosts networking

2011-05-14 Thread Serge Hallyn
Quoting arkai...@gmail.com (arkai...@gmail.com): On Sat, May 14, 2011 at 2:39 PM, Serge Hallyn serge.hal...@canonical.comwrote: Make sure stp is on on the bridge inside your kvm guest. If that doesn't work, I'll just have to try and reproduce, but you'll probably need someone more

Re: [Lxc-users] [PATCH] ignore non-lxc configuration line

2011-05-16 Thread Serge Hallyn
Quoting Brian K. White (br...@aljex.com): On 5/14/2011 9:20 AM, Serge Hallyn wrote: Quoting David Serrano (dserra...@gmail.com): On Sat, May 14, 2011 at 00:15, Serge Hallynserge.hal...@canonical.com wrote: I'm curious, whatcha got in mind? I don't think you have to have something

Re: [Lxc-users] lxc container messing with hosts networking

2011-05-16 Thread Serge Hallyn
Quoting arkai...@gmail.com (arkai...@gmail.com): On Sat, May 14, 2011 at 4:06 PM, Serge Hallyn serge.hal...@canonical.comwrote: Hm, I just did this on natty (natty host, natty kvm VM, with a natty container inside that) and could actually not reproduce your problem. Just a normal

Re: [Lxc-users] disk limit?

2011-05-18 Thread Serge Hallyn
Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): Is there an easy way to set up a disk limit for a container? I could create a LVM partition for each container, but this is not what I call easy :-} (Not trying to argue, just probe) Why do you call it not easy? Because you don't have

Re: [Lxc-users] disk limit?

2011-05-18 Thread Serge Hallyn
Quoting Corin Langosch (cor...@gmx.de): On 18.05.2011 17:52, Serge Hallyn wrote: Why do you call it not easy? Because you don't have spare partitions to dedicate to a pv? Or because you're not used to using lvm? If the former, then you could use a loopback filesystem instead of an LVM

Re: [Lxc-users] disk limit?

2011-05-19 Thread Serge Hallyn
Quoting Corin Langosch (cor...@gmx.de): On 19.05.2011 11:18, Ulli Horlacher wrote: After some time users install data on their vservers and so the snapshots grow over time. disc: 500 GB (one big lvm partition) lvm volume: 10 GB (has vserver base system installation) snapshot 1: 5 GB (a

Re: [Lxc-users] Cannot see a login console on start

2011-05-23 Thread Serge Hallyn
Quoting Roberto (prof...@gmail.com): Hi all, I'm new to LXC and I've been following the following instructions on how to setup a container: http://www.phenona.com/blog/using-lxc-linux-containers-in-amazon-ec2/ Unfortunately, it seems I cannot start a container. In fact, after I run the

Re: [Lxc-users] Cannot see a login console on start

2011-05-24 Thread Serge Hallyn
Quoting Roberto (prof...@gmail.com): Not sure exactly what that tutorial is doing.  Didn't see anything obviously wrong with it.  You might try verifying it by doing  lxc-create -f /usr/share/doc/lxc/examples/lxc-macvlan.conf -t ubuntu -n u1  lxc-start -n u1 Except the lxc-ubuntu

Re: [Lxc-users] lxc on Fedora 15

2011-05-31 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 05/31/2011 01:44 PM, Ramez Hanna wrote: On Tue, May 31, 2011 at 2:07 PM, Daniel Lezcanodaniel.lezc...@free.frwrote: On 05/31/2011 12:33 PM, Ramez Hanna wrote: it seems that lxc cannot handle cgroups when capabilities are not all in

Re: [Lxc-users] lxc on Fedora 15

2011-05-31 Thread Serge Hallyn
Jinkeys. Could you please file a bug against 'linux (Ubuntu)' about this? Or file it against lxc and I'll retarget it. thanks, -serge Quoting Clemens Perz (cp...@gmx.net): Hi! Just hit something similar today. Ubuntu Lucid had a kernel update to 2.6.32-32 and now my dev container

Re: [Lxc-users] lxc on Fedora 15

2011-05-31 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): On Tue, May 31, 2011 at 5:38 PM, Serge Hallyn serge.hal...@canonical.comwrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 05/31/2011 01:44 PM, Ramez Hanna wrote: On Tue, May 31, 2011 at 2:07 PM, Daniel Lezcanodaniel.lezc

Re: [Lxc-users] trying to bridge wireless

2011-06-03 Thread Serge Hallyn
Quoting matthew byers (faintstlsa...@gmail.com): Hey i am trying to run lxc on my laptop but am having problem setting up bridge. My internet connection consist of a WAN that i have absolutely no control over. I connect my tablet to the network and then tether it to my laptop. I followed

Re: [Lxc-users] trying to bridge wireless

2011-06-03 Thread Serge Hallyn
lxcbr0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device lxcbr0: ERROR while getting interface flags: No such device Failed to bring up lxcbr0. On Fri, Jun 3, 2011 at 6:14 PM, Serge Hallyn serge.hal...@canonical.comwrote: Quoting matthew byers (faintstlsa

Re: [Lxc-users] trying to bridge wireless

2011-06-04 Thread Serge Hallyn
Quoting matthew byers (faintstlsa...@gmail.com): here is what i got when i ran last command: stlsaint@stlsaint-devcore:~$ sudo /opt/bin/lxcbr0-up iptables v1.4.4: host/network `' not found Oh, fudge. The problem is I told you (in the blog post) to do cat file EOF hack hack $var hack hack

Re: [Lxc-users] natty without network isolation

2011-06-06 Thread Serge Hallyn
Quoting webcubator webcubator (webcuba...@mail.ru): Hello! Shortly... I want to install natty as guest without network isolation The problem is lxc-start hangs in this case If I add network all works fine With this network settings all works fine -- cut -- lxc.network.type=veth --

Re: [Lxc-users] can't remove cgroup

2011-06-17 Thread Serge Hallyn
Quoting Brian K. White (br...@aljex.com): On 6/16/2011 3:26 PM, Serge Hallyn wrote: Quoting Brian K. White (br...@aljex.com): I thought we killed this problem? ... nj12:~ # rm -rf /sys/fs/cgroup/vps001 rmdir Did that too. no joy. In fact I did both the main directory

Re: [Lxc-users] can't remove cgroup

2011-06-17 Thread Serge Hallyn
Quoting Brian K. White (br...@aljex.com): On 6/17/2011 12:06 PM, Serge Hallyn wrote: Quoting Brian K. White (br...@aljex.com): On 6/16/2011 3:26 PM, Serge Hallyn wrote: Quoting Brian K. White (br...@aljex.com): I thought we killed this problem? ... nj12:~ # rm -rf /sys/fs/cgroup

Re: [Lxc-users] lxc on Fedora 15

2011-06-20 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): On Tue, 2011-05-31 at 14:00 -0500, Serge Hallyn wrote: Quoting Ramez Hanna (rha...@informatiq.org): On Tue, May 31, 2011 at 5:38 PM, Serge Hallyn serge.hal...@canonical.comwrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr

Re: [Lxc-users] Ubuntu Lucid containers on Ubuntu Natty

2011-06-21 Thread Serge Hallyn
Quoting Elliot Pahl (elliot.p...@gmail.com): Is there a good solution for these issues? Is the solution to modify the debootstrap template, or does it lie elsewhere? Thanks for bringing this up, Elliot. I've gone ahead and backported the oneiric lxc package to lucid and pushed it to

Re: [Lxc-users] lxc-clone

2011-06-21 Thread Serge Hallyn
Hi Daniel, Quoting Daniel Lezcano (daniel.lezc...@free.fr): +echo Tweaking configuration +cp $lxc_path/$lxc_orig/config $lxc_path/$lxc_new/config +sed -i '/lxc.utsname/d' $lxc_path/$lxc_new/config +echo lxc.utsname = $hostname $lxc_path/$lxc_new/config We should not assume lxc.utsname is

Re: [Lxc-users] [PATCH 1/1] Add lxc-clone script

2011-06-22 Thread Serge Hallyn
Actually, perhaps this is better integrated into the templates. I'm working on consolidating and extending the ubuntu templates into one, and it looks like maybe it's better to put the cloning stuff into that. Though it makes the create command syntax all the more baroque, which I don't like.

Re: [Lxc-users] lxc-ubuntu: Default to current ubuntu release. If can't match any valid release, use lucid.

2011-06-23 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com My thought (which I meant to point out in the help output) was that we should default to the latest LTS. lucid for now, 12.04 when it comes out. What do you think? If you think it's better to

Re: [Lxc-users] lxc-ubuntu: Default to current ubuntu release. If can't match any valid release, use lucid.

2011-06-23 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): On Thu, 2011-06-23 at 11:13 -0500, Serge Hallyn wrote: Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com My thought (which I meant to point out in the help output) was that we should

Re: [Lxc-users] lxc-ubuntu: Only replace i386 by i686 in lxc's config, otherwise debootstrap will fail

2011-06-23 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Unless I missed something, the following commits should be good to apply: - [PATCH 1/2] lxc-create: pass remaining args to templates - [PATCH 2/2] templates: consolidate and extend ubuntu templates Then, the following should be fixed: -

[Lxc-users] [PATCH 1/4] templates: consolidate and extend ubuntu templates

2011-06-23 Thread Serge Hallyn
-ubuntu: always install lxcguest in postprocess Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com --- configure.ac |5 +- doc/lxc-create.sgml.in|2 +- templates/Makefile.am |5 +- templates/lxc-lucid.in| 361 -- templates/lxc

[Lxc-users] [PATCH 3/4] Subject: lxc-ubuntu: Default to current ubuntu release.

2011-06-23 Thread Serge Hallyn
If can't match any valid release, use lucid. Signed-off-by: Stéphane Graber stgra...@ubuntu.com Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com --- templates/lxc-ubuntu.in |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc

[Lxc-users] [PATCH 4/4] Clarify the template-specific options a bit in lxc-create's help

2011-06-23 Thread Serge Hallyn
This does not supplant the need for a manpage, but it's a start. Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com --- src/lxc/lxc-create.in | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in index 00e6b21

[Lxc-users] [PATCH 1/2] print netdev name, not link, after moving dev into netns

2011-06-24 Thread Serge Hallyn
Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com --- src/lxc/conf.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 483d375..2eb598b 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -1633,7 +1633,7 @@ int lxc_assign_network

Re: [Lxc-users] Use XID tagging with LXC

2011-06-27 Thread Serge Hallyn
Quoting Julien VAUBOURG (jul...@vaubourg.com): Hi all, I would like to handle disk quotas of my containers, but in avoiding to use partitions. With linux-vserver, this is possible with the xid tagging and the vdlimit command[0]. Would you know if LXC can use xid in the same way

Re: [Lxc-users] Hiding PCI devices inside the container

2011-06-29 Thread Serge Hallyn
Quoting Devendra K. Modium (dmod...@isi.edu): Hi Please let me know is it possible to hide PCI devices inside the container. Although I used the cgroups.deny=a option in the configuration script. When I run the command lspci inside container, I can see all the devices connected to host

Re: [Lxc-users] Latest test results - Was: cgroups: support cgroups mounted in multiple places (v3)

2011-07-02 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): ... F15 systemd: Passed. F12 single mount: Passed. F13 single mount: Passed. F14 single mount: Passed. F14 libcgroup:Failed. I had the default /etc/cgconfig.conf file and here are the results: [root@berserker-base ~]# cat

[Lxc-users] [PATCH 1/3] Add arm as a supported srcarch

2011-07-12 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@canonical.com Otherwise building on armel fails with checking for linux SRCARCH... configure: error: architecture arm-unknown-linux-gnueabi not supported See https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/745884 for details. Author: Marcin Juszkiewicz

[Lxc-users] [PATCH 2/3] lxc-ubuntu: don't put devpts in $confdir/container/fstab

2011-07-12 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@canonical.com src/lxc/conf.c will explicitly mount it anyway. Furthermore, the fstab entry, which is getting processed first, did not specify -o newinstance. This can cause the host's devpts entry mount options to change, as in https://bugs.launchpad.net/ubuntu

[Lxc-users] [PATCH 3/3] lxc-ubuntu: Allow /dev/fuse to be used in a container

2011-07-12 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@canonical.com As people seem to want it, i.e. https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/800886 Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- templates/lxc-ubuntu.in |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[Lxc-users] 3 small patches for 0.7.5

2011-07-12 Thread Serge Hallyn
Hi, following are three small patches which are applied in the Ubuntu lxc package, on top of the current lxc git HEAD. Would you mind applying these before tagging 0.7.5? thanks, -serge -- AppSumo Presents a FREE Video

Re: [Lxc-users] Upgrading udev and plymouth in a lucid container

2011-07-27 Thread Serge Hallyn
Quoting Elliot Pahl (elliot.p...@gmail.com): Upgrading udev and plymouth in a lucid container seems to require access to udev devices with the following lines in container/config lxc.cgroup.devices.allow = c 108:0 rwm lxc.cgroup.devices.allow = b 7:0 rwm lxc.cgroup.devices.allow = c 10:200

Re: [Lxc-users] Fedora 15 on Fedora 15 LXC with Libvirt

2011-08-01 Thread Serge Hallyn
Hi, This mailing list is intended for users of the lxc.sf.net toolsuite. While the libvirt lxc implementation is in many ways similar, there definately are differences. I point this out because your first step has to be to get more debugging information, and I don't know that anyone here can

Re: [Lxc-users] lxc and libvirt management tools

2011-08-10 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 08/10/2011 06:56 PM, Remi Verchere wrote: So, how can I migrate a container configuration managed by lxc tools to libvirt ? Is there any tools or how-to? No. That could be very nice if we write a driver for libvirt for the lxc tools.

Re: [Lxc-users] lxc-clone

2011-08-29 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): Hi, I have started using lxc to setup a pre-production system instead of KVM at first glance clone seemd to me that it would copy everything to a new roots but turns out that in case of LVM it will snapshot AFAIK snapshots are meant more for

Re: [Lxc-users] [PATCH] multiple mods to lxc-clone

2011-08-29 Thread Serge Hallyn
Thanks, Ramez. It looks good to me. My only comment would be that if the rootfs copy fails (either rsync or lvm clone), and you've frozen the original container, then you need to unfreeze the original container before erroring out. -serge Quoting Ramez Hanna (rha...@informatiq.org): * allow

Re: [Lxc-users] Is it possible to create symbolic links between different containers

2011-08-30 Thread Serge Hallyn
Quoting nishant mungse (nishantmun...@gmail.com): Hi all I want to create a sym link between different containers. Is it possible to create?and how? Hm. How about doing a bind mount instead? -- Special Offer --

Re: [Lxc-users] [PATCH 0/3] several mods to lxc-clone.in

2011-08-30 Thread Serge Hallyn
Thanks. No objections to the patchset. (Other than, better to simply remove the code lines which you commented out - but no need for a new set for that). I haven't tested it, but it looks correct. Acked-by: Serge Hallyn serge.hal...@canonical.com thanks, -serge

Re: [Lxc-users] help regarding lxc

2011-08-31 Thread Serge Hallyn
Quoting nishant mungse (nishantmun...@gmail.com): hi all when i write create commnd it shows this output:: lxc-create -n ubuntu -t lucid -f /home/nishant/ubuntu.conf debootstrap is /usr/sbin/debootstrap Checking cache download in /var/cache/lxc/lucid/rootfs- i386 ... Downloading

Re: [Lxc-users] lxc-start fails when / is a shared mount

2011-09-19 Thread Serge Hallyn
Quoting Marios Titas (redneb8...@gmail.com): Hi list, I just ran into this problem: If you do # mount --make-shared / to mark / as a shared mount then lxc-start fails when you have specified a lxc.rootfs in the configuration file. The error that lxc-start gives is the following:

Re: [Lxc-users] how to mount inside of running container

2011-09-22 Thread Serge Hallyn
Quoting Arie Skliarouk (sklia...@gmail.com): Hi, Thank you for the instructions, but looks I did something wrong. Sorry, no, my instructions weren't quite right. I'm going to spend a bit of time right now whipping up some tested directions, and will get back to you. -serge

Re: [Lxc-users] how to mount inside of running container

2011-09-22 Thread Serge Hallyn
Quoting Serge Hallyn (serge.hal...@canonical.com): Quoting Arie Skliarouk (sklia...@gmail.com): Hi, Thank you for the instructions, but looks I did something wrong. Sorry, no, my instructions weren't quite right. I'm going to spend a bit of time right now whipping up some tested

Re: [Lxc-users] Dependencies Use Cases

2011-11-04 Thread Serge Hallyn
Quoting Daniel Baumann (daniel.baum...@progress-technologies.net): On 11/04/2011 01:16 PM, Huang Liang wrote: Check out toft: https://github.com/exceedhl/toft. It provides rpm and deb packages which already handles the dependencies on centos and ubuntu. why would one want this instead of

Re: [Lxc-users] Dependencies Use Cases

2011-11-04 Thread Serge Hallyn
Quoting Alex Eagar (alexea...@gmail.com): Can LXC use cgroups without libcgroup? For that matter, just to be clear, can LXC use cgroups without cgroup-bin? LXC doesn't need anything from cgroup-bin, and, if it did, cgroup-bin could not deliver. (see below) In what use case would using LXC

[Lxc-users] [PATCH 1/1] ubuntu template: use -updates and -security (v3)

2011-11-15 Thread Serge Hallyn
chroot. Nov 15: use security.ubuntu.com, not mirror. (stgraber) Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- templates/lxc-ubuntu.in | 31 +-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc

Re: [Lxc-users] Downgrade disk IO PRIORITY automatically

2011-12-06 Thread Serge Hallyn
Quoting Arie Skliarouk (sklia...@gmail.com): Hi, I understand that this is not the quite appropriate mailing list to ask the question, but the question is related to the LXC tech we use on the server, so here it goes: Most of the time the LXC containers on our servers work properly, but

[Lxc-users] [PATCH] Cgroup cleanups: play more nicely with others, and support nesting

2011-12-09 Thread Serge Hallyn
cgroup would be /sys/fs/cgroup/subsys/o1, it now becomes /sys/fs/cgroup/subsys/initcgroup/lxc/o1 so if init is in cgroup '/' then o1's freezer cgroup would be: /sys/fs/cgroup/freezer/lxc/o1 Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- src/lxc/cgroup.c | 147

Re: [Lxc-users] [PATCH] Cgroup cleanups: play more nicely with others, and support nesting

2011-12-09 Thread Serge Hallyn
Quoting Derek Simkowiak (de...@simkowiak.net): Serge, Could you please elaborate on this comment? (Of course, the containers must be on a different subnet) Do you mean a TCP/IP subnet? If so, why does this limitation exist? No I just mean that you have to make sure to

Re: [Lxc-users] lxc and guest /proc/kcore access restriction

2011-12-13 Thread Serge Hallyn
Quoting Fiedler Roman (roman.fied...@ait.ac.at): Hello List, I have problems finding information about lxc with system virtualization and access restriction to /proc/kcore. In my setup, root in guest can read /proc/kcore, data from host shows up in container kcore, so kcore is not

Re: [Lxc-users] lxc and guest /proc/kcore access restriction

2011-12-14 Thread Serge Hallyn
Quoting Fiedler Roman (roman.fied...@ait.ac.at): Hi Serge, -Ursprüngliche Nachricht- Von: Serge Hallyn [mailto:serge.hal...@canonical.com] An: Fiedler Roman Cc: lxc-users@lists.sourceforge.net Betreff: Re: [Lxc-users] lxc and guest /proc/kcore access restriction Quoting

Re: [Lxc-users] Broken pipe when ssh from host to container

2011-12-15 Thread Serge Hallyn
Quoting Verdi March (cincaipat...@gmx.net): As additional info, the network configuration of the container is as follows: lxc.network.type = veth lxc.network.flags = up

Re: [Lxc-users] Broken pipe when ssh from host to container

2011-12-18 Thread Serge Hallyn
Quoting Verdi March (cincaipat...@gmx.net): ... ifconfig br0 198.55.32.143 promisc up ... That all looks fine... The fact that it works fine when logging in from another machine but fails from the host itself must be relevant, but how... So your LAN is 198.55.32.X, and your containers are on

Re: [Lxc-users] lxc-destroy does not destroy cgroup

2011-12-20 Thread Serge Hallyn
Quoting Arie Skliarouk (sklia...@gmail.com): I don't have the /cgroup directory mounted. Somehow, the directory is mounted automatically onto the /sys/fs/cgroup *root@mf:~# df | grep cgroup cgroup12368328 0 12368328 0% /sys/fs/cgroup root@mf:~# ls /sys/fs/cgroup/

Re: [Lxc-users] Can not write log, openpty() failed

2012-01-25 Thread Serge Hallyn
Quoting christian mueller (christian.muell...@gmx.de): Hi Serge, thanks for your reply and your work. I assume you did '--path=/home/chm/lxc/myfirstcontainer/', not '- path=/home/chm/lxc/myfirstcontainer/'? yes, you are right. Would you mind opening a bug on launchpad?

Re: [Lxc-users] Can not write log, openpty() failed

2012-01-26 Thread Serge Hallyn
Quoting christian mueller (christian.muell...@gmx.de): Hi Serge, For now, I recommend you do it the old fashioned way: either symlink or bind mount /home/chm/lxc to /var/lib/lxc: rm -rf /var/lib/lxc mkdir -p /home/chm/lxc ln -s /home/chm/lxc /var/lib/lxc Now just

Re: [Lxc-users] host fstab, boot error at cgconfig ...

2012-01-27 Thread Serge Hallyn
Quoting István Király - LaKing (d...@yahoo.com): Hi folks. I accidentally zero-ed out my original fstab generated by anaconda on my CentOs 6 box. After recreation it looks like this: UUID=5c4ef826-7786-43f7-8ebd-775f230e2e25 /   ext4    defaults    1 1

Re: [Lxc-users] Doesn't auditd work on an LXC instance?

2012-01-30 Thread Serge Hallyn
On Thu, Jan 19, 2012 at 11:00 AM, David Kang dk...@isi.edu wrote: Hi, I'm trying to run auditd on an LXC instance. First of all, I cannot make kauditd start. And $ service auditd start always fails. Does it mean auditd does not work on an LXC instance? I'll appreciate your

Re: [Lxc-users] minimum fstab?

2012-02-06 Thread Serge Hallyn
Quoting Gary Ballantyne (gary.ballant...@haulashore.com): Hello List Various templates have differing fstab definitions (at least for ubuntu). For example, [1] includes only /proc and /sys, [2] further adds /dev/pts, You don't need devpts in there. Lxc sets that up itself regardless

Re: [Lxc-users] LXC from lxc.sf.net vs. Libvirt-lxc

2012-02-08 Thread Serge Hallyn
Quoting Shweta Shinde (shwetasshind...@gmail.com): I tried out LXC sf.net for creating containers. It works well. According to following link, RHEL 6.2 will support LXC libvirt API. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/6.2_Technical_Notes/index.html It

[Lxc-users] notes on the /var/lib/lxc-becomes-readonly problem

2012-02-09 Thread Serge Hallyn
During my testing I ran back into the issue of lxc-stop marking /var/lib/lxc read-only. So here is the deal. When a container shuts down, it tries to remount its / readonly. That doesn't work if the mount is busy (i.e. a file is held open for write). If /var/lib/lxc is on the same fs as '/',

Re: [Lxc-users] Container start unmounts shared bind mounts

2012-02-10 Thread Serge Hallyn
Quoting Ivan Vilata i Balaguer (i...@selidor.net): Serge Hallyn (2012-02-09 19:30:29 +0100) wrote: Quoting Ivan Vilata i Balaguer (i...@selidor.net): Hi all. I'm running Debian's LXC 0.7.5 under Linux 3.2.0. I've set up a shared mountpoint to dynamically export some host directories

Re: [Lxc-users] Container start unmounts shared bind mounts

2012-02-10 Thread Serge Hallyn
Quoting Ivan Vilata i Balaguer (i...@selidor.net): Serge Hallyn (2012-02-10 16:05:19 +0100) wrote: Quoting Ivan Vilata i Balaguer (i...@selidor.net): Serge Hallyn (2012-02-09 19:30:29 +0100) wrote: Quoting Ivan Vilata i Balaguer (i...@selidor.net): Hi all. I'm running Debian's LXC

Re: [Lxc-users] Container start unmounts shared bind mounts

2012-02-13 Thread Serge Hallyn
Quoting Ivan Vilata i Balaguer (i...@selidor.net): Serge Hallyn (2012-02-11 00:08:10 +0100) wrote: Quoting Ivan Vilata i Balaguer (i...@selidor.net): Serge Hallyn (2012-02-10 16:05:19 +0100) wrote: mv /usr/bin/lxc-start /usr/bin/lxc-start.real cat /usr/bin/lxc-start.mid EOF

Re: [Lxc-users] fedora 16 under lxc

2012-02-14 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): On Mon, Feb 13, 2012 at 10:34 PM, Ramez Hanna rha...@informatiq.org wrote: hei I have been able to get some form of f16 under lxc running but some quirks so steps (untill i make a patch or a new script) use the current lxc-fedora to create a

Re: [Lxc-users] lxc-console and indents

2012-02-17 Thread Serge Hallyn
Quoting Whit Blauvelt (w...@transpect.com): Hi, Running 0.7.5 compiled and running on Debian Squeeze, with a Debian Squeeze container, when I use lxc-console and view a configuration file for a daemon which uses indents as part of its syntax, the file is displayed with each line at the left

Re: [Lxc-users] how to use system container

2012-02-20 Thread Serge Hallyn
Quoting allen (allen303al...@gmail.com): HI ALL: My aim is to run a Graphical application in a container, then an user connect to the container with a GUI interface, so that he can see and operate the application. As I want to separate all resources, I think I'll need a system

Re: [Lxc-users] how to use system container

2012-02-21 Thread Serge Hallyn
Quoting allen (allen303al...@gmail.com): 2012/2/20 Serge Hallyn serge.hal...@canonical.com: Quoting allen (allen303al...@gmail.com): HI ALL:     My aim is to run a Graphical application in a container, then an user connect to the container with a GUI interface, so that he can see

Re: [Lxc-users] version 0.8.0 coming soon

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

Re: [Lxc-users] version 0.8.0 coming soon

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

Re: [Lxc-users] nilfs

2012-03-02 Thread Serge Hallyn
Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): On Fri 2012-03-02 (09:02), Daniel Baumann wrote: i'm not claiming btrfs is there yet, however, if you're using btrfs, you should at least make sure to use something remotely up2date, say 3.2.x. SLES11 SP2 was released this week with

  1   2   3   4   5   >