Re: [Lxc-users] Fwd: LXC and sound in container -

2013-11-14 Thread Serge Hallyn
Quoting brian mullan (bmullan.m...@gmail.com): > I'm not sure the lxc-user alias will take an file attachment or not. If > not I'll try something else. > > I tried to document everything I did to finally get sound working in an LXC > container on my Ubuntu 13.10 system. Thanks Brian. If you're

Re: [Lxc-users] Fwd: LXC and sound in container -

2013-11-14 Thread Serge Hallyn
Quoting Stéphane Graber (stephane.gra...@canonical.com): > On Thu, Nov 14, 2013 at 11:57:04AM -0600, Serge Hallyn wrote: > > Quoting brian mullan (bmullan.m...@gmail.com): > > > I'm not sure the lxc-user alias will take an file attachment or not. If > >

Re: [Lxc-users] Bonding inside LXC container

2013-11-18 Thread Serge Hallyn
Quoting wang yao (yaowang2...@gmail.com): > Hi Jake, > > First of all, thank you for your reply and I am very sorry for such a late > response. > > Just as you said, I had ever tried the bonding style like this: > > eth0--+--bound0--[veth]--eth0 > eth1--/ > > But when I used mod

Re: [Lxc-users] Specify device access without using major number

2013-11-18 Thread Serge Hallyn
Quoting Walt Chow (waltc...@hotmail.com): > Hi, > I would like to put a process into a container whenever the system boots up, > and this container would limit what device the process can access. The > commonway to limit device access in the container configuration file is to > use the major nu

Re: [Lxc-users] LXC containers and remote desktop

2013-11-20 Thread Serge Hallyn
Quoting brian mullan (bmullan.m...@gmail.com): > I'd recently uploaded a document on how I configured pulseaudio sound to > work in an LXC container. > > I also posted the information to a WordPress blog I keep. > > To accompany the info on enabling PulseAudio sound in LXC I also just > posted to

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

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

Re: [Lxc-users] Do we have a plan to make the checkpoint/restart feature.

2013-11-20 Thread Serge Hallyn
Quoting Mars Gu (gukai...@163.com): > hi aii, > I want to put the container into 'Cloud'. So the checkpoint feature in > necessory for HA and LB. > do we have a plan to make it in version 1.0 or later ? It's not in plan for 1.0. Definately would be great to have, but someone needs to have th

Re: [Lxc-users] Do we have a plan to make the checkpoint/restart feature.

2013-11-21 Thread Serge Hallyn
Quoting Tamas Papp (tom...@martos.bme.hu): > > On 11/21/2013 04:30 AM, Serge Hallyn wrote: > > Quoting Mars Gu (gukai...@163.com): > >> hi aii, > >> I want to put the container into 'Cloud'. So the checkpoint feature in > >> necessory for

Re: [Lxc-users] Do we have a plan to make the checkpoint/restart feature.

2013-12-04 Thread Serge Hallyn
Quoting Nipun Arora (ni...@cs.columbia.edu): > Hi, > > I've been tryint criu for checkpointing and restart. One of the issues is > that criu does not support external console. > I tried setting lxc.console = none, and lxc.tty = 0... but seem to get no > progress when I run the following command..

Re: [Lxc-users] [CRIU] Do we have a plan to make the checkpoint/restart feature.

2013-12-06 Thread Serge Hallyn
Quoting Pavel Emelyanov (xe...@parallels.com): > On 12/04/2013 10:12 PM, Serge Hallyn wrote: > > Quoting Nipun Arora (ni...@cs.columbia.edu): > >> Hi, > >> > >> I've been tryint criu for checkpointing and restart. One of the issues is > >> that cr

Re: [Lxc-users] Questions regarding LXC and nsenter

2013-12-06 Thread Serge Hallyn
Quoting Ranjib Dey (dey.ran...@gmail.com): > Hi, > Apologies in advance if im asking something stupid. > Im trying to use nsenter with lxc. it works fine with systemd-nspawn based > containers, but not with lxc based containers. Im using ubuntu 14.04 and > nsenter from util-linux 2.24 and lxc 1.0.0

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.

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] Container remounts ro an host's mount

2010-11-26 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > On 11/25/2010 06:05 PM, Alessandro Guido wrote: > > After further investigation, I noticed that the remount only happens > > when nothing keeps the host's mount point busy. > > > > So, launching the container with > > "lxc-start -l DEBUG -o /var/li

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 p

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

2011-01-21 Thread Serge Hallyn
d to slightly change the installed packages for dhclient to be correclty installed. Signed-off-by: Serge Hallyn --- .gitignore|4 +- configure.ac |4 +- doc/lxc-create.sgml.in|2 +- templates/Makefile.am |4 +- templates/lx

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 o

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

