Re: [Lxc-users] lxc container messing with hosts networking

2011-05-16 Thread arkai...@gmail.com
Not sure if I got it right but seems to me that you are speaking about
hardware bridges and not about the software ones we are testing here with
the kvm stuff.

Besides, looks like Serge reported it working properly on his natty-natty
setup, I wonder if it happens the same with the setup I provided.

Thanks

--
Arkaitz


On Mon, May 16, 2011 at 7:41 AM, Jäkel, Guido g.jae...@dnb.de wrote:

 Any hints?


 Dear Arkaitz,

 take a look to the switch and the spanning tree settings for the port. On
 Cisco for instance, there will be a notable connection lag on topologie
 changes if a link isn't configured to use a certain fast option.

 Guido


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] lxc container messing with hosts networking

2011-05-16 Thread arkai...@gmail.com
On Sat, May 14, 2011 at 4:06 PM, Serge Hallyn serge.hal...@canonical.comwrote:

 Hm, I just did this on natty
  (natty host, natty kvm VM, with a natty container inside that)

 and could actually not reproduce your problem.  Just a normal bridge on
 the kvm VM:

 root@lxc-natty-amd64:~# brctl show
 bridge name bridge id   STP enabled interfaces
 br0 8000.001636dd34bc   no  eth0

 And the lxc container was created with a minimal normal config:

 lxc.network.type=veth
 lxc.network.link=br0
 lxc.network.flags=up



Well, as I said it has to be something from the setup I do because I keep
having those problems even with laptop(natty)-kvm(natty)-host(natty)

I recorded this screencast that shows the issue:
http://www.screencast-o-matic.com/watch/cXhD2hbLM

Thanks

Arkaitz
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] [PATCH] ignore non-lxc configuration line

2011-05-16 Thread Serge Hallyn
Quoting Brian K. White (br...@aljex.com):
 On 5/14/2011 9:20 AM, Serge Hallyn wrote:
  Quoting David Serrano (dserra...@gmail.com):
  On Sat, May 14, 2011 at 00:15, Serge Hallynserge.hal...@canonical.com  
  wrote:
 
  I'm curious, whatcha got in mind?
 
  I don't think you have to have something in mind to implement this.
  Just that old motto Be lenient in what you accept :).
 
  So if I type 'lcx.' instead of 'lxc.', as I often do, it'll silently
  ignore it?  No, that's a bad idea.
 
  In any case I wasn't (until now) doubting Daniel's motivations, rather
  I was pretty sure he had something neat in mind.
 
 I like it but I can't think of anything off hand that I'd use it for 
 that I couldn't just as easily use either comments or a separate file to 
 do. And obviously as you point out there's an argument for enforcing 
 only known options as a basic sanity check.
 
 On the other hand there have been plenty of times where I wished 
 something would gracefully ignore options it didn't recognize which came 
 from newer versions or from distribution patched versions. It gets in 

Note that this patch won't make a difference for unrecognized, newer
lxc.* options anyway :)

It would however allow for interspersed 'libvirt.*' options, for
instance, to support inline hints for a new libvirt-lxc2 driver.

Probably not what Daniel is looking to, but not impossible :)

-serge

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] lxc container messing with hosts networking

2011-05-16 Thread Serge Hallyn
Quoting arkai...@gmail.com (arkai...@gmail.com):
 On Sat, May 14, 2011 at 4:06 PM, Serge Hallyn 
 serge.hal...@canonical.comwrote:
 
  Hm, I just did this on natty
   (natty host, natty kvm VM, with a natty container inside that)
 
  and could actually not reproduce your problem.  Just a normal bridge on
  the kvm VM:
 
  root@lxc-natty-amd64:~# brctl show
  bridge name bridge id   STP enabled interfaces
  br0 8000.001636dd34bc   no  eth0
 
  And the lxc container was created with a minimal normal config:
 
  lxc.network.type=veth
  lxc.network.link=br0
  lxc.network.flags=up
 
 
 
 Well, as I said it has to be something from the setup I do because I keep
 having those problems even with laptop(natty)-kvm(natty)-host(natty)
 
 I recorded this screencast that shows the issue:
 http://www.screencast-o-matic.com/watch/cXhD2hbLM

Got it!

It's the user networking.  When I start a debian vm with libvirt (using the
default tap interfaces) I don't get the hang.  When I start the same vm by
hand using -net user the way you do in your script, I do get the hang.

-serge

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] lxc container messing with hosts networking

2011-05-16 Thread arkai...@gmail.com
On Mon, May 16, 2011 at 6:11 PM, Serge Hallyn serge.hal...@canonical.comwrote:

 Quoting arkai...@gmail.com (arkai...@gmail.com):
  Well, as I said it has to be something from the setup I do because I keep
  having those problems even with laptop(natty)-kvm(natty)-host(natty)
 
  I recorded this screencast that shows the issue:
  http://www.screencast-o-matic.com/watch/cXhD2hbLM

 Got it!

 It's the user networking.  When I start a debian vm with libvirt (using the
 default tap interfaces) I don't get the hang.  When I start the same vm by
 hand using -net user the way you do in your script, I do get the hang.


Nice!  but I don't believe it is just a kvm issue if you are suggesting
this, as it happened to me on a standard debian on a laptop over a wireless
link, br0 to wlan0 etc... and had same hang.

Any ideas what could be causing it? it has to be something on the host
system.

Thanks

Arkaitz
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] Get CPU/Memory of all LXC containers

2011-05-16 Thread David Touzeau
Dear all

How to get information about %CPU and memory used for each LXC container
running on the host ?

Best regards


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users