Re: [lxc-users] Difference in using network namespace via ip command and lxc

2014-06-27 Thread Ajith Adapa
Thanks @serge for the reply. So we cannot create a namespace without binding it to a process then ? On Fri, Jun 27, 2014 at 10:49 PM, Serge Hallyn wrote: > Quoting Ajith Adapa (ajith.ad...@gmail.com): >> Hi, >> >> I am quite new to network namespaces and just making my hands dirty >> using ip co

Re: [lxc-users] Setting a limit on the disk size that a container can use

2014-06-27 Thread Fajar A. Nugraha
On second thought, DON'T use scst/LIO in loopback configuration. Or any other inititator-target configuration in the same host where both initiator and target are in-kernel (this includes nfs). Using these kind of setup can lead to memory allocation deadlock. It should be fine for testing/migratio

Re: [lxc-users] Difference in using network namespace via ip command and lxc

2014-06-27 Thread Serge Hallyn
Quoting Ajith Adapa (ajith.ad...@gmail.com): > Hi, > > I am quite new to network namespaces and just making my hands dirty > using ip command to create network namespaces. > > As per the man page for ip command > > " By convention a named network namespace is an object at >/var/run

Re: [lxc-users] Internet to a container with local/private IP ( NAT ? )

2014-06-27 Thread Vijay Viswanathan
oops, I spoke too soon. the commands on that link didnt work. but it looks I need something to that effect. iptables --flush # iptables -A INPUT-p udp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT # iptables -A INPUT-p tcp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT # iptabl

Re: [lxc-users] Packet flow from application running in container to physical NIC transmission

2014-06-27 Thread Guido Jäkel
Dear Mohit, you're welcome. The LXC project is a "meta project" which has bundled and is based on a couple of other work, e.g. from the teams of the kernel or the cgroup developers. From that, no all userland stuff is LXC-aware yet. The LXC team know about, point this out to other package maint

Re: [lxc-users] Packet flow from application running in container to physical NIC transmission

2014-06-27 Thread Mohit Saxena
Thanks a Lot Jäkel, it clarifies a lot of doubts for me. What will be output of dmesg from the container? Is it same as host output or it will show the container bootup sequence. On Fri, Jun 27, 2014 at 5:21 PM, Jäkel, Guido wrote: > Dear Mohit, > > Please look out for some slide shows or blog

[lxc-users] Difference in using network namespace via ip command and lxc

2014-06-27 Thread Ajith Adapa
Hi, I am quite new to network namespaces and just making my hands dirty using ip command to create network namespaces. As per the man page for ip command " By convention a named network namespace is an object at /var/run/netns/NAME that can be opened. The file descriptor res

Re: [lxc-users] interpreting lxc-top CPU numbers

2014-06-27 Thread Dwight Engen
On Thu, 26 Jun 2014 13:23:52 -0400 Chris Burroughs wrote: > ContainerCPU CPU CPU BlkIOMem > NameUsed Sys User Total Used > c3242.8571.47 193.442.92 GB 48.33 MB > c4 2028.90 209.47 2

[lxc-users] zfs snapshot point

2014-06-27 Thread Chris Burroughs
Currently when using lxc-snapshot the snapshot point is the rootfs dataset. (so something like /lxc/foo/rootfs) I'm trying to understand why the dataset doesn't also include the config file (so /lxc/foo/). Isn't that file also needed to reconstitute a snapshot, or is that information duplicate

Re: [lxc-users] Packet flow from application running in container to physical NIC transmission

2014-06-27 Thread Jäkel , Guido
Dear Mohit, Please look out for some slide shows or blog articles about LXC. Maybe the following may help you to master the first hurdles, too: * The "templates" are used to set up a (more-or-less) key-ready root filesystem of some Linux distribution. They wil act as a bootstraper and will dow

[lxc-users] Packet flow from application running in container to physical NIC transmission

2014-06-27 Thread Mohit Saxena
Hi all, I am a new bee to Linux containers, I am trying to understand the networking from the container to physical NIC. Could any one you please point me to some materials on this which will help from a developer perspective. I had got a lot of material but all of those are from and Network admi

Re: [lxc-users] Setting a limit on the disk size that a container can use

2014-06-27 Thread Qiang Huang
On 2014/6/27 12:18, Fajar A. Nugraha wrote: > On Fri, Jun 27, 2014 at 11:02 AM, Qiang Huang > wrote: > > On 2014/6/27 11:38, Fajar A. Nugraha wrote: > > On Fri, Jun 27, 2014 at 9:28 AM, Qiang Huang