OpenVZ Forum - RDF feed
type: channel
items: Debian: recommended kernel
items: Re: Debian: recommended kernel
items: Re: Re: Debian: recommended kernel

Debian: recommended kernel
type: item
description: Hi all We're running OpenVZ on Debian Squeeze with the kernel shipped by Debian. Several sources recommend to use RHEL 6 stable kernel. Is it recommended to use it also on Debian stable? If so, how should it be installed? The wiki has links to rpm files only, it seems. The reason I ask is that we're considering switching kernel, since the Debian OpenVZ kernel seems to have issues. Specifically, we suffer from the same problem as described here: http://lists.debian.org/debian-kernel/2011/12/msg00689.html Cheers Roman
creator: Roman Haefeli
date: 2012-05-02T16:31:22-00:00

Re: Debian: recommended kernel
type: item
description: This was linked earlier this week; https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh Might be useful for you if you wish to get a debianized openvz-kernel. If you really want to run debian I would suggest looking into proxmox instead since they build the stable rpm-kernels for debian. Good luck! //T On Wed, May 2, 2012 18:31, Roman Haefeli wrote: > Hi all > > We're running OpenVZ on Debian Squeeze with the kernel shipped by > Debian. > > Several sources recommend to use RHEL 6 stable kernel. Is it recommended > to use it also on Debian stable? If so, how should it be installed? The > wiki has links to rpm files only, it seems. > > The reason I ask is that we're considering switching kernel, since the > Debian OpenVZ kernel seems to have issues. Specifically, we suffer from > the same problem as described here: > http://lists.debian.org/debian-kernel/2011/12/msg00689.html > > Cheers > Roman > > -- Timh
creator: Timh B
date: 2012-05-02T17:39:09-00:00

Re: Debian: recommended kernel
type: item
description: On Wed, May 2, 2012 at 9:39 PM, Timh B <timh@shiwebs.net> wrote: > This was linked earlier this week; > https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh > > Might be useful for you if you wish to get a debianized openvz-kernel. > > If you really want to run debian I would suggest looking into proxmox > instead since they build the stable rpm-kernels for debian. May be good, choice, yes. Not tried myself, but reading their maillist. > > Good luck! > > //T > > On Wed, May 2, 2012 18:31, Roman Haefeli wrote: >> Hi all >> >> We're running OpenVZ on Debian Squeeze with the kernel shipped by >> Debian. >> >> Several sources recommend to use RHEL 6 stable kernel. Is it recommended >> to use it also on Debian stable? If so, how should it be installed? The >> wiki has links to rpm files only, it seems. >> >> The reason I ask is that we're considering switching kernel, since the >> Debian OpenVZ kernel seems to have issues. Specifically, we suffer from >> the same problem as described here: >> http://lists.debian.org/debian-kernel/2011/12/msg00689.html I was forced to switch into RHEL based kernels instead of Debian ones because of another bug - http://bugzilla.openvz.org/show_bug.cgi?id=1747 - I had connection resets while on tcp sockets. >> >> Cheers >> Roman >> >> > -- Timh > > -- Best regards, [COOLCOLD-RIPN]
creator: coolcold
date: 2012-05-02T19:18:12-00:00

Re: Debian: recommended kernel
type: item
description: I second the proxmox idea - it is an excellent platform, I recently downloaded it to take a look and was quite impressed. It's a more comprehensive solution than openvz+ovz-web-panel. I'm sold on it and will deploy it in future. It does require x86_64 hardware though. Joe On Wed, May 2, 2012 at 10:39 AM, Timh B <timh@shiwebs.net> wrote: > This was linked earlier this week; > > https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh > > Might be useful for you if you wish to get a debianized openvz-kernel. > > If you really want to run debian I would suggest looking into proxmox > instead since they build the stable rpm-kernels for debian. > > Good luck! > > //T > > On Wed, May 2, 2012 18:31, Roman Haefeli wrote: > > Hi all > > > > We're running OpenVZ on Debian Squeeze with the kernel shipped by > > Debian. > > > > Several sources recommend to use RHEL 6 stable kernel. Is it recommended > > to use it also on Debian stable? If so, how should it be installed? The > > wiki has links to rpm files only, it seems. > > > > The reason I ask is that we're considering switching kernel, since the > > Debian OpenVZ kernel seems to have issues. Specifically, we suffer from > > the same problem as described here: > > http://lists.debian.org/debian-kernel/2011/12/msg00689.html > > > > Cheers > > Roman > > > > > -- Timh > >
creator: jjs - mainphrame
date: 2012-05-02T19:19:41-00:00

