Fedora 18下 升级内核后VirtualBox不能正常使用的问题

最近因为需要安装了VirtualBox来虚拟xp环境,本来用着好好的,但是最近升级内核后,重启机器再次运行VirtualBox,发现不能正常使用了,启动虚拟机会提示如下内容:

Kernel driver not installed (rc=-1908)    
TheVirtualBoxLinux kernel driver (vboxdrv)is probably not loaded.    
If you installed orVirtualBoxpackage recently you need to restart the computer for the driver to load.    
Alternatively, you may attempt to load the driver by issuing the following command with system administrator (root) privileges:    
'/etc/sysconfig/modules/VirtualBox.modules'

按照提示在root权限下运行
/etc/sysconfig/modules/VirtualBox.modules
却提示如下:

ERROR: modinfo: could not find module vboxdrv
ERROR: modinfo: could not find module vboxnetflt
ERROR: modinfo: could not find module vboxnetadp

通过搜索fedora和VirtualBox支持论坛,发现解决方法如下:
sudo yum -y install kmod-VirtualBox
然后
sudo /etc/sysconfig/modules/VirtualBox.modules

再次尝试运行虚拟机,o yeah~~一切正常~~~~~

原文地址:https://www.cnblogs.com/exiahan/p/3059500.html