Re: [Lxc-users] LXC vs ESX

2011-06-04 Thread Ulli Horlacher

On Mon 2011-05-23 (13:22), Ulli Horlacher wrote:
 A small network application benchmark between LXC and VMware ESX:
 
 
 ESX:
 
 framstag@diaspora:~: fexsend  -i unifex /tmp/2GB.tmp .
 Server/User: http://fex.uni-stuttgart.de/frams...@rus.uni-stuttgart.de
 /tmp/2GB.tmp : 2048 MB in 87 s (24105 kB/s)
 
 
 LXC:
 
 framstag@diaspora:~: fexsend  -i flupp /tmp/2GB.tmp .
 Server/User: http://flupp/frams...@rus.uni-stuttgart.de
 /tmp/2GB.tmp : 2048 MB in 24 s (87381 kB/s)

I have now coupled both:

The F*EX service http://fex.uni-stuttgart.de/index.html runs on Ubuntu in
LXC on ESX. The throuput is as expected the same as with Ubuntu on ESX
alone.

-- 
Ullrich Horlacher  Server- und Arbeitsplatzsysteme
Rechenzentrum  E-Mail: horlac...@rus.uni-stuttgart.de
Universitaet Stuttgart Tel:++49-711-685-65868
Allmandring 30 Fax:++49-711-682357
70550 Stuttgart (Germany)  WWW:http://www.rus.uni-stuttgart.de/

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] LXC vs ESX

2011-06-04 Thread Gordon Henderson
On Sat, 4 Jun 2011, Ulli Horlacher wrote:

 I have now coupled both:

 The F*EX service http://fex.uni-stuttgart.de/index.html runs on Ubuntu in
 LXC on ESX. The throuput is as expected the same as with Ubuntu on ESX
 alone.

LXV vs. ESX not withstanding, it's an intersting concept...

However I guess it's just for university types - those with the benefits 
of Gb upload speeds... The poor people without that benefit - and the 
majority will have sub 1Mb/sec upload speeds (and finite data caps) from 
their home Cable/DSL connections will still post a CD/DVD/USB data key of 
anything big...

On day though .. . :)

Gordon

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] LXC vs ESX

2011-06-04 Thread Ulli Horlacher
On Sat 2011-06-04 (11:38), Gordon Henderson wrote:

 However I guess it's just for university types - those with the benefits 
 of Gb upload speeds... The poor people without that benefit - and the 
 majority will have sub 1Mb/sec upload speeds 

Many home users in Germany have upload speeds at 20 Mb/s. As far as I
know standard connection for South Korea home users is 100 Mb/s.

Besides this all German universities and most big companies have 1 Gb/s
and above (eg my university has 40 Gb/s).

So, it is good to know to have software which supports such fast links.

-- 
Ullrich Horlacher  Server- und Arbeitsplatzsysteme
Rechenzentrum  E-Mail: horlac...@rus.uni-stuttgart.de
Universitaet Stuttgart Tel:++49-711-685-65868
Allmandring 30 Fax:++49-711-682357
70550 Stuttgart (Germany)  WWW:http://www.rus.uni-stuttgart.de/

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] LXC vs ESX

2011-06-04 Thread Gordon Henderson

On Sat, 4 Jun 2011, Ulli Horlacher wrote:


On Sat 2011-06-04 (11:38), Gordon Henderson wrote:


However I guess it's just for university types - those with the benefits
of Gb upload speeds... The poor people without that benefit - and the
majority will have sub 1Mb/sec upload speeds


Many home users in Germany have upload speeds at 20 Mb/s. As far as I
know standard connection for South Korea home users is 100 Mb/s.


*sigh* Not in the UK. Standard DSL upload speed for the majority is 
448Kb/sec - 830Kb/sec on a business line, or up to 1.2Mb/sec on ADSL2+. 
The lucky ones on FTTC get 2Mb/sec, or up to 10Mb/sec if they pay silly 
amounts more. (I have one FTTC customer - they get 30Mb/sec in and 
9.5Mb/sec out - they're 2 weeks into their first months usage and have 
already consumed nearly half their 90GB allowance )-:


So there's still a lot of value in using USB data keys/CD/DVD to transport 
large quantities of data!


However, personally I'd much rather have higher data caps and lower 
contention and more stabiltiy than high speed any day of the week. And 
it's all very well having 100Mb/sec but if there's nothing to use it with, 
or your international links are so congested it's not worthwhile, then ...



