[Lxc-users] RH and clones 6.2, LXC, SElinux and multiple DEVPTS instances

2012-03-06 Thread Mauras Olivier
Hello, I've finally successfully migrated my SMACK setup over SElinux to isolate my containers - Thanks to the folks on #selinux@freenode - on a Scientific Linux 6.2 host. (I may share my policy with some details if some of you are interested) So far so good, after loads of hits and misses almost

Re: [Lxc-users] * fix cached rootfs update * fix rootfs path * add handling of systemd (aka f15)

2012-03-06 Thread Ramez Hanna
On Mon, Mar 5, 2012 at 10:28 PM, rha...@informatiq.org wrote: From: InformatiQ rha...@informatiq.org Signed-off-by: InformatiQ rha...@informatiq.org ---  templates/lxc-fedora.in |   35 +++  1 files changed, 27 insertions(+), 8 deletions(-) diff --git

Re: [Lxc-users] RH and clones 6.2, LXC, SElinux and multiple DEVPTS instances

2012-03-06 Thread Iliyan Stoyanov
Hi Mauras, Do you by any chance have an fstab file in your container's /etc directory that is trying to mount devpts fs also. I had this issue a week ago with some of my SL6.2 containers on a fedora 16 host. After removing everything /dev/pts related from the fstab in the /etc directory of the

Re: [Lxc-users] RH and clones 6.2, LXC, SElinux and multiple DEVPTS instances

2012-03-06 Thread Ramez Hanna
On Tue, Mar 6, 2012 at 12:06 PM, Iliyan Stoyanov i...@ilf.me wrote: Hi Mauras, Do you by any chance have an fstab file in your container's /etc directory that is trying to mount devpts fs also. I had this issue a week ago with some of my SL6.2 containers on a fedora 16 host. After removing

Re: [Lxc-users] RH and clones 6.2, LXC, SElinux and multiple DEVPTS instances

2012-03-06 Thread Mauras Olivier
Just tried and same problem PTY allocation request failed on channel 0 Cheers, Olivier On Tue, Mar 6, 2012 at 11:06 AM, Iliyan Stoyanov i...@ilf.me wrote: ** Hi Mauras, Do you by any chance have an fstab file in your container's /etc directory that is trying to mount devpts fs also. I had

Re: [Lxc-users] RH and clones 6.2, LXC, SElinux and multiple DEVPTS instances

2012-03-06 Thread Mauras Olivier
On Tue, Mar 6, 2012 at 11:12 AM, Ramez Hanna rha...@informatiq.org wrote: On Tue, Mar 6, 2012 at 12:06 PM, Iliyan Stoyanov i...@ilf.me wrote: Hi Mauras, Do you by any chance have an fstab file in your container's /etc directory that is trying to mount devpts fs also. I had this issue a

Re: [Lxc-users] RH and clones 6.2, LXC, SElinux and multiple DEVPTS instances

2012-03-06 Thread Ramez Hanna
On Tue, Mar 6, 2012 at 1:07 PM, Mauras Olivier oliver.mau...@gmail.com wrote: On Tue, Mar 6, 2012 at 11:12 AM, Ramez Hanna rha...@informatiq.org wrote: On Tue, Mar 6, 2012 at 12:06 PM, Iliyan Stoyanov i...@ilf.me wrote: Hi Mauras, Do you by any chance have an fstab file in your

Re: [Lxc-users] RH and clones 6.2, LXC, SElinux and multiple DEVPTS instances

2012-03-06 Thread Mauras Olivier
On Tue, Mar 6, 2012 at 12:13 PM, Ramez Hanna rha...@informatiq.org wrote: On Tue, Mar 6, 2012 at 1:07 PM, Mauras Olivier oliver.mau...@gmail.com wrote: On Tue, Mar 6, 2012 at 11:12 AM, Ramez Hanna rha...@informatiq.org wrote: On Tue, Mar 6, 2012 at 12:06 PM, Iliyan Stoyanov

Re: [Lxc-users] RH and clones 6.2, LXC, SElinux and multiple DEVPTS instances

2012-03-06 Thread Mauras Olivier
On Tue, Mar 6, 2012 at 1:19 PM, Mauras Olivier oliver.mau...@gmail.comwrote: On Tue, Mar 6, 2012 at 12:13 PM, Ramez Hanna rha...@informatiq.orgwrote: On Tue, Mar 6, 2012 at 1:07 PM, Mauras Olivier oliver.mau...@gmail.com wrote: On Tue, Mar 6, 2012 at 11:12 AM, Ramez Hanna

