OpenVZ Forum


Home » General » Support » Can't update my kernel
Can't update my kernel [message #47524] Wed, 15 August 2012 14:03 Go to next message
MustangV10 is currently offline  MustangV10
Messages: 3
Registered: June 2012
Junior Member
Hi,

I've come across this error more than once, and never done anything about it and today I thought I would ask on the forum to see if there's a fix. Here's what happens when I try to run a yum update.


=========================
[root@x3430-20648 /]# yum update
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.kernel.org
* extras: centosz4.centos.org
* openvz-kernel-rhel6: mirrors.abdicar.com
* openvz-utils: mirrors.abdicar.com
* soluslabs: mirror.us1.soluslabs.net
* updates: centosk2.centos.org
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:2.6.32-279.5.1.el6 will be installed
--> Processing Dependency: kernel-firmware >= 2.6.32-279.5.1.el6 for package: kernel-2.6.32-279.5.1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: kernel-2.6.32-279.5.1.el6.x86_64 (updates)
Requires: kernel-firmware >= 2.6.32-279.5.1.el6
Installed: vzkernel-firmware-2.6.32-042stab059.7.noarch (@openvz-kernel-rhel6)
kernel-firmware = 2.6.32-279.1.1.el6
Available: kernel-firmware-2.6.32-279.el6.noarch (base)
kernel-firmware = 2.6.32-279.el6
Available: kernel-firmware-2.6.32-279.1.1.el6.noarch (updates)
kernel-firmware = 2.6.32-279.1.1.el6
Available: kernel-firmware-2.6.32-279.2.1.el6.noarch (updates)
kernel-firmware = 2.6.32-279.2.1.el6
Available: kernel-firmware-2.6.32-279.5.1.el6.noarch (updates)
kernel-firmware = 2.6.32-279.5.1.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@x3430-20648 /]#
=========================


Here's the output of uname -a:

=========================
[root@x3430-20648 /]# uname -a
Linux x3430-20648 2.6.32-042stab059.7 #1 SMP Tue Jul 24 19:12:01 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@x3430-20648 /]#
=========================

Here's what's in my /boot folder. Why you would need that, I don't know but here it is anyway:

=========================
config-2.6.32-042stab059.7
initrd-2.6.32-279.el6.x86_64kdump.img
config-2.6.32-279.el6.x86_64
symvers-2.6.32-042stab059.7.gz
efi
symvers-2.6.32-279.el6.x86_64.gz
grub
System.map-2.6.32-042stab059.7
initramfs-2.6.32-042stab059.7.img System.map-2.6.32-279.el6.x86_64
initramfs-2.6.32-279.el6.x86_64.img vmlinuz-2.6.32-042stab059.7
initrd-2.6.32-042stab059.7kdump.img vmlinuz-2.6.32-279.el6.x86_64
=========================


Do you know what could be causing the yum update to fail?

Please note: I have tried running rpm -Va --nofiles --nodigest and --skip-broken but that hasn't helped. I have also tried to run yum clean all.

Thanks.
Re: Can't update my kernel [message #47570 is a reply to message #47524] Thu, 16 August 2012 15:09 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Hmm... you seem to have kernel-firmware and vzkernel-firmware installed at the same time, which is odd - if I remember correctly, these should be conflicting. I might be wrong since I haven't used regular and OpenVZ kernels at the same time for quite a while... What I usually do is to uninstall regular kernels on our OpenVZ servers alltogether.

As a very quick fix (unless you really need regular kernels) I'd advise you to either stop updating them or uninstall them completely.

So, either set your yum configuration to exclude kernel* or use 'yum update -x kernel*'.

To uninstall them, use 'yum remove kernel*'. Make sure your /boot/grub/grub.conf still points to your OpenVZ kernel (vzkernel) afterwards and that you still have vzkernel and vzkernel-firmware installed, of course. Twisted Evil
Re: Can't update my kernel [message #47574 is a reply to message #47524] Thu, 16 August 2012 17:44 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
http://wiki.openvz.org/Vzkernel-firmware
Re: Can't update my kernel [message #48852 is a reply to message #47570] Thu, 20 December 2012 12:31 Go to previous messageGo to next message
ChrisM is currently offline  ChrisM
Messages: 7
Registered: December 2012
Location: United Kingdom
Junior Member
Hi Ales,

This is great advice - thanks. It helped us out here too (and in particular the link to the Wiki article solved the problem).

Just to double check, should we not be updating the standard kernel packages when updates are available because we are running vzkernel instead?

Thanks,
Chris
Re: Can't update my kernel [message #48854 is a reply to message #47524] Thu, 20 December 2012 22:15 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
You can update original kernels if you wish, there is no harm in that. But since they aren't used, I see no point...
Re: Can't update my kernel [message #48857 is a reply to message #48854] Fri, 21 December 2012 09:50 Go to previous message
ChrisM is currently offline  ChrisM
Messages: 7
Registered: December 2012
Location: United Kingdom
Junior Member
That makes sense - thanks! I'll just block kernel* updates in the Yum repo configuration.
Previous Topic: Using Ksplice for kernel updates
Next Topic: duplicate ploop based CT ?
Goto Forum:
  


Current Time: Fri Oct 04 02:17:23 GMT 2024

Total time taken to generate the page: 0.05295 seconds