[Lxc-users] Containing a user-space application

2013-06-10 Thread Barry Jaspan
I am just getting started with LXC. I'm using Ubuntu 12.04 (Precise). After a week of reading and experimenting, I have the beginnings of a working prototype and a handful of questions. :) First, my use case. I'm running a number of customer-provided applications on a shared host. My only goal for

Re: [Lxc-users] Sharing container rootfs

2013-06-10 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Mon, 2013-06-10 at 08:48 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > On Fri, 2013-06-07 at 08:45 +, Purcareata Bogdan-B43198 wrote: > > ... > > > I use to do something similar a lot under the old l

Re: [Lxc-users] Sharing container rootfs

2013-06-10 Thread Michael H. Warfield
On Mon, 2013-06-10 at 08:48 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Fri, 2013-06-07 at 08:45 +, Purcareata Bogdan-B43198 wrote: > ... > > I use to do something similar a lot under the old linux-vservers project > > (now defunct for several years -

Re: [Lxc-users] Sharing container rootfs

2013-06-10 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Fri, 2013-06-07 at 08:45 +, Purcareata Bogdan-B43198 wrote: ... > I use to do something similar a lot under the old linux-vservers project > (now defunct for several years - mailing list is now dead). They used a > COW (Copy On Write) syst

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

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

[Lxc-users] some basic questions

2013-06-10 Thread Yiran Li
Hi, I have two basic questions. First about network settings for container. If I don't give any set up config for the network, what will happen, will the application inside the container possible to reach the network? is there any default setting? And in what kind of situation that a created cont

Re: [Lxc-users] Sharing container rootfs

2013-06-10 Thread Michael H. Warfield
On Fri, 2013-06-07 at 08:45 +, Purcareata Bogdan-B43198 wrote: > Hello, > I have a question regarding containers and their supporting rootfs. Is > there an option for lxc-create that will use a default path (or other > backing store) as rootfs? It can be done but must be done very carefully.

[Lxc-users] lxc-create -B zfs

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

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-10 Thread Serge Hallyn
Quoting Hans Feldt (hans.fe...@ericsson.com): > >open a bug at https://bugs.launchpad.net/ubuntu/+source/lxc/+filebug > >as it should be trivially fixable in /etc/init/lxc-net.conf. > > OK will do. Cool, thanks, I'll track it there. ---

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-10 Thread Hans Feldt
On 06/05/2013 06:26 PM, Serge Hallyn wrote: > BUT I just did some testing, and even as I watch lxcbr0's addr go down > when starting a new container, my ssh to the container which had the > higher macaddr doesn't hiccough. the problem appears in the other direction, container to host /Hans ---

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-10 Thread Hans Feldt
On 06/05/2013 02:40 PM, Serge Hallyn wrote: >> Now my question, could not lxc (at boot) setup a fixed MAC addr for the host >> port? > > Yeah, given how bad this was for libvirt/qemu I'm surprised I've not seen > this happen in lxc - but I haven't, and noone else has reported it. > > Since you me