Hello,

how to update Linux OpenVZ kernel?

I had this kernel: # uname -r
2.6.32-042stab093.5

and i tried command: yum update vzkernel

and after confirmation, it Installed:
vzkernel.x86_64 0:2.6.32-042stab113.11

Dependency Updated:
kernel-firmware.noarch 0:2.6.32-573.12.1.el6

Before update this was part of the /etc/grub.conf

default=0
timeout=4
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title OpenVZ (2.6.32-042stab093.5)
root (hd0,0)
kernel /vmlinuz-2.6.32-042stab093.5 ro root=/dev/mapper/vg-root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-042stab093.5.img
title CentOS (2.6.32-504.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=/dev/mapper/vg-root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-504.el6.x86_64.img
title CentOS (2.6.32-431.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/vg-root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.el6.x86_64.img
after update:

default=0
timeout=4
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title OpenVZ (2.6.32-042stab113.11)
root (hd0,0)
kernel /vmlinuz-2.6.32-042stab113.11 ro root=/dev/mapper/vg-root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-042stab113.11.img
title OpenVZ (2.6.32-042stab093.5)
root (hd0,0)
kernel /vmlinuz-2.6.32-042stab093.5 ro root=/dev/mapper/vg-root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-042stab093.5.img
title CentOS (2.6.32-504.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=/dev/mapper/vg-root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-504.el6.x86_64.img
title CentOS (2.6.32-431.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/vg-root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.el6.x86_64.img
so in grub.conf i had first kernel section selected as default on boot (default=0) and after kernel update, it added new kernel at the first spot, so i assume this new kernel will be used on next boot. Hopefully there will be no issue.

PS: People adviced running "yum update" to update all system packages, but i will not do it for now.