[Lxc-users] LXC bringup issue on Fedora

2010-06-02 Thread Nirmal Guhan
Hi, Am trying to get lenny (latest debian from http://ftp.us.debian.org/debian) run as a container on Fedora12 with 2.6.32.13 kernel and running into below error : lxc-start -n lennycont SELinux: Could not open policy file = /etc/selinux/targeted/policy/policy.24: No such file or directory

Re: [Lxc-users] LXC bringup issue on Fedora

2010-06-02 Thread Nirmal Guhan
files in the container /dev) Andy On Wed, 2010-06-02 at 00:20 -0700, Nirmal Guhan wrote: Hi, Am trying to get lenny (latest debian from http://ftp.us.debian.org/debian) run as a container on Fedora12 with 2.6.32.13 kernel and running into below error : lxc-start -n lennycont

[Lxc-users] Questions on lxc-execute

2010-06-03 Thread Nirmal Guhan
Have few questions on lxc-execute : 1) Getting an error as : [r...@guhan-fedora lxc]# lxc-execute --name=centos /bin/bash lxc-execute: No such file or directory - failed to exec /usr/libexec/lxc-init [r...@guhan-fedora lxc]# lxc-execute --name=centos -- /bin/bash lxc-execute: No such file or

[Lxc-users] File sharing between host and container during startup

2010-06-04 Thread Nirmal Guhan
Hi, I tried to extend the fstab as below: /etc/resolv.conf /lxc/lenny/rootfs.lenny/etc/ resolv.conf none bind 0 0 /test /testdir none bind 0 0 --- I added this line From the host : # ls /testdir a b c From the container : [r...@test-fedora lenny]# chroot rootfs.lenny/

Re: [Lxc-users] File sharing between host and container during startup

2010-06-06 Thread Nirmal Guhan
On Sun, Jun 6, 2010 at 11:16 AM, Daniel Lezcano daniel.lezc...@free.frwrote: On 06/04/2010 05:44 PM, Nirmal Guhan wrote: Hi, I tried to extend the fstab as below: /etc/resolv.conf /lxc/lenny/rootfs.lenny/etc/ resolv.conf none bind 0 0 /test /testdir none bind 0 0--- I added

Re: [Lxc-users] IPC between containers

2010-06-07 Thread Nirmal Guhan
On Mon, Jun 7, 2010 at 5:21 PM, Brian K. White br...@aljex.com wrote: On 6/7/2010 7:51 PM, Nirmal Guhan wrote: Hi, Is there a way to use shared memory between the containers? Any other better/faster IPC mechanisms? I don't want to use sockets. Please let me know. Fifos on shared

[Lxc-users] Networking Qs

2010-06-17 Thread Nirmal Guhan
Hi, Any reason why we require bridging in the host for lxc ? Am not able to setup IP address for the container unless I configure bridge in the host. Also couple of other questions : 1. Can I configure container and host be in different networks / subnets (assuming I have multiple interfaces) ? I

Re: [Lxc-users] Networking Qs

2010-06-18 Thread Nirmal Guhan
On Fri, Jun 18, 2010 at 9:39 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 06/17/2010 06:49 PM, Nirmal Guhan wrote: Hi, Any reason why we require bridging in the host for lxc ? Am not able to setup IP address for the container unless I configure bridge in the host. You can use

[Lxc-users] Reboot from container

2010-06-18 Thread Nirmal Guhan
Hi, I gave a reboot command (accidently) from container. Although it did not reboot the system, it made it less functional. All the vtys were closed and could not open any new terminal. Had to reboot the system to make it functional again. Have any one seen such behavior ? This is with 2.6.32

Re: [Lxc-users] Help with Wikipedia entries

2010-06-22 Thread Nirmal Guhan
Wayne, Couple of questions based on the wiki (same as what I had asked earlier today) : 1. Isn't MIPS support available yet? 2. Are tools licensed under GPLv2 or v3? Thanks, Nirmal On Mon, Jun 21, 2010 at 9:06 PM, Wayne Sherman wsher...@gmail.com wrote: I notice there is not much information

[Lxc-users] User space driver