[Lxc-users] Sharing resources between containers

2012-03-06 Thread - xenocrates
Please explain, what is the right way to sharing resources (as example mysql socket) between containers? For example we have 2 VM VM1 : mysql instance VM2 : need access to mysql Yes it's possible to connect via TCP But connect via socket is more liked way So, as basic setup, we can create

Re: [Lxc-users] * fix cached rootfs update * fix rootfs path * add handling of systemd (aka f15)

2012-03-06 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): On Mon, Mar 5, 2012 at 10:28 PM, rha...@informatiq.org wrote: From: InformatiQ rha...@informatiq.org Signed-off-by: InformatiQ rha...@informatiq.org ---  templates/lxc-fedora.in |   35 +++  1 files

Re: [Lxc-users] * fix cached rootfs update * fix rootfs path * add handling of systemd (aka f15)

2012-03-06 Thread Serge Hallyn
Yes, I think ideally you'd have a single /var/lib/lxc/fedora-devs mounted from a single loopback or block device, with each container having a /var/lib/lxc/fedora-devs/containername directory, populated, for its dev, bind-mounted in through lxc.mount.entry. -serge Quoting rha...@informatiq.org

[Lxc-users] start a debian in lxc with keyboard no response

2012-03-06 Thread 陈竞
I start a debian os in lxc, the debian has X server. when the debian login window shows, i found that my keyboard and mouse don't work, i have nothing to do but to reboot my computer. what's wrong with it? -- 陈竞,中科院计算技术研究所,高性能计算机中心 Jing Chen HPCC.ICT.AC China

Re: [Lxc-users] start a debian in lxc with keyboard no response

2012-03-06 Thread John Drescher
I start a debian os in lxc, the debian has X server. when the debian login window shows, i found that my keyboard and mouse don't work, i have nothing to do but to reboot my computer. what's wrong with it? See if ssh works from a different machine and look at the xorg log. I think this is an

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

2012-03-06 Thread thadd...@thogan.com
I have been preparing to move a bunch of dev VMs running Ubuntu 10.04 on KVM to 12.04 on LXC after the release next month. I am currently testing with the 12.04 beta build and have had good luck getting everything up and running. However I am still making numerous changes to the upstart scripts

Re: [Lxc-users] * fix cached rootfs update * fix rootfs path * add handling of systemd (aka f15)

2012-03-06 Thread Ramez Hanna
On Tue, Mar 6, 2012 at 5:11 PM, Serge Hallyn serge.hal...@canonical.com wrote: Yes, I think ideally you'd have a single /var/lib/lxc/fedora-devs mounted from a single loopback or block device, with each container having a /var/lib/lxc/fedora-devs/containername directory, populated, for its

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

2012-03-06 Thread Serge Hallyn
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; fi initctl start network-interface INTERFACE=lo exit

Re: [Lxc-users] * fix cached rootfs update * fix rootfs path * add handling of systemd (aka f15)

2012-03-06 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): creating a loopback file for each container will not work from lxc.conf as lxc won't mount it, it has to be bound to a loopdevice first Adding support for a loopback file (or a qemu-nbd file perhaps) to lxc seems worthwhile. i was hoping to make

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

2012-03-06 Thread 陈竞
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. -- 陈竞,中科院计算技术研究所,高性能计算机中心 Jing Chen HPCC.ICT.AC China

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

2012-03-06 Thread Thaddeus Hogan
On 3/6/2012 9:45 PM, Serge Hallyn 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; fi initctl start

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] Ubuntu 12.04 linux-container package and init modifications

2012-03-06 Thread Thaddeus Hogan
On 3/6/2012 10:31 PM, Fajar A. Nugraha wrote: On Wed, Mar 7, 2012 at 10:45 AM, Serge Hallyn serge.hal...@canonical.com wrote: If your guest is uptodate 12.04, you should have /etc/init/network-interface-container.conf from ifupdownpackage which emits that signal for you. You shouldn't

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

2012-03-06 Thread 陈竞
thankyou, i will try it 在 2012年3月7日 下午12:11,Fajar A. Nugraha l...@fajar.net写道: 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.