How to update vzkernel in host OS running OpenVZ

This is how you can update your kernel in your host OS.

1. Check the installed kernel first.

[root@choi ~]# rpm -qa | grep vzkernel
vzkernel-2.6.32-042stab057.1.x86_64

2. Search for available vzkernel

[root@choi ~]# yum search vzkernel
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: mirror.usonyx.net
* extras: mirror.usonyx.net
* openvz-kernel-rhel6: mirror.secureax.com
* openvz-utils: mirror.secureax.com
* updates: mirror.smartmedia.net.id
base | 3.7 kB
00:00
extras | 3.5 kB
00:00
openvz-kernel-rhel6 | 951 B
00:00
openvz-utils | 951 B
00:00
updates | 3.5 kB
00:00
============================ N/S Matched: vzkernel
=============================
vzkernel.x86_64 : The Linux kernel

3. You may now update the vzkernel.

[root@choi ~]# yum update vzkernel.x86_64
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: mirror.usonyx.net
* extras: mirror.usonyx.net
* openvz-kernel-rhel6: mirror.secureax.com
* openvz-utils: mirror.secureax.com
* updates: mirror.smartmedia.net.id
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package vzkernel.x86_64 0:2.6.32-042stab076.8 will be installed
–> Processing Dependency: kernel-firmware >= 2.6.32-279.22.1.el6 for
package: vzkernel-2.6.32-042stab076.8.x86_64
–> Running transaction check
—> Package kernel-firmware.noarch 0:2.6.32-220.23.1.el6 will be obsoleted
—> Package vzkernel-firmware.noarch 0:2.6.32-042stab076.8 will be
obsoleting
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
vzkernel x86_64 2.6.32-042stab076.8 openvz-kernel-rhel6
27 M
vzkernel-firmware noarch 2.6.32-042stab076.8 openvz-kernel-rhel6
10 M
replacing kernel-firmware.noarch 2.6.32-220.23.1.el6

Transaction Summary
================================================================================
Install 2 Package(s)

Total download size: 37 M
Is this ok [y/N]: Y

4. Reboot the server.

Leave a Reply