Besides this all German universities and most big companies have 1 Gb/s
and above (eg my university has 40 Gb/s).


That's true for the UK Universities too (although 10 and 100Mb/sec is more 
common for medium sized companies - and even then it's not cheap - I have 
one customer on a 10Mb leased line - 1:1 contention from their premises to 
the edge of the ISPs network, no data cap and it's £500 a month. (They 
used to post DVDs to their hosting company to upload very high resolution 
photos to their website)



The sad truth is that people here aren't willing to pay the real price - 
so the huge ISPs dominate - under cut everyone else, offer high speeds 
(relatively speaking), but then have oversubscribed networks and lowish 
data caps )-:



So, it is good to know to have software which supports such fast links.


Indeed...

So one day ...

And now back to LXC :)

Cheers,

Gordon--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 ___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] trying to bridge wireless

2011-06-04 Thread matthew byers
here is what i got when i ran last command:

stlsaint@stlsaint-devcore:~$ sudo /opt/bin/lxcbr0-up
iptables v1.4.4: host/network `' not found
Try `iptables -h' or 'iptables --help' for more information.

dnsmasq: bad command line options: try --help
stlsaint@stlsaint-devcore:~$

On Fri, Jun 3, 2011 at 9:24 PM, matthew byers faintstlsa...@gmail.comwrote:

 I will try that out when i get back home. I had to go to work.


 On Fri, Jun 3, 2011 at 7:59 PM, Serge Hallyn 
 serge.hal...@canonical.comwrote:

 Weird.

 You have bridge-utils installed?  Does

brctl addbr lxcbr0
ifconfig lxcbr0 192.168.42.8 netmask 255.255.255.0
/opt/bin/lxcbr0-up

 work?

 Quoting matthew byers (faintstlsa...@gmail.com):
  stlsaint@stlsaint-devcore:~$ sudo ifup lxcbr0
  SIOCSIFADDR: No such device
  lxcbr0: ERROR while getting interface flags: No such device
  SIOCSIFNETMASK: No such device
  lxcbr0: ERROR while getting interface flags: No such device
  Failed to bring up lxcbr0.
 
 
  On Fri, Jun 3, 2011 at 6:14 PM, Serge Hallyn 
 serge.hal...@canonical.comwrote:
 
   Quoting matthew byers (faintstlsa...@gmail.com):
Hey i am trying to run lxc on my laptop but am having problem
 setting up
bridge. My internet connection consist of a WAN that i have
 absolutely no
control over. I connect my tablet to the network and then tether it
 to my
laptop. I followed directions from this site:
   
  
 http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/up
until the point of running: ifup br0 #in which i get the Ignoring
 Uknown
Interface.as shown below
   
stlsaint@stlsaint-devcore:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
   
auto lxcbr0
iface lxcbr0 inet static
address 192.168.42.8
netmask 255.255.255.0
post-up /opt/bin/lxcbr0-up
   
   
stlsaint@stlsaint-devcore:~$ cat /opt/bin/lxcbr0-up
#!/bin/sh
# This is the address we assigned to our bridge in
   /etc/network/interfaces
braddr=192.168.42.8
# ip address range for containers
brrange=192.168.42.9,192.168.42.230
iptables -A FORWARD -i lxcbr0 -s /24 -m conntrack --ctstate NEW -j
 ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j
 ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
dnsmasq --bind-interfaces --conf-file= --listen-address
--except-interface
lo --dhcp-range  --dhcp-lease-max=253 --dhcp-no-override
   
   
stlsaint@stlsaint-devcore:~$ sudo ifup br0
Ignoring unknown interface br0=br0.
  
   D'oh!
  
   Halfway through writing the post I changed br0 to lxcbr0.  Apparently
 not
   completely.
   What happens if you do:
  
   sudo ifup lxcbr0
  
   ?
  
 
 
 
  --
  God Bless




 --
 God Bless




-- 
God Bless
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 ___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] sysctl and lxc

2011-06-04 Thread Permjacov Evgeniy
Hello!
I'm running several containers on my box. One of them has postgresql
installed. When I read postgresql administration parametres, I found
suggestion to tune some parametres in sysctl.conf, such as

kernel.shmmax=17179869184
kernel.shmall=4194304
vm.overcommit_memory=2

Should I set this parametres in guest's sysctl.con or in host's one and will 
first choise affect only the container, entire system or has no effect?