Re: Debian: recommended kernel
type: item
description: On 05/02/2012 09:39 PM, Timh B wrote: > This was linked earlier this week; > https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh > > Might be useful for you if you wish to get a debianized openvz-kernel. Yet another solution is to use alien: http://wiki.openvz.org/Install_kernel_from_RPM_on_Debian_6.0 The bad thing about it is it's not a "native" way. The good thing is you have the same bit-by-bit binary kernel which we test a lot. > > If you really want to run debian I would suggest looking into proxmox > instead since they build the stable rpm-kernels for debian. > > Good luck! > > //T > > On Wed, May 2, 2012 18:31, Roman Haefeli wrote: >> Hi all >> >> We're running OpenVZ on Debian Squeeze with the kernel shipped by >> Debian. >> >> Several sources recommend to use RHEL 6 stable kernel. Is it recommended >> to use it also on Debian stable? If so, how should it be installed? The >> wiki has links to rpm files only, it seems. >> >> The reason I ask is that we're considering switching kernel, since the >> Debian OpenVZ kernel seems to have issues. Specifically, we suffer from >> the same problem as described here: >> http://lists.debian.org/debian-kernel/2011/12/msg00689.html >> >> Cheers >> Roman >>
creator: kir
date: 2012-05-03T05:14:50-00:00

Re: Debian: recommended kernel
type: item
description: On Thu, May 3, 2012 at 9:14 AM, Kir Kolyshkin <kir@openvz.org> wrote: > On 05/02/2012 09:39 PM, Timh B wrote: >> >> This was linked earlier this week; >> >> https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh >> >> Might be useful for you if you wish to get a debianized openvz-kernel. > > > Yet another solution is to use alien: > http://wiki.openvz.org/Install_kernel_from_RPM_on_Debian_6.0 Well, alien works for binary part of kernel, but when I've tried to install kernel headers that way, i had files conflicts, that's why that script above was born. > > The bad thing about it is it's not a "native" way. The good thing is you > have the same bit-by-bit binary kernel which we test a lot. > > >> >> If you really want to run debian I would suggest looking into proxmox >> instead since they build the stable rpm-kernels for debian. >> >> Good luck! >> >> //T >> >> On Wed, May 2, 2012 18:31, Roman Haefeli wrote: >>> >>> Hi all >>> >>> We're running OpenVZ on Debian Squeeze with the kernel shipped by >>> Debian. >>> >>> Several sources recommend to use RHEL 6 stable kernel. Is it recommended >>> to use it also on Debian stable? If so, how should it be installed? The >>> wiki has links to rpm files only, it seems. >>> >>> The reason I ask is that we're considering switching kernel, since the >>> Debian OpenVZ kernel seems to have issues. Specifically, we suffer from >>> the same problem as described here: >>> http://lists.debian.org/debian-kernel/2011/12/msg00689.html >>> >>> Cheers >>> Roman >>> > -- Best regards, [COOLCOLD-RIPN]
creator: coolcold
date: 2012-05-03T06:32:06-00:00

