升级后无法在 Virtual Box 中启动虚拟机

升级后无法在 Virtual Box 中启动虚拟机

我刚刚升级到13.10,现在 Virtual Box 不再允许我启动虚拟机。它告诉我执行,/etc/init.d/vboxdrv setup但如果我执行,我会得到以下信息:

# /etc/init.d/vboxdrv setup
 * Stopping VirtualBox kernel modules                                                                                                                                       [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                                                                                                                                 Error! Could not locate dkms.conf file.
File:  does not exist.
                                                                                                                                                                            [ OK ]
 * Trying to register the VirtualBox kernel modules using DKMS                                                                                                                     Error! Bad return status for module build on kernel: 3.11.0-14-generic (x86_64)
Consult /var/lib/dkms/vboxhost/4.1.24/build/make.log for more information.

 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules                                                                                                                                           
 * Look at /var/log/vbox-install.log to find out what went wrong
root@regDesktopHome:/lib/modules/3.11.0-14-generic/build/include/linux#

在日志文件中我看到:

    echo >&2 "  ERROR: Kernel configuration is invalid.";           \
    echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
    echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \

我该如何修复这个问题?请指教!

答案1

再次安装virtualbox-dkms并运行/etc/init.d/vboxdrv setup即可解决问题!

相关内容