2011-01-23 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > On 01/23/2011 06:00 AM, Serge Hallyn wrote: > >Quoting Daniel Lezcano (daniel.lezc...@free.fr): > >>On 01/21/2011 06:10 PM, Serge Hallyn wrote: > >>>Rename 'ubuntu' template to 'lucid' > >>

Re: [Lxc-users] lxc-fstab vs /etc/fstab vs /lib/init/fstab

2011-03-30 Thread Serge Hallyn
Quoting Matthias P. Wuerfl (m...@taquiri.de): > Hi. > > I Updated my Lucid-Container and it stopped working because of > udev/mounting issues. After following some do-this-do-that-advices it > works right now but i don't fully understand why. > > What is the difference between: > > - the fstab-f

Re: [Lxc-users] fedora template

2011-03-30 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): > On Wed, Mar 30, 2011 at 10:00 PM, Ramez Hanna wrote: > > and here it is the final version > just tested it on host f14 > created f14 and f13 guests successfully > > shall i send this to Daniel Lezcano for including > it in the next release? or what?

Re: [Lxc-users] lxc-clone

2011-04-05 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > I think more configuration tweaking will be needed but this patch > looks good for me. I'm hoping to set up a machine on which to play with lxc on btrfs snapshots sometime this week. (In the background, starting the build now). ... > >+echo "Tw

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 foun

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 Do

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

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 valu

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

2011-04-14 Thread Serge Hallyn
about/kernel-namespaces/user/). > > Regards, > Sanjay > > > On Thu, Apr 14, 2011 at 3:19 PM, Serge Hallyn > wrote: > > > Quoting sanjay (genacct...@gmail.com): > > > Hi! I am new to the technology and thread. I have two basic questions, > > hope > >

Re: [Lxc-users] LVM logical volume in container

2011-04-14 Thread Serge Hallyn
Quoting Benjamin Kiessling (mittages...@l.unchti.me): > Hi, > > I've got several logical volumes in /dev/vms/ and want to assign each of those > lv to a single LXC container, i.e. I have vm0 and vm1 and want vm0 to have > access to only /dev/vms/vm0 (and vm1 to /dev/vms/vm1). Is there a way to do

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 Scient

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

2011-04-16 Thread Serge Hallyn
> As you see in this example, before issuing the network restart, my veth MAC > was already higher than the eth0 MAC but the guest hadn't a working network > connection. Thanks for the info. > After restarting network on the host while the guest is still running, as > you can see my MACs haven't

Re: [Lxc-users] lxc-clone

2011-04-18 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > On 04/06/2011 04:05 PM, Serge E. Hallyn wrote: > >Quoting Daniel Lezcano (daniel.lezc...@free.fr): > >>>What do you think is the best way to do this? We could allow the user > >>>to specify a 'firstboot' script, which gets copied into root directo

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 hap

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

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

2011-04-28 Thread Serge Hallyn
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 always PID 1. > But what PID has this process in the host process table? > > ps aux | grep ... is not

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 Dan

Re: [Lxc-users] Hiding container processes from Host/HN's 'ps'

2011-05-03 Thread Serge Hallyn
Quoting ian sison (mailing list) (ian.si...@gmail.com): > Hi all - > > In openvz, a certain sysctl parameter, > > kernel.pid_ns_hide_child = 1 > > when executed at HN system startup will hide any processes that run > inside the running containers from appearing in the output of 'ps'. > This make

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

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 correspondin

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

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,

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 wrote: > > > > Thanks for your response. Before scripting it, let's try manually first: > > > > devs=`ls /sys/class/net/veth*` > > ip link add type veth > > new

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

2011-05-13 Thread Serge Hallyn
gt; > Signed-off-by: Daniel Lezcano Acked-by: Serge Hallyn 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..d6

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

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

2011-05-13 Thread Serge Hallyn
Quoting arkai...@gmail.com (arkai...@gmail.com): > Hi all, > lxc-version says 0.7.3, kernel 2.6.38 > My problem is that I lose network conectivity to the host when I start a > guest. Immediately I assume that your problem is that the mac addresses assigned to your containers are lower than that of

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

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

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 > wrote: > > > 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 > &g

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 Hallyn > >> wrote: > >>> > >>> I'm curious, whatcha got in min

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

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

2011-05-16 Thread Serge Hallyn
Quoting arkai...@gmail.com (arkai...@gmail.com): > On Mon, May 16, 2011 at 6:11 PM, Serge Hallyn > wrote: > > > Quoting arkai...@gmail.com (arkai...@gmail.com): > > > Well, as I said it has to be something from the setup I do because I keep > > > having thos

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

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

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

