[lxc-users] Question on using /dev/uio0 inside containers

2014-07-07 Thread Anjali Kulkarni
Hi, I am a newbie to using containers, and I am trying to run a DPDK enabled app inside a system container (which I created using lxc-create). While, lxc-execute works to run the dpdk app, the system container does not, giving me the following error: EAL: Cannot open /dev/uio0: No such file or

Re: [lxc-users] Question on using /dev/uio0 inside containers

2014-07-07 Thread Anjali Kulkarni
like: lxc.cgroup.devices.allow = c 249:0 rwm And as you suggested: lxc.mount.entry = /dev/uio0 dev/uio0 none bind,create=file ? Anjali On 7/7/14 8:22 AM, "Stéphane Graber" wrote: >On Mon, Jul 07, 2014 at 02:59:44PM +0000, Anjali Kulkarni wrote: >> Hi, >> >> I

Re: [lxc-users] Question on using /dev/uio0 inside containers

2014-07-07 Thread Anjali Kulkarni
Also that worked. Thanks.. On 7/7/14 11:20 AM, "Anjali Kulkarni" wrote: >Thanks Stephane for your response! >Just to be clear, if I use option 3, I use the host's device info, that is >the device has foll. Major/minor nos 249, 0 as obtained below on host: > >ls -

[lxc-users] Question on running 2 processes in 2 containers creating a lock file in /var/locks

2014-08-01 Thread Anjali Kulkarni
Hi, I am interested in running 2 processes in 2 containers, each creating a file in /var/locks. But I don't see a /var/locks in the container rootfs: ls /var/lib/lxc/test/rootfs/var/locks ls: cannot access /var/lib/lxc/test/rootfs/var/locks: No such file or directory Is there a way this can be d

[lxc-users] Pinning threads inside containers to CPUs?

2014-08-05 Thread Anjali Kulkarni
Hi, I know it is possible to pin an individual container to a CPU core, but is it possible to pin different threads inside a container to different cores? Thanks Anjali ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxco

[lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Anjali Kulkarni
Hi, We are trying to have a VM and a container ping each other via a private bridge (not going through host) via macvlan interface. A bridge, lxcbr1 is already created and contains a link from VM, and we want to add container to it as well. To do that, on adding the foll. config to a container,

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Anjali Kulkarni
n an real >physical nic. > >Quoting Anjali Kulkarni (anj...@juniper.net): >> >> Hi, >> >> We are trying to have a VM and a container ping each other via a private >> bridge (not going through host) via macvlan interface. A bridge, lxcbr1 >>is >> already

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-13 Thread Anjali Kulkarni
ner, which does not go through the host. Anjali On 8/13/14 10:36 AM, "CDR" wrote: >Do a real bridge on the host and use it on both the VM and the >container. I do it all the time. > >On Wed, Aug 13, 2014 at 1:25 PM, Anjali Kulkarni >wrote: >> Thanks - is there any

Re: [lxc-users] Cannot create a macvlan private bridge on lx

2014-08-14 Thread Anjali Kulkarni
to >this vlan devices. This will allow you to host isolated sets of >containers in different VLAN's, e.g. for staging purposes. > >Guido > >>-Original Message- >>From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On >>Behalf Of Anjali Ku

Re: [lxc-users] Mounting huge pages on a conatiner

2014-09-23 Thread Anjali Kulkarni
Hi, Are you trying to run DPDK in a container? You need to tweak a few things. I will try to write up all the changes needed to get DPDK to work inside containers, and send you shortly. In the meantime, it would help if you specified what error you get. Anjali From: Swetha Gurudu mailto:sweth

Re: [lxc-users] Accessing /dev file system from container

2014-09-25 Thread Anjali Kulkarni
You can export the uio device to the container in its config file using its device major and minor number, such as: lxc.cgroup.devices.allow = c 247:0 rwm lxc.mount.entry = /dev/uio0 dev/uio0 none bind,create=file Where, you get the 247:0 from the output of ls -l /dev/uio0 If you are trying to

Re: [lxc-users] Accessing /dev file system from container

2014-09-25 Thread Anjali Kulkarni
Sorry, there is a typo, it should be: lxc.mount.entry=/mnt/huge /var/lib/lxc/$container_name/rootfs/mnt/huge none rw,bind 0 0 From: Admin mailto:anj...@juniper.net>> Date: Thursday, September 25, 2014 7:48 AM To: LXC users mailing-list mailto:lxc-users@lists.linuxcontainers.org>> Subject: Re: [l

[lxc-users] lx-start taking a long time if veth is not added to lxcbr0Š

2014-10-01 Thread Anjali Kulkarni
Hi, I notice that If I add my beth link to any other bridge except lxcbr0, my ubuntu container takes a really long time to boot up, and seems to hang/wait for a long time after this statement: * Starting Bridge socket events into upstart ...done. My config file is: ……. # Network configurati

Re: [lxc-users] lx-start taking a long time if veth is not added to lxcbr0Š

2014-10-01 Thread Anjali Kulkarni
eth0 > >This is assuming that you are on a new enough lxc so that >the other veth endpoint is in fact being attached to br-int. >Which version are you using? > >Quoting Anjali Kulkarni (anj...@juniper.net): >> Hi, >> >> I notice that If I add my beth link to an

Re: [lxc-users] lx-start taking a long time if veth is not added to lxcbr0Š

2014-10-01 Thread Anjali Kulkarni
014 at 08:53:07PM +, Anjali Kulkarni wrote: >> Hi, >> >> I notice that If I add my beth link to any other bridge except lxcbr0, >>my ubuntu container takes a really long time to boot up, and seems to >>hang/wait for a long time after this statement: >> * Star

Re: [lxc-users] lx-start taking a long time if veth is not added to lxcbr0Š

2014-10-01 Thread Anjali Kulkarni
>auto eth0 >iface eth0 inet static >address 172.16.0.2 >netmask 255.255.255.0 >gateway 172.16.0.1 > >dns-nameservers 172.16.0.1 > dns-search mydomain.com > >Or whatever the right config is for your network. > >On Wed, Oct 01, 2014 at 09:37:3

Re: [lxc-users] lx-start taking a long time if veth is not added to lxcbr0Š

2014-10-02 Thread Anjali Kulkarni
>> inet addr:172.16.0.2 Bcast:172.255.255.255 Mask:255.0.0.0 > > >I guess that's the reason why the containers DHCPD-client still wait >until timeout. Maybe you should take a look at the containers console log >while startup to clarify where the intermission occur

Re: [lxc-users] lx-start taking a long time if veth is not added to lxcbr0Š

2014-10-02 Thread Anjali Kulkarni
want that bridge name, but want to use my own.. Thanks, Anjali On 10/2/14 11:50 AM, "Anjali Kulkarni" wrote: >Thanks Guido, very good point! I don't know where that other MAC is coming >from. >Also, lxcbr0 works, that is boots quickly, so something is different about

Re: [lxc-users] lx-start taking a long time if veth is not added to lxcbr0Š

2014-10-02 Thread Anjali Kulkarni
Ok, I found it(lxcbr0), its defined and created via /etc/default/lxc-net. On 10/2/14 4:20 PM, "Anjali Kulkarni" wrote: >Hi All, > >What I found was that if I keep lxcbr0, but add more bridges, it works and >boots fine(very quickly). >Eg. > >lxc.network.type

[lxc-users] Using libvirt with containers

2014-10-16 Thread Anjali Kulkarni
Hi , I was trying to make libvirt work with containers, so I created the container with lxc-create and then used the virsh define command to define the container xml file, but it gives me the error shown at the end: root@/scripts#lxc-create -t ubuntu -n cn-name root@/scripts# virsh -c lxc:// d

[lxc-users] Libvirt with containers and passthrough of /dev/uio0

2014-10-20 Thread Anjali Kulkarni
Hi, I am trying to define a container using libvirt, and I need to allow access of the device /dev/uio0 on the host on the container as well. That is, I have the following line in the container config file: lxc.mount.entry = /dev/uio0 dev/uio0 none bind,create=file lxc.cgroup.devices.allow = c

Re: [lxc-users] LXD, LXC... and ? ? ?

2014-11-28 Thread Anjali Kulkarni
It seems at a high level LXCD and docker can be used to achieve the same functionality - lightweight VMs... What's the purpose or benefit or plus minus of using one or the other? Is there some document describing when or where to use which? Anjali On Nov 28, 2014, at 3:10 PM, "Stéphane Graber"

[lxc-users] Using LXC and VMs together runs into a cgroup issue

2015-01-17 Thread Anjali Kulkarni
Hi, I have been using LXC container and VM started on a host machine simultaneously for a while. However, recently on using another machine, I see that either one can be started, but not both. If the /cgroups is mounted, then the LXC starts, but the VM(started via libvirt) does not, giving the

[lxc-users] How are network interfaces implemented in LXC?

2015-01-30 Thread Anjali Kulkarni
Since there is no real device emulation, I am wondering how network interfaces which can be added to linux bridges are implemented? Is it some kind of sockets and what kind of support needed to be added to the bridges to have this supported? Is it possible to connect these LXC network interfaces to

Re: [lxc-users] How are network interfaces implemented in LXC?

2015-02-01 Thread Anjali Kulkarni
Thanks Serge! What I was wondering is how this veth (tunnel or endpoints) is implemented in code? Is it like a TCP/IP socket connection over which packets are sent from one endpoint to other? Can you point me to this code? On 1/31/15, 11:26 PM, "Serge Hallyn" wrote: >Quoting An

[lxc-users] Booting a Freebsd VM inside a container

2015-02-19 Thread Anjali Kulkarni
Hi, The following link mentions booting an Ubuntu VM inside a container: (https://www.stgraber.org/2012/03/04/booting-an-ubuntu-12-04-virtual-machine-in-an-lxc-container/) However I had 2 qs 1. If we do boot a VM inside the container as mentioned in the article, would it be of any use like a nor

Re: [lxc-users] Booting a Freebsd VM inside a container

2015-02-20 Thread Anjali Kulkarni
part. Does that make sense? On 2/19/15, 6:51 PM, "Fajar A. Nugraha" wrote: >On Fri, Feb 20, 2015 at 12:56 AM, Anjali Kulkarni >wrote: >> Hi, >> >> The following link mentions booting an Ubuntu VM inside a container: >> >>(https://www.stgraber.org/2

Re: [lxc-users] Booting a Freebsd VM inside a container

2015-02-20 Thread Anjali Kulkarni
graha" wrote: >On Fri, Feb 20, 2015 at 8:16 PM, Anjali Kulkarni >wrote: >> Thanks, so for networking to work, all you need to do is add the >> networking links to the config file in /var/lib/lxc/ and then >> networking should work in the VM as it would in a normal LXC.

Re: [lxc-users] Booting a Freebsd VM inside a container

2015-02-20 Thread Anjali Kulkarni
ps create /dev/net/tun, and give the needed cgroup.devices access. > >-serge > >Quoting Anjali Kulkarni (anj...@juniper.net): >> There is a reason for it, but I can’t discuss that. There is enough >> reason, and I know you would need some funky stuff (access stuff on >>

[lxc-users] Viewing processes inside a container

2015-02-24 Thread Anjali Kulkarni
Hi, I started a process within a container, however, when I 'ps' the process on the host I can see it running. How can one differentiate or check which processes are running inside the container? Thanks Anjali ___ lxc-users mailing list lxc-users@list

[lxc-users] LXC mounting directories in wrong place

2015-02-27 Thread Anjali Kulkarni
Hi, I brought up a container on a host system, mounting some directories from host on it. Works fine. Now I tried to create another container but it seems to mount in the wrong place and gives an error in lxc-start: lxc-start -n c2 lxc-start: No such file or directory - failed to mount '/HugePa

Re: [lxc-users] LXC mounting directories in wrong place

2015-02-28 Thread Anjali Kulkarni
Folks, I figured this out, its because the directory does not exist in the container. Thanks! Anjali From: Anjali Kulkarni mailto:anj...@juniper.net>> Reply-To: LXC users mailing-list mailto:lxc-users@lists.linuxcontainers.org>> Date: Friday, February 27, 2015 at 3:14 PM To: LXC u

[lxc-users] Installing packages in a container while boot up or via script?

2015-02-28 Thread Anjali Kulkarni
Hi, Is there a way to install packages (like bridge utils etc) on some template like ubuntu while creating it via lxc-create? I read somewhere about --packages command but don't seem to find it anywhere. I want to create a container and install packages on it via a script without manually havin

Re: [lxc-users] Installing packages in a container while boot up or via script?

2015-02-28 Thread Anjali Kulkarni
uid/gids, pay attention when you do this procedure (generally before uidmapshift step). b. On 28 February 2015 at 23:54, Anjali Kulkarni mailto:anj...@juniper.net>> wrote: Hi, Is there a way to install packages (like bridge utils etc) on some template like ubuntu while creating it via lxc

[lxc-users] lxc.hook.start not working?

2015-03-02 Thread Anjali Kulkarni
I tried to add a lxc.hook.start, and pointing to a simple script. However, on trying to start the container I get this error: lxc-start -n c8 lxc-start: invalid sequence number 1. expected 4 lxc-start: failed to spawn Œc8' lxc-start: Device or resource busy - cgroup_rmdir: failed to delete /cgroup

Re: [lxc-users] lxc.hook.start not working?

2015-03-04 Thread Anjali Kulkarni
Thanks, that does not work either. Is this broken? On 3/2/15, 10:22 PM, "Fajar A. Nugraha" wrote: >On Tue, Mar 3, 2015 at 1:15 PM, Tamas Papp wrote: >> >> >> >> On March 3, 2015 12:03:06 AM Anjali Kulkarni wrote: >> >>> I tried to a

Re: [lxc-users] lxc.hook.start not working?

2015-03-04 Thread Anjali Kulkarni
urce busy - cgroup_rmdir: failed to delete /cgroup/lxc/c11-1 For some reason, it creates another container with ³-1² suffix. ls /cgroup/lxc/ Shows: c11 c11-1 Before starting this container, there was no c11 or c11-1. ThANKS Anjali On 3/4/15, 2:36 PM, "Fajar A. Nugraha" wrote: >

[lxc-users] Question on birding in nested containers

2015-03-11 Thread Anjali Kulkarni
Hi, In general to set up bridging on a nested container system, I set up a bridge on the host, and then another bridge within the container. The base container's veth is added to host bridge and the nested container's veth is added to the bridge within the base container. I can ping between 2 n

[lxc-users] Question on bridging in nested containers

2015-03-11 Thread Anjali Kulkarni
Correcting the Subject. Hi, In general to set up bridging on a nested container system, I set up a bridge on the host, and then another bridge within the container. The base container's veth is added to host bridge and the nested container's veth is added to the bridge within the base containe

Re: [lxc-users] Question on bridging in nested containers

2015-03-12 Thread Anjali Kulkarni
Sorry, I didn¹t phrase this correctly. What I meant is I ok to bypass the base container (don¹t need bridging connectivity to it), but just want to expose the host bridge to the nested container. Anjali On 3/11/15, 2:14 PM, "Fajar A. Nugraha" wrote: >On Thu, Mar 12, 2015 at 3:

Re: [lxc-users] Question on bridging in nested containers

2015-03-12 Thread Anjali Kulkarni
host by changing it's namespace, isn't it? > >But because this will need the "cooperation" of the host environment to >start a nested container from the first level container, which will >undermine the nesting szenario. > > >Dear Anjali, > >what&

Re: [lxc-users] Question on bridging in nested containers

2015-03-12 Thread Anjali Kulkarni
I mean “bypass the networking (and bridge) on *base* LXC" On 3/12/15, 12:35 PM, "Anjali Kulkarni" wrote: >Thanks Fajar and Guido. >The use case for this is that I don’t want to have double the no of IP and >MACs for each interface I want on the nested container. I want t