--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 ___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] trying to bridge wireless

2011-06-04 Thread Serge Hallyn
Quoting matthew byers (faintstlsa...@gmail.com):
 here is what i got when i ran last command:
 
 stlsaint@stlsaint-devcore:~$ sudo /opt/bin/lxcbr0-up
 iptables v1.4.4: host/network `' not found

Oh, fudge.  The problem is I told you (in the blog post) to do

cat  file  EOF
hack hack $var hack hack
EOF

but when you do that $var gets substituted!  So your script has

'/24'

instead of

'${braddr}/24'

Please open /opt/bin/lxcbr0-up in an editor, clear it out, and paste in:

#!/bin/sh
# This is the address we assigned to our bridge in /etc/network/interfaces
braddr=192.168.30.1
# ip address range for containers
brrange=192.168.30.2,192.168.30.254
iptables -A FORWARD -i lxcbr0 -s ${braddr}/24 -m conntrack --ctstate NEW -j 
ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
dnsmasq --bind-interfaces --conf-file= --listen-address $braddr 
--except-interface lo --dhcp-range $brrange --dhcp-lease-max=253 
--dhcp-no-override

Hopefully that's the last of my blog posting booboos for now, and it'll
now work for you.

-serge

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] trying to bridge wireless

2011-06-04 Thread matthew byers
Ok, i added the change to lxcbr0-up file and saved. I went back and used
brctl to add in the info you gave before but when i run ifup lxcbr0 i get:

dnsmasq:bad command line options: try --help

Seems as if there is some wrong network info i may have entered somewhere on
my end. Just wanted to ask if this looked like a familiar error to ya?

On Sat, Jun 4, 2011 at 9:11 PM, Serge Hallyn serge.hal...@canonical.comwrote:

 Quoting matthew byers (faintstlsa...@gmail.com):
  here is what i got when i ran last command:
 
  stlsaint@stlsaint-devcore:~$ sudo /opt/bin/lxcbr0-up
  iptables v1.4.4: host/network `' not found

 Oh, fudge.  The problem is I told you (in the blog post) to do

 cat  file  EOF
 hack hack $var hack hack
 EOF

 but when you do that $var gets substituted!  So your script has

'/24'

 instead of

'${braddr}/24'

 Please open /opt/bin/lxcbr0-up in an editor, clear it out, and paste in:

 #!/bin/sh
 # This is the address we assigned to our bridge in /etc/network/interfaces
 braddr=192.168.30.1
 # ip address range for containers
 brrange=192.168.30.2,192.168.30.254
 iptables -A FORWARD -i lxcbr0 -s ${braddr}/24 -m conntrack --ctstate NEW -j
 ACCEPT
 iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
 iptables -A POSTROUTING -t nat -j MASQUERADE
 dnsmasq --bind-interfaces --conf-file= --listen-address $braddr
 --except-interface lo --dhcp-range $brrange --dhcp-lease-max=253
 --dhcp-no-override

 Hopefully that's the last of my blog posting booboos for now, and it'll
 now work for you.

 -serge




-- 
God Bless
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 ___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


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

2011-06-04 Thread Rob Landley
On 06/02/2011 02:41 PM, Daniel Lezcano wrote:
 On 06/02/2011 07:03 PM, Michael H. Warfield wrote:
 On Wed, 2011-06-01 at 20:10 -0400, Michael H. Warfield wrote:
 On Fri, 2011-05-13 at 22:32 +0200, Daniel Lezcano wrote:
 From: Daniel Lezcanodaniel.lezc...@free.fr
 We ignore the line of in the configuration file not beginning by lxc.
 So we can mix the configuration file with another information used for
 another component through the lxc library.
 Wow...

 I seem to recall requesting this sort of thing ages ago.  Maybe even
 before we created the -users list and only had the -dev list and was
 shot down.  I have s wanted this feature.  That can implement many
 of the OpenVZ compatibility things we need the high level scripts to
 perform and keep them in one file.  Many thanks.  I as SO glad to see
 this!
 I see that this has not, apparently, made it into a release bundle yet.
 Any idea when it will be out?
 
 It will be for the lxc-0.7.5 version. No ETA for the moment.
 I would like to have new feature for lxc before releasing a new version, 
 the delta with 0.7.4 are mostly bug fixes.

Just a random observation, but there would appear to be at least a
couple on the list who consider this to _be_ a new feature.

Rob

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users