[Lxc-users] Weirdness with lxc.network.hwaddr and connectivity loss
Greetings lxc-users, I'm running lxc 0.7.4-0ubuntu7 on an ubuntu 11.04 with kernel 2.6.38-8-generic. There is something I don't understand with the lxc.network.hwaddr. I was expecting to have the veth MAC addr set to it, but it appears that is only setting the vm ethernet. If we can not use this parameter to set the veth MAC address, how do you deal with the bridge switch to lowest MAC ? This switch implies a connectivity loss on lxc-stop As an example, I have : # brctl show bridge namebridge idSTP enabledinterfaces br08000.f46d04b3e02enoeth0 But when I run 'lxc-start', I get a random MAC address, and the br0 mac switch to it in most cases # brctl showmacs br0 port nomac addris local?ageing timer 256:82:9a:de:9c:0ayes 0.00 1f4:6d:04:b3:e0:2eyes 0.00 # brctl show bridge namebridge idSTP enabledinterfaces br08000.56829ade9c0anoeth0 vethuUyg4e The bridge has been defined like this : auto br0 iface br0 inet static address 192.168.1.100 netmask 255.255.255.0 gateway 192.168.1.254 bridge_ports eth0 bridge_stp off bridge_fd 0 bridge_hello 0 -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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] LXC vs ESX
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) The ESX host has about twice of native CPU and disk power than the LXC host. ESX has 10 Gb/s, LXC has 1 GB/s. Both VMs run the same software. -- 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/ -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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 vs ESX
Hello Ulli, thanks for the interesting numbers. What kind of networking did you use in LXC. Veth? Regards, Christoph On 05/23/2011 01:22 PM, 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) The ESX host has about twice of native CPU and disk power than the LXC host. ESX has 10 Gb/s, LXC has 1 GB/s. Both VMs run the same software. -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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 vs ESX
On Mon 2011-05-23 (13:26), Christoph Mitasch wrote: What kind of networking did you use in LXC. Veth? Yes. Hardware is an ordinary Dell office PC, whereas the ESX host is a datacenter grade Fujitsu server. Price difference ca factor 1000 :-) -- 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/ -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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 vs ESX
Ulli Horlacher frams...@rus.uni-stuttgart.de 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) The ESX host has about twice of native CPU and disk power than the LXC host. ESX has 10 Gb/s, LXC has 1 GB/s. Both VMs run the same software. But that is to be expected, is it? There is no virtual i/O layer on lxc; ESX (or is it ESXi?) probably is not using SRIOV with that 10G NIC, etc. But lxc won't be able to run Windows (which is the main purpose of ESX(i)). Kind regards, Töns -- There is no safe distance. -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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] Mixing public and private IPs for guests - network configuration?
On 5/21/2011 7:48 PM, Benjamin Kiessling wrote: Hi, Indeed this is not a virtualization specific problem. You want your host to operate as a router for the other two IP addresses and, depending on the configuration of OVH, ARP-Proxy the whole stuff. Assuming you want have PUB-IP1 on the host and want to assign PUB-IP2 to the container (lets say with veths). Just assign PUB-IP1 to your host (ip addr a PUB-IP1 dev ethN), add the route for PUB-IP2 to the veth of the container on the host (ip r a PUB-IP2 dev vethN), add PUB-IP2 to the interface in the container (ip addr a PUB-IP2 dev vethContainer) and set a default route over PUB-IP1 in the container (ip r a PUB-IP1/32 dev vethContainer ip r a default via PUB-IP1 dev vethContainer). Enable Routing (/proc/sys/net/ipv4/ip_forward) and if OVH uses reverse path filtering proxy-arp (/proc/sys/net/ipv4/conf/$DEV/proxy_arp) on the host. That should do it. You could use a bridge and still reach all containers (the bridge would have the address PUB-IP1 and would include all veths and the physical device) but it'll complicate the setup if NAT is required for certain containers. Just set the routes explicitly for each container veth. Regards, Benjamin Kiessling I'm not the OP but just wanted to say this was good stuff and I appreciate a handy run-down like that. -- bkw -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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] Cannot see a login console on start
Hi all, I'm new to LXC and I've been following the following instructions on how to setup a container: http://www.phenona.com/blog/using-lxc-linux-containers-in-amazon-ec2/ Unfortunately, it seems I cannot start a container. In fact, after I run the following: lxc-start -n vm0 I cannot see any login prompt. I'm trying the procedure on a local VM running Ubuntu 10.04. Any help would be very appreciated. Best regards, Roberto -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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] Cannot see a login console on start
Quoting Roberto (prof...@gmail.com): Hi all, I'm new to LXC and I've been following the following instructions on how to setup a container: http://www.phenona.com/blog/using-lxc-linux-containers-in-amazon-ec2/ Unfortunately, it seems I cannot start a container. In fact, after I run the following: lxc-start -n vm0 I cannot see any login prompt. I'm trying the procedure on a local VM running Ubuntu 10.04. Any help would be very appreciated. Not sure exactly what that tutorial is doing. Didn't see anything obviously wrong with it. You might try verifying it by doing lxc-create -f /usr/share/doc/lxc/examples/lxc-macvlan.conf -t ubuntu -n u1 lxc-start -n u1 and see if that is giving you a console. If not, then perhaps something in your VM isn't right, for instance no support for multiple devpts. In fact, what does sudo lxc-config give you? -serge -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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 vs ESX
Hi again, I was just thinking about another test case. The native network performance of the host system (not inside the container). Regards, Christoph On 05/23/2011 01:32 PM, Ulli Horlacher wrote: On Mon 2011-05-23 (13:26), Christoph Mitasch wrote: What kind of networking did you use in LXC. Veth? Yes. Hardware is an ordinary Dell office PC, whereas the ESX host is a datacenter grade Fujitsu server. Price difference ca factor 1000 :-) -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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] Weirdness with lxc.network.hwaddr and connectivity loss
On 05/23/2011 12:31 PM, Manuel de Ferran wrote: Greetings lxc-users, I'm running lxc 0.7.4-0ubuntu7 on an ubuntu 11.04 with kernel 2.6.38-8-generic. There is something I don't understand with the lxc.network.hwaddr. I was expecting to have the veth MAC addr set to it, but it appears that is only setting the vm ethernet. If we can not use this parameter to set the veth MAC address, how do you deal with the bridge switch to lowest MAC ? This switch implies a connectivity loss on lxc-stop Hi Manuel, may be you can find a work around with this post: http://backreference.org/2010/07/28/linux-bridge-mac-addresses-and-dynamic-ports/ -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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 vs ESX
On Mon 2011-05-23 (21:24), Christoph Mitasch wrote: I was just thinking about another test case. The native network performance of the host system (not inside the container). framstag@diaspora:~: fexsend -u vms2 /tmp/2GB.tmp . Server/User: http://vms2/frams...@rus.uni-stuttgart.de /tmp/2GB.tmp : 2048 MB in 25 s (83886 kB/s) Nearly the same as with the container. -- 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/ -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] IPv6 Stateless Autoconfig with radvd running on the lxc host
that's a weird BOOLEAN On Sun, 22 May 2011 15:52:23 +0200 Daniel Lezcano daniel.lezc...@free.fr wrote: On 05/22/2011 07:27 AM, Marc Haber wrote: On Sat, May 21, 2011 at 10:53:56PM +0200, Daniel Lezcano wrote: On 05/21/2011 10:11 PM, Marc Haber wrote: On Sat, May 21, 2011 at 10:07:03PM +0200, Daniel Lezcano wrote: Is the guest's /proc/sys/net/ipv6/conf/eth0/accept_ra set ? It is. Can you check by setting the value to '2' and then ifdown/ifup the interface ? Ok, this is interesting. Two results: (1) With neither setting does the lxc container actively send out Router Solicitations. It just sits there waiting for the next Router Advertisement, which is only sent out by the radvd every 600 seconds. The documentation says: accept_ra - BOOLEAN Accept Router Advertisements; autoconfigure using them. Possible values are: 0 Do not accept Router Advertisements. 1 Accept Router Advertisements if forwarding is disabled. 2 Overrule forwarding behaviour. Accept Router Advertisements even if forwarding is enabled. Functional default: enabled if local forwarding is disabled. disabled if local forwarding is enabled. (2) Only with 2 in /proc/sys/net/ipv6/conf/eth0/accept_ra, the lxc container acts on an incoming Router Advertisement, which can be forced by restarting the radvd. With accept_ra=2, it accepts the RA and properly acts on it, while with accept_ra=1, it just ignores the RA. Greetings Marc -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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 -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] IPv6 Stateless Autoconfig with radvd running on the lxc host
I loled. On Mon, May 23, 2011 at 10:12 PM, John Soros joh...@r0x0r.me wrote: that's a weird BOOLEAN On Sun, 22 May 2011 15:52:23 +0200 Daniel Lezcano daniel.lezc...@free.fr wrote: On 05/22/2011 07:27 AM, Marc Haber wrote: On Sat, May 21, 2011 at 10:53:56PM +0200, Daniel Lezcano wrote: On 05/21/2011 10:11 PM, Marc Haber wrote: On Sat, May 21, 2011 at 10:07:03PM +0200, Daniel Lezcano wrote: Is the guest's /proc/sys/net/ipv6/conf/eth0/accept_ra set ? It is. Can you check by setting the value to '2' and then ifdown/ifup the interface ? Ok, this is interesting. Two results: (1) With neither setting does the lxc container actively send out Router Solicitations. It just sits there waiting for the next Router Advertisement, which is only sent out by the radvd every 600 seconds. The documentation says: accept_ra - BOOLEAN Accept Router Advertisements; autoconfigure using them. Possible values are: 0 Do not accept Router Advertisements. 1 Accept Router Advertisements if forwarding is disabled. 2 Overrule forwarding behaviour. Accept Router Advertisements even if forwarding is enabled. Functional default: enabled if local forwarding is disabled. disabled if local forwarding is enabled. (2) Only with 2 in /proc/sys/net/ipv6/conf/eth0/accept_ra, the lxc container acts on an incoming Router Advertisement, which can be forced by restarting the radvd. With accept_ra=2, it accepts the RA and properly acts on it, while with accept_ra=1, it just ignores the RA. Greetings Marc -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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 -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users -- François-Xavier Bourlet -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users