Re: Debian: recommended kernel
type: item
description: Thanks for all the responses! On Thu, 2012-05-03 at 09:14 +0400, Kir Kolyshkin wrote: > On 05/02/2012 09:39 PM, Timh B wrote: > > This was linked earlier this week; > > https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh > > > > Might be useful for you if you wish to get a debianized openvz-kernel. > > Yet another solution is to use alien: > http://wiki.openvz.org/Install_kernel_from_RPM_on_Debian_6.0 > > The bad thing about it is it's not a "native" way. The good thing is you > have the same bit-by-bit binary kernel which we test a lot. In the meanwhile I have tried two of the suggested solutions: * RHEL6-kernel (debianized with alien) * proxmox-kernel from their repository (which for the 2.6.32 version says it is based on RHEL6) (I haven't looked yet into building my own with CoolCold's script) I didn't have troubles to install either of those. However, both expose the exact same problem. The network bridges vzbr0 and vzbr1 do not work correctly and I need those for the veth devices of the containers. Networking without those bridges seem to work fine, but when the bridges are active, TCP connections fail to work. UDP seems to be not affected, both inbound and outbound connections work. However, with TCP I can only establish outbound connections, but as soon as the connection is established, nothing is received on the other end anymore. Nor can I send from outside to the machine with vzbr0. When I switch back to Debian's OpenVZ kernel, the problems disappear, but come back, when I boot into the RHEL6 or proxmox kernel. I wonder if really the kernel is the problem or rather some network/bridge configuration. I assume others do run bridges successfully with the aforementioned kernels also run CTs with veths successfully. Is that correct? Roman This is my network configuration on said machine: eth2 eth3 physical NICs | | +--+--+ | bond0 | +---+-----+----------+ | | | vlan20 vlan30 vlan31 VLANs | | vzbr0 vzbr1 bridges DMZ local…
creator: Roman Haefeli
date: 2012-05-04T09:58:12-00:00

Re: Debian: recommended kernel
type: item
description: On Fri, 2012-05-04 at 11:58 +0200, Roman Haefeli wrote: > Thanks for all the responses! > > On Thu, 2012-05-03 at 09:14 +0400, Kir Kolyshkin wrote: > > On 05/02/2012 09:39 PM, Timh B wrote: > > > This was linked earlier this week; > > > https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh > > > > > > Might be useful for you if you wish to get a debianized openvz-kernel. > > > > Yet another solution is to use alien: > > http://wiki.openvz.org/Install_kernel_from_RPM_on_Debian_6.0 > > > > The bad thing about it is it's not a "native" way. The good thing is you > > have the same bit-by-bit binary kernel which we test a lot. > > In the meanwhile I have tried two of the suggested solutions: > > * RHEL6-kernel (debianized with alien) > * proxmox-kernel from their repository (which for the 2.6.32 version > says it is based on RHEL6) > > (I haven't looked yet into building my own with CoolCold's script) > > I didn't have troubles to install either of those. However, both expose > the exact same problem. The network bridges vzbr0 and vzbr1 do not work > correctly and I need those for the veth devices of the containers. > Networking without those bridges seem to work fine, but when the bridges > are active, TCP connections fail to work. UDP seems to be not affected, > both inbound and outbound connections work. However, with TCP I can only > establish outbound connections, but as soon as the connection is > established, nothing is received on the other end anymore. Nor can I > send from outside to the machine with vzbr0. Our problem looks very similar to the one described here: https://bugzilla.redhat.com/show_bug.cgi?id=623199 Could it be that current stable OpenVZ suffers from the same issue? Or asked differently: Is the current stable OpenVZ kernel based on RHEL 6.0 which does not contain the fixes as described in: http://rhn.redhat.com/errata/RHSA-2011-0542.html Roman
creator: Roman Haefeli
date: 2012-05-09T07:33:52-00:00

Re: Debian: recommended kernel
type: item
description: On Wed, 2012-05-02 at 18:31 +0200, Roman Haefeli wrote: > Hi all > > We're running OpenVZ on Debian Squeeze with the kernel shipped by > Debian. > > Several sources recommend to use RHEL 6 stable kernel. Is it recommended > to use it also on Debian stable? If so, how should it be installed? The > wiki has links to rpm files only, it seems. > > The reason I ask is that we're considering switching kernel, since the > Debian OpenVZ kernel seems to have issues. Specifically, we suffer from > the same problem as described here: > http://lists.debian.org/debian-kernel/2011/12/msg00689.html It turns out that RHEL 6 based OpenVZ kernel causes more severe issues than the one from Debian (see my last mail in this thread). Actually, we found a simple work-around for our initial problem (see above link): We turn off locking with the mount.nfs option 'nolock'. We have a HA cluster with corosync/pacemaker running, which manages the CTs which are running on an NFS export shared across all nodes. As the HA layer makes sure to not run duplicate instances of CTs, there seems to be no reason to have NFS locking enabled. Roman
creator: Roman Haefeli
date: 2012-05-09T07:49:45-00:00

