The vboxdrv kernel module is not loaded

背景:

  在没有关虚拟机的情况下, 直接关了电脑, 我的电脑系统是Centos 6

错误的提示:

  在终端执行virtualbox -v 时提示 The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel(.....) or it failed to load. Please recompile the kernel module and install it by

  sudo /sbin/vboxconfig

  you will not be able to start .. until this probem is fixed.

我执行了, 可提示没有这个文件或目录;

可能是这样解决:

我就随便执行了这个命令: find / -name “vboxdrv” 发现了/etc/rc.d/init.d/vboxdrv ;

执行 /etc/rc.d/init.d/vboxdrv 提示: fialure

执行/etc/rc.d/init.d/vboxdrv setup

显示:

  Stopping Virtualbox kernel modules .....done

  Recompiling Virtualbox kernel modules .....OK!

  .......

然后就好了.......

求大神告诉我这是为什么......关个机怎么就这样了

  

原文地址:https://www.cnblogs.com/waitingforspring/p/4986076.html