Re: [Lxc-users] disk limit?

2011-05-19 Thread Serge Hallyn
Quoting Francois-Xavier Bourlet (francois-xavier.bour...@dotcloud.com): > and what about using xfs quota by project? is somebody tried? Not me, sounds promising though - best suggestion yet. Someone let us know if it works :) thanks, -serge --

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 >

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-

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

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 > wrote: > > > 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 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 di

Re: [Lxc-users] trying to bridge wireless

2011-06-03 Thread Serge Hallyn
device > 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 > wrote: > > > Quoting

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 hac

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=

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

2011-06-16 Thread Serge Hallyn
Quoting Brian K. White (br...@aljex.com): > I thought we killed this problem? ... > nj12:~ # rm -rf /sys/fs/cgroup/vps001 rmdir -- EditLive Enterprise is the world's most technically advanced content authoring tool. Exper

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

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 kill

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 > > > wrote: > > > > > > > Quoting Danie

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 https://

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

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

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

2011-06-23 Thread Serge Hallyn
rts x86_64, not i686. And unfortunately debootstrap and lxc.arch each accept only the opposite of each other (i386 vs i686) :) Signed-off-by: Serge Hallyn --- templates/lxc-ubuntu.in |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/l

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 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 use the host's rele

Re: [Lxc-users] lxc-ubuntu: Base arch detection code on debootstrap's with some additions when we don't have dpkg or udpkg

2011-06-23 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > > Signed-off-by: Stéphane Graber > --- > templates/lxc-ubuntu.in | 24 ++-- > 1 files changed, 18 insertions(+), 6 deletions(-) > > diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in > index 2a20c7d..4f75336 1006

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 > > > > My thought (which I meant to point out in the help

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 13:27 -0400, Stéphane Graber wrote: > > On Thu, 2011-06-23 at 11:13 -0500, Serge Hallyn wrote: > > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > > > > > > Signed-off-by: Stéph

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
g the container lxc-ubuntu: always install lxcguest in postprocess Signed-off-by: Serge Hallyn --- configure.ac |5 +- doc/lxc-create.sgml.in|2 +- templates/Makefile.am |5 +- templates/lxc-lucid.in| 361 -- te

[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 Signed-off-by: Serge Hallyn --- templates/lxc-ubuntu.in |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 0a55f4c..439e1d0 1

[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 --- 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..63750e9 100644 --- a/sr

[Lxc-users] [PATCH 2/4] lxc-ubuntu: Base arch detection code on debootstrap's with some additions when we don't have dpkg or udpkg

2011-06-23 Thread Serge Hallyn
Changelog: [seh] Don't take arch from environment Signed-off-by: Stéphane Graber Signed-off-by: Serge Hallyn --- templates/lxc-ubuntu.in | 20 +++- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index e7

[Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-24 Thread Serge Hallyn
le mount of cgroups under /cgroup. Signed-off-by: Serge Hallyn --- src/lxc/cgroup.c | 207 + src/lxc/cgroup.h |2 +- src/lxc/freezer.c |2 +- src/lxc/lxc.h |8 +- src/lxc/state.c |2 +- 5 files changed, 135 insertions(

[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 --- 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(struct lxc_list *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

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 ho

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 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 Signed-off-by: Serge Hallyn

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

2011-07-12 Thread Serge Hallyn
From: Serge Hallyn 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/+source/libvirt/+bug/6

[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 As people seem to want it, i.e. https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/800886 Signed-off-by: Serge Hallyn --- templates/lxc-ubuntu.in |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in

[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] read only rootfs

2011-07-20 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > [root@forest ~]# lxc-start --name Plover > lxc-start: Invalid argument - pivot_root syscall failed sort of unrelated, but Rob Landley had mentioned he wanted to fix chroot to prevent the chdir-based chroot escape, allowing lxc to use chroot in pla

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 /config > lxc.cgroup.devices.allow = c 108:0 rwm > lxc.cgroup.devices.allow = b 7:0 rwm > lxc.cgroup.devices.allow = c 10:200 rwm >

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 help

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 >

Re: [Lxc-users] Many containers and too many open files

2011-08-16 Thread Serge Hallyn
Quoting Jäkel, Guido (g.jae...@dnb.de): > Dear Daniel, > > What about to add little hints to such error messages; something like > > "Too many open files - failed to inotify_init. You may have to increase > the value of fs.inotify.max_user_instances" > > > And maybe this possible traps

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 c

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

  1   2   3   4   5   6   7   >