Ask Your Question

How to install VirtualBox-guest for not-latest kernel?

asked 2015-04-29 10:58:01 -0500

Jeremy2nd gravatar image


I use Fedora 21 as VirtualBox guest OS. Now, I would like to install Guest Additions using RPM Fusion's package VirtualBox-guest. The problem is as follows: My kernel is the latest one - 3.19.5-200.fc21.x86_64. VirtualBox-guest requires a package kmod-VirtualBox-(latest_kernel_version) as dependancy, so in my particular case a package kmod-VirtualBox-3.19.5-200.fc21.x86_64 should be required. Nevertheless, such a package doesn't exist in the repository (rpmfusion-free-updates). The highest one is kmod-VirtualBox-3.19.4-200.fc21.x86_64 which is finally required by yum. I guess, the package kmod-VirtualBox-3.19.5-200.fc21.x86_64 for the latest kernel 3.19.5 will be added by time, but I need to have fully functional VM now. So, I could reboot to previous kernel 3.19.4 and probably, things would go fine. Unfortunately, I don't have the kernel 3.19.4 installed and it is not available in the repository. So, I booted older kernel 3.19.3-200.fc21.x86_64 for which a package kmod-VirtualBox-3.19.3-200.fc21.x86_64 exists in repository. But another problem arised. Althought I have removed the kernel-3.19.5 from OS and excluded it in yum, the version kmod-VirtualBox-3.19.4 is required persistently (a kmod-VirtualBox metapackage should make the selection). So, does anybody know, how to solve this problem? - e.g. how to force the kmod-VirtualBox metapackage to use other then the latest kernel? A solution not bypassing yum (e.g. kernel installation by hand) is preferred.

yum messages when installing VirtualBox-guest:

Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-guest.x86_64 0:4.3.26-1.fc21 will be installed
--> Processing Dependency: VirtualBox-kmod = 4.3.26 for package: VirtualBox-guest-4.3.26-1.fc21.x86_64
--> Running transaction check
---> Package kmod-VirtualBox.x86_64 0:4.3.26-1.fc21.4 will be installed
--> Processing Dependency: kmod-VirtualBox-3.19.4-200.fc21.x86_64 >= 4.3.26-1.fc21.4 for package: kmod-VirtualBox-4.3.26-1.fc21.4.x86_64
--> Running transaction check
---> Package kmod-VirtualBox-3.19.4-200.fc21.x86_64.x86_64 0:4.3.26-1.fc21.4 will be installed
--> Processing Dependency: kernel-uname-r = 3.19.4-200.fc21.x86_64 for package: kmod-VirtualBox-3.19.4-200.fc21.x86_64-4.3.26-1.fc21.4.x86_64
--> Finished Dependency Resolution
Error: Package: kmod-VirtualBox-3.19.4-200.fc21.x86_64-4.3.26-1.fc21.4.x86_64 (rpmfusion-free-updates)
           Requires: kernel-uname-r = 3.19.4-200.fc21.x86_64
           Installed: kernel-core-3.19.1-201.fc21.x86_64 (@updates)
               kernel-uname-r = 3.19.1-201.fc21.x86_64
           Installed: kernel-core-3.19.3-200.fc21.x86_64 (@updates)
               kernel-uname-r = 3.19.3-200.fc21.x86_64
           Installed: kernel-core-3.19.5-200.fc21.x86_64 (@updates)
               kernel-uname-r = 3.19.5-200.fc21.x86_64
           Available: kernel-core-3.17.4-301.fc21.x86_64 (fedora)
               kernel-uname-r = 3.17.4-301.fc21.x86_64
           Available: kernel-debug-core-3.17.4-301.fc21.x86_64 (fedora)
               kernel-uname-r = 3.17.4-301.fc21.x86_64+debug
           Available: kernel-debug-core-3.19.5-200.fc21.x86_64 (updates)
               kernel-uname-r = 3.19.5-200.fc21.x86_64+debug
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-29 14:15:01 -0500

sergiomb gravatar image

updated 2015-04-30 07:15:47 -0500

repoquery kmod-VirtualBox-0:4.3.26-1.fc21.5.x86_64 --qf "%{repoid} %{name}"

rpmfusion-free-updates-testing kmod-VirtualBox

so enable rpmfusion-free-updates-testing temporarily

yum --enablerepo=rpmfusion-free-updates-testing update kmod-VirtualBox kernel\*
edit flag offensive delete link more


Yes, that's simple and works well. Thanks.

Jeremy2nd gravatar imageJeremy2nd ( 2015-04-30 15:24:55 -0500 )edit

For me that systematically breaks at the next kernel upgrade. I gave up using VirtualBox on Fedora, but maybe f22 is better.

Federico gravatar imageFederico ( 2015-07-18 20:13:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2015-04-29 10:46:38 -0500

Seen: 1,600 times

Last updated: Apr 30 '15