Re: Debian: recommended kernel
type: item
description: Roman Haefeli <reduzent@gmail.com> writes: [...] > We have a HA cluster with corosync/pacemaker running, which manages the > CTs which are running on an NFS export shared across all nodes. As the > HA layer makes sure to not run duplicate instances of CTs, there seems > to be no reason to have NFS locking enabled. How do you do STONITH in openvz? I hope you are doing it, because thats the only thing that prevents corruption in the split brain situations, now that you've turned off locking (i.e. fencing). That being said, I'm still struggling to figure out how to do proper clusters in the virtualized environment. If someone has any pointers/tutorials/etc I would appreciate it. I'm specifically interested in situations where you have more than one virtualized clusters running on the same group of physical nodes.
creator: Aleksandar Ivanisevic
date: 2012-05-09T10:54:52-00:00

Re: Re: Debian: recommended kernel
type: item
description: On Wed, 2012-05-09 at 12:54 +0200, Aleksandar Ivanisevic wrote: > Roman Haefeli <reduzent@gmail.com> > writes: > > > [...] > > > We have a HA cluster with corosync/pacemaker running, which manages the > > CTs which are running on an NFS export shared across all nodes. As the > > HA layer makes sure to not run duplicate instances of CTs, there seems > > to be no reason to have NFS locking enabled. > > How do you do STONITH in openvz? I hope you are doing it, because > thats the only thing that prevents corruption in the split brain > situations, We use SBD (Storage Based Death) > now that you've turned off locking (i.e. fencing). Turning on locking wouldn't prevent data corruption in case of a split brain situation as for most files no lock is acquired. Roman
creator: Roman Haefeli
date: 2012-05-09T12:43:51-00:00

Re: Debian: recommended kernel
type: item
description: Roman Haefeli <reduzent@gmail.com> writes: [...] >> now that you've turned off locking (i.e. fencing). > > Turning on locking wouldn't prevent data corruption in case of a split > brain situation as for most files no lock is acquired. Heh, I always thought openvz locks a file in $LOCKDIR to signal that the container is running, but now that I look in the straces it looks like it uses a custom ioctl, which is local kernel scope only. Would probably be a nice feature request to use a flock or at least leave a lockfile somewhere that can be mounted as a poor man's fencing mechanism.
creator: Aleksandar Ivanisevic
date: 2012-05-10T09:02:49-00:00

Re: Debian: recommended kernel
type: item
description: On 05/09/2012 11:33 AM, Roman Haefeli wrote: > On Fri, 2012-05-04 at 11:58 +0200, Roman Haefeli wrote: >> Thanks for all the responses! >> >> On Thu, 2012-05-03 at 09:14 +0400, Kir Kolyshkin wrote: >>> On 05/02/2012 09:39 PM, Timh B wrote: >>>> This was linked earlier this week; >>>> https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh >>>> >>>> Might be useful for you if you wish to get a debianized openvz-kernel. >>> Yet another solution is to use alien: >>> http://wiki.openvz.org/Install_kernel_from_RPM_on_Debian_6.0 >>> >>> The bad thing about it is it's not a "native" way. The good thing is you >>> have the same bit-by-bit binary kernel which we test a lot. >> In the meanwhile I have tried two of the suggested solutions: >> >> * RHEL6-kernel (debianized with alien) >> * proxmox-kernel from their repository (which for the 2.6.32 version >> says it is based on RHEL6) >> >> (I haven't looked yet into building my own with CoolCold's script) >> >> I didn't have troubles to install either of those. However, both expose >> the exact same problem. The network bridges vzbr0 and vzbr1 do not work >> correctly and I need those for the veth devices of the containers. >> Networking without those bridges seem to work fine, but when the bridges >> are active, TCP connections fail to work. UDP seems to be not affected, >> both inbound and outbound connections work. However, with TCP I can only >> establish outbound connections, but as soon as the connection is >> established, nothing is received on the other end anymore. Nor can I >> send from outside to the machine with vzbr0. > Our problem looks very similar to the one described here: > https://bugzilla.redhat.com/show_bug.cgi?id=623199 > > Could it be that current stable OpenVZ suffers from the same issue? Or > asked differently: Is the current stable OpenVZ kernel based on RHEL 6.0 > which does not contain the fixes as described in: > http://rhn.redhat.com/errata/RHSA-2011-0542.html …
creator: kir
date: 2012-05-10T16:06:35-00:00