2010-06-28 Thread Nirmal Guhan
I need to add user space device driver from a container and the driver is specific to the container (host won't see it). Is it possible to do so? I hope so but wanted to confirm before I start (and any other things I should keep in mind). Please let me know. --Nirmal

Re: [Lxc-users] User space driver

2010-06-29 Thread Nirmal Guhan
On Mon, Jun 28, 2010 at 4:18 PM, Serge E. Hallyn serge.hal...@canonical.com wrote: Quoting Nirmal Guhan (vavat...@gmail.com): I need to add user space device driver from a container and the driver is specific to the container (host won't see it). Is it possible to do so? I hope so but wanted

[Lxc-users] Dual NIC support

2010-07-20 Thread Nirmal Guhan
Assuming I have a two NIC system, is it possible to assign a NIC exclusively per container ? Traffic to NIC 1 get routed to container 1 and NIC 2 to container 2 ? Please let me know. --Nirmal -- This SF.net email is

[Lxc-users] usb devices

2010-08-02 Thread Nirmal Guhan
Hi, Am running fedora 12 with 2.6.32.10-90.fc12.i686 kernel. Currently I use bind mount to access usb disks. For instance : /media /lxc/f12/usbdisk none bind 0 0 udev mounts usb devices on /media. There are some issues with this approach : 1) Since this is hard coded config, it has to be

Re: [Lxc-users] usb devices

2010-08-03 Thread Nirmal Guhan
On Mon, Aug 2, 2010 at 6:07 PM, Toby Corkindale toby.corkind...@strategicdata.com.au wrote: On 03/08/10 09:04, Nirmal Guhan wrote: Hi, Am running fedora 12 with 2.6.32.10-90.fc12.i686 kernel. Currently I use bind mount to access usb disks. For instance : /media /lxc/f12/usbdisk none bind 0

[Lxc-users] port numbers for containers

2010-08-11 Thread Nirmal Guhan
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. --Nirmal -- This SF.net email is sponsored by Make an app they can't live

Re: [Lxc-users] port numbers for containers

2010-08-11 Thread Nirmal Guhan
On Wed, Aug 11, 2010 at 11:05 AM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Nirmal Guhan (vavat...@gmail.com): On Wed, Aug 11, 2010 at 5:06 AM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Nirmal Guhan (vavat...@gmail.com): Hi, Want to know if port numbers

Re: [Lxc-users] Launch multiple apps in exactly on container

2010-09-17 Thread Nirmal Guhan
On Fri, Sep 17, 2010 at 3:33 AM, Jon Nordby jono...@gmail.com wrote: On 17 September 2010 06:55, Jue Hong hon...@gmail.com wrote: BKW, you're right. Now we're going to use the method as you say. But, being able to start apps outside is really convenient in some cases :) It is. Before the

Re: [Lxc-users] Error starting a container - could not unmount old rootfs

2010-09-22 Thread Nirmal Guhan
On Wed, Sep 22, 2010 at 1:14 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 09/22/2010 09:50 AM, Nirmal Guhan wrote: On Wed, Sep 22, 2010 at 12:36 AM, Daniel Lezcanodaniel.lezc...@free.fr  wrote: On 09/22/2010 06:25 AM, Nirmal Guhan wrote: Hi, When starting a container, am getting

[Lxc-users] Two virtual interfaces in a container

2010-10-19 Thread Nirmal Guhan
Hi, I have a requirement to create two virtual interfaces (eth0, eth1) in a linux container and separate traffic between the two based on ip route. Basically eth0 (or eth1) should be used for external world and eth1 for communication terminating at host. How do I go about doing this? I created

Re: [Lxc-users] Two virtual interfaces in a container

2010-10-19 Thread Nirmal Guhan
On Tue, Oct 19, 2010 at 3:03 PM, Serge E. Hallyn serge.hal...@canonical.com wrote: Quoting Serge E. Hallyn (serge.hal...@canonical.com): Quoting Nirmal Guhan (vavat...@gmail.com): Hi, I have a requirement to create two virtual interfaces (eth0, eth1) in a linux container and separate

Re: [Lxc-users] Two virtual interfaces in a container

2010-10-22 Thread Nirmal Guhan
On Tue, Oct 19, 2010 at 3:58 PM, Serge E. Hallyn serge.hal...@canonical.com wrote: Quoting Nirmal Guhan (vavat...@gmail.com): On Tue, Oct 19, 2010 at 3:03 PM, Serge E. Hallyn serge.hal...@canonical.com wrote: Quoting Serge E. Hallyn (serge.hal...@canonical.com): Quoting Nirmal Guhan (vavat

Re: [Lxc-users] Two virtual interfaces in a container

2010-10-23 Thread Nirmal Guhan
On Fri, Oct 22, 2010 at 3:48 PM, Nirmal Guhan vavat...@gmail.com wrote: On Tue, Oct 19, 2010 at 3:58 PM, Serge E. Hallyn serge.hal...@canonical.com wrote: Quoting Nirmal Guhan (vavat...@gmail.com): On Tue, Oct 19, 2010 at 3:03 PM, Serge E. Hallyn serge.hal...@canonical.com wrote: Quoting

Re: [Lxc-users] Two virtual interfaces in a container

2010-10-24 Thread Nirmal Guhan
On Sun, Oct 24, 2010 at 3:07 PM, Daniel Lezcano dlezc...@fr.ibm.com wrote: On 10/23/2010 12:48 AM, Nirmal Guhan wrote: On Tue, Oct 19, 2010 at 3:58 PM, Serge E. Hallyn serge.hal...@canonical.com  wrote: Quoting Nirmal Guhan (vavat...@gmail.com): On Tue, Oct 19, 2010 at 3:03 PM, Serge E

Re: [Lxc-users] Two virtual interfaces in a container

2010-10-26 Thread Nirmal Guhan
On Mon, Oct 25, 2010 at 4:15 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 10/25/2010 07:24 AM, Nirmal Guhan wrote: On Sun, Oct 24, 2010 at 3:07 PM, Daniel Lezcanodlezc...@fr.ibm.com  wrote: [ snip ] How does it work when I have eth0 in lxc attached to br0? I still assign IP

Re: [Lxc-users] container not pinging default gw

2010-11-03 Thread Nirmal Guhan
On Tue, Nov 2, 2010 at 6:05 PM, Nirmal Guhan vavat...@gmail.com wrote: What could be the reason for container not able to ping the default gw while host can do? I use macvlan instead of bridge. Do I need to configure something in the host? -Nirmal Just realized my gw is actually a private IP

Re: [Lxc-users] container not pinging default gw

2010-11-04 Thread Nirmal Guhan
On Thu, Nov 4, 2010 at 2:31 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 11/04/2010 01:28 AM, Nirmal Guhan wrote: On Tue, Nov 2, 2010 at 6:05 PM, Nirmal Guhanvavat...@gmail.com  wrote: What could be the reason for container not able to ping the default gw while host can do? I use

Re: [Lxc-users] Container taking over host tty

2010-11-05 Thread Nirmal Guhan
On Thu, Nov 4, 2010 at 3:19 PM, Duc-Saysana HOANG d.ho...@numericable.com wrote: On Sun, 31 Oct 2010 18:42:43 + thewanderer thewande...@gim11.pl wrote: My configuration file is as follows: lxc.utsname = rkaw.pl lxc.tty = 2 lxc.network.type = veth lxc.network.flags = up

Re: [Lxc-users] GUI container

2010-12-10 Thread Nirmal Guhan
On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried running a GUI app (firefox for instance) inside a container or as an application

Re: [Lxc-users] GUI container

2010-12-16 Thread Nirmal Guhan
On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried running a GUI app (firefox for instance) inside a container or as an application

Re: [Lxc-users] GUI container

2010-12-16 Thread Nirmal Guhan
On Thu, Dec 16, 2010 at 12:06 PM, Nirmal Guhan vavat...@gmail.com wrote: On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried

Re: [Lxc-users] GUI container

2010-12-16 Thread Nirmal Guhan
On Thu, Dec 16, 2010 at 3:54 PM, Christoph Willing c.will...@uq.edu.au wrote: On 17/12/2010, at 9:40 AM, Nirmal Guhan wrote: On Thu, Dec 16, 2010 at 12:06 PM, Nirmal Guhan vavat...@gmail.com wrote: On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010

Re: [Lxc-users] how to use routing with LXC?

2011-01-11 Thread Nirmal Guhan
On Fri, Jan 7, 2011 at 5:39 PM, Mike deb...@good-with-numbers.com wrote: The instructions that I've seen for LXC suggest creating a bridge in the host, placing its name in lxc.network.link. On a diskless system I have eth0 eth1, and create the bridge on eth1. I can't put eth0 in a bridge,

[Lxc-users] Forwarding packets from host to container

2011-01-11 Thread Nirmal Guhan
Hi, How do I forward packets (ethernet frames included) from host to container. I plan to run a packet capture program (tcpdump for instance) within container that will capture the packets coming to host eth1 interface. I tried both using bridge and iptables but they do not seem to help.

Re: [Lxc-users] Forwarding packets from host to container

2011-01-11 Thread Nirmal Guhan
On Tue, Jan 11, 2011 at 5:25 PM, Nirmal Guhan vavat...@gmail.com wrote: Hi, How do I forward packets (ethernet frames included) from host to container. I plan to run a packet capture program (tcpdump for instance) within container that will capture the packets coming to host eth1 interface

Re: [Lxc-users] Forwarding packets from host to container

2011-01-11 Thread Nirmal Guhan
On Tue, Jan 11, 2011 at 5:34 PM, Nirmal Guhan vavat...@gmail.com wrote: On Tue, Jan 11, 2011 at 5:25 PM, Nirmal Guhan vavat...@gmail.com wrote: Hi, How do I forward packets (ethernet frames included) from host to container. I plan to run a packet capture program (tcpdump for instance) within

Re: [Lxc-users] Forwarding packets from host to container

2011-01-12 Thread Nirmal Guhan
On Tue, Jan 11, 2011 at 5:35 PM, Nirmal Guhan vavat...@gmail.com wrote: On Tue, Jan 11, 2011 at 5:34 PM, Nirmal Guhan vavat...@gmail.com wrote: On Tue, Jan 11, 2011 at 5:25 PM, Nirmal Guhan vavat...@gmail.com wrote: Hi, How do I forward packets (ethernet frames included) from host

Re: [Lxc-users] Forwarding packets from host to container

2011-01-12 Thread Nirmal Guhan
On Wed, Jan 12, 2011 at 12:42 PM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 01/12/2011 02:25 AM, Nirmal Guhan wrote: Hi, How do I forward packets (ethernet frames included) from host to container. I plan to run a packet capture program (tcpdump for instance) within container

Re: [Lxc-users] Forwarding packets from host to container

2011-01-12 Thread Nirmal Guhan
On Wed, Jan 12, 2011 at 2:07 PM, Nirmal Guhan vavat...@gmail.com wrote: On Wed, Jan 12, 2011 at 1:45 PM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 01/12/2011 10:28 PM, Nirmal Guhan wrote: On Wed, Jan 12, 2011 at 12:42 PM, Daniel Lezcanodaniel.lezc...@free.fr  wrote: On 01/12/2011 02

Re: [Lxc-users] Container broadcast address

2011-02-04 Thread Nirmal Guhan
On Fri, Feb 4, 2011 at 4:08 PM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 02/04/2011 03:43 PM, Andre Nathan wrote: Hello I have the following container network configuration: lxc.network.type = veth lxc.network.link = br0 lxc.network.flags = up lxc.network.ipv4 = 192.168.0.2/24

Re: [Lxc-users] How are pseudorandom MACs selected?

2011-02-04 Thread Nirmal Guhan
On Wed, Feb 2, 2011 at 6:25 PM, Trent W. Buck t...@cybersource.com.au wrote: Brian K. White br...@aljex.com writes: I just use 02:00:ip address which ends up being automatically unique enough to not collide with anything else on your subnet assuming you already know the ip's you want to use

Re: [Lxc-users] Jumping out of a read-only bind mount container

2011-02-07 Thread Nirmal Guhan
On Mon, Feb 7, 2011 at 4:53 AM, Andre Nathan an...@digirati.com.br wrote: On Mon, 2011-02-07 at 10:27 -0200, Andre Nathan wrote: So far, for a container running apache and cron, plus the usual stuff (init, getty, login), I managed to drop these:   audit_control, audit_write, fowner, fsetid,

[Lxc-users] LXC and OVF

2011-02-08 Thread Nirmal Guhan
Hi, Is anybody using OVF (open virtualization format) with LXC for containers? Please let me know. Or any plans of making lxc-start/stop understand OVF format apart from the config file infe? Thanks, Guhan -- The

Re: [Lxc-users] GUI container

2011-02-15 Thread Nirmal Guhan
On Mon, Feb 14, 2011 at 5:06 PM, Nirmal Guhan vavat...@gmail.com wrote: On Fri, Dec 17, 2010 at 10:46 AM, matto fransen ma...@matto.nl wrote: Hi, On 17 December 2010 11:28, Matto Fransen ma...@matto.nl wrote: Do I need to start container with X (level 5?). I tried these steps : I have set

[Lxc-users] Sharing rootfs - expected?

2011-02-16 Thread Nirmal Guhan
Hi, Is it an expected behavior for containers to share the host root filesystem when I *specify* the rootfs in the config file? I hope not. Here is my config lxc.utsname = mylxc lxc.rootfs = /lxc/test/rootfs lxc.mount = /lxc/test.fstab lxc.tty = 3 Note that I do not have network related

Re: [Lxc-users] possible to create/run lxc containers inside an lxc container?

2011-10-01 Thread Nirmal Guhan
Any reason for this? What is the usecase? ~Nirmal On Thu, Sep 22, 2011 at 1:02 AM, Jesse Andrews anotherje...@gmail.com wrote: When I try to create a container inside a container I get an error: root@OUTER $ lxc-create -n INNER -f net.conf -t natty debootstrap is /usr/sbin/debootstrap