[Lxc-users] Dependencies Use Cases

2011-11-04 Thread Alex Eagar
I would like to use LXC on Ubuntu 11.10, but there are a few points that I'm having a hard time figuring out. I have been reading documentation, but it's a bit spread out and differs a bit from site to site. Please share your opinion and perspective about the dependencies and recommends of the

Re: [Lxc-users] Live Migration of LXC

2011-11-04 Thread Cedric Le Goater
On 10/24/2011 02:07 PM, Ulli Horlacher wrote: On Mon 2011-10-24 (12:03), Greg Kurz wrote: C/R and live migration is a complicated matter for LXC containers. I have assumed nothing else... Give BLCR a try : https://ftg.lbl.gov/CheckpointRestart/CheckpointDownloads.html It doesn't

Re: [Lxc-users] Dependencies Use Cases

2011-11-04 Thread Daniel Baumann
On 11/04/2011 09:48 AM, Daniel Baumann wrote: in debian it's exactely like that (except that there's no relation to cgroup-bin yet, though i've added that in git to recommends for my next upload of lxc to debian). removed cgroup-bin from recommends again, cgroup-bin in debian is not ready and

Re: [Lxc-users] Dependencies Use Cases

2011-11-04 Thread Daniel Baumann
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 using lxc from your distributions repository? Moreover, it packages

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] /proc/process id/ns is not found

2011-11-04 Thread Dong-In David Kang
Thank you both Greg and Stephenie. (But still problem) I could build Linux 2.6.83.2 with lxc patches. I could make lxc-0.7.4 work with it. (lxc-0.7.5 did not work.) I mean it doesn't complain any more. However, I'm not sure if it really works. I did the follwoing: $ lxc-attach -n foo

Re: [Lxc-users] mknod inside a container

2011-11-04 Thread Daniel Lezcano
On 11/04/2011 03:34 PM, Gordon Henderson wrote: I have a container that's used to build a Linux image for an embedded device - and as part of the build script, it creates /dev/ via a sequence of mknod commands Which all fail )-: There are no cap.drop lines in the contianers config files

Re: [Lxc-users] /proc/process id/ns is not found

2011-11-04 Thread Cedric Le Goater
On 11/04/2011 03:37 PM, Dong-In David Kang wrote: I could build Linux 2.6.83.2 with lxc patches. I could make lxc-0.7.4 work with it. (lxc-0.7.5 did not work.) I mean it doesn't complain any more. However, I'm not sure if it really works. I did the follwoing: $ lxc-attach -n foo --

Re: [Lxc-users] Dependencies Use Cases

2011-11-04 Thread Alex Eagar
Can LXC use cgroups without libcgroup? For that matter, just to be clear, can LXC use cgroups without cgroup-bin? In what use case would using LXC without cgroups make sense? Aren't cgroups fundamental to LXC? If cgroups are fundamental to LXC, then whatever is needed to make LXC capable of using

Re: [Lxc-users] /proc/process id/ns is not found

2011-11-04 Thread Dong-In David Kang
Never mind. I put the wrong PID. I got PID of the lxc process. But I had to use init process of the lxc process, which is usually 1 + PID of the lxc process. Thanks, David. -- Dr. Dong-In David Kang Computer Scientist USC/ISI - Original Message - From: Dong-In

Re: [Lxc-users] mknod inside a container

2011-11-04 Thread Gordon Henderson
On Fri, 4 Nov 2011, Daniel Lezcano wrote: On 11/04/2011 03:34 PM, Gordon Henderson wrote: I have a container that's used to build a Linux image for an embedded device - and as part of the build script, it creates /dev/ via a sequence of mknod commands Which all fail )-: There are no

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

Re: [Lxc-users] /proc/process id/ns is not found

2011-11-04 Thread Greg Kurz
On Fri, 2011-11-04 at 08:15 -0700, Dong-In David Kang wrote: Here is the output of $ lxc-attach -n foo -- ps -ef --forest. (I've changed lxc-attach a little bit so that I can provide processor id instead of the name of lxc process. I've started the lxc process using libvirt. The process

[Lxc-users] mknod after instance creation?

2011-11-04 Thread Dong-In David Kang
Hi, Is it possible to do mknod after creation of an LXC instance? I need to do mknod not only at bootup time, but also at run-time. This is needed when I want to dynamically add devices to LXC instance. Is it possible? If it is, how can I do it? I've seen the case of mknod at bootup time of

Re: [Lxc-users] mknod after instance creation?

2011-11-04 Thread Daniel Lezcano
On 11/05/2011 12:06 AM, Dong-In David Kang wrote: Hi, Is it possible to do mknod after creation of an LXC instance? I need to do mknod not only at bootup time, but also at run-time. This is needed when I want to dynamically add devices to LXC instance. Is it possible? If it is, how can

Re: [Lxc-users] Dependencies Use Cases

2011-11-04 Thread Huang Liang
It would be great if lxc itself can solve these nuance problems, because I found at least more than one version of tutorial/howto to guide you run different containers on different host machines; and the currently shipped lxc distribution has not been tested in all container/host combinations.