zoukankan      html  css  js  c++  java
  • Ubuntu下升级VisualBox后无法启动 Kernel driver not installed (rc=-1908)

    Ubuntu下升级VisualBox后无法启动 Kernel driver not installed (rc=-1908)

     

    VisualBox之所以在Linux上比传统的VMware快得多,关键一点就是它和Linux内核的结合比较紧密,这也是开源的优点。

    不过Linux内核更新很频繁,每次更新内核后启动VirtualBox都会提示:

    VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing ‘/etc/init.d/vboxdrv setup’ as root.

    所以需要重新编译VirtualBox的内核,Ubuntu下执行如下命令:

    sudo /etc/init.d/vboxdrv setup

    如果提示

    * Stopping VirtualBox kernel modules                                                                                                                                                                  [ OK ] 
    * Uninstalling old VirtualBox DKMS kernel modules                                                                                                                                             [ OK ] 
    * Trying to register the VirtualBox kernel modules using DKMS 
    * Failed, trying without DKMS
    * Recompiling VirtualBox kernel modules 
    * Look at /var/log/vbox-install.log to find out what went wrong

    找到/var/log/vbox-install.log文件,内容大致为:

    Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again.  Stop.

    所以需要安装当前Linux内核的源文件,编译VirtualBox内核的时候需要它,Ubuntu下执行如下命令安装当前Linux内核的源文件:

    sudo apt-get install linux-headers-`uname -r`

    注意括起uname -r的不是单引号,而是Esc键下面的那个符号。


    然后再编译VirtualBox内核执行如下命令:

    sudo /etc/init.d/vboxdrv setup

  • 相关阅读:
    js返回上一页并刷新思路
    C#字符串拼接
    html2canvas截图问题,图片跨域导致截图空白
    VS2017未能添加对"System.Drawing.dll"的引用
    微信小程序云开发获取文件夹下所有文件
    js解析json报错Unexpected token i in JSON at position 1
    人工智能学习
    suricata的模块和插槽
    学习助手开发(二)——表单排序
    成功在Caterpillar代码中插入事件对象-20200917
  • 原文地址:https://www.cnblogs.com/swek/p/4338151.html
Copyright © 2011-2022 走看看