Ubuntu 13.10不能啓動VirtualBox怎麼辦?php
本文爲 兄弟連IT教育 www.itxdl.cn 機構官方 php培訓分享linux
咱們都知道VirtualBox是一款虛擬機,可以在Ubuntu系統中運行,但在Ubuntu 13.10運行的時候提示錯誤,致使VirtualBox沒法啓動,遇到這個問題怎麼辦?下面圖老師小編就給你們介紹下Ubuntu13.10不能啓動VirtualBox的解決方法。ubuntu
最近須要在若干虛擬機進行Hadoop的調試,因而就在Ubuntu上安裝VirtualBox虛擬機,但是碰到了虛擬機沒法啓動的問題:網絡
界面上會彈出一個錯誤對話框,錯誤信息以下:oop
Kernel driver not installed (rc=-1908)命令行
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing調試
‘/etc/init.d/vboxdrv setup’日誌
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.ci
首先彙總一下系統環境:ubuntu desktop 13.10, virtualbox-4.3, kernel: 3.11.0-17rem
1. 按照這個錯誤指示,我就切換到命令行,
sudo /etc/init.d/vboxdrv setup
獲得以下的錯誤信息:
提示依然沒法正常加載dkms,並且好像須要當前內核的源代碼進行編譯,同時,提示查看/var/log/vbox-inuntustall.log日誌。
2. 因而,cat /var/log/vbox-install日誌
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.3.8
------------------------------
Deleting module version: 4.3.8
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/4.3.8/source -》
/usr/src/vboxhost-4.3.8
DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=《directory》 and run Make again. Stop.
3. 檢查dkms,正常安裝;反覆安裝virtualbox,確保不是安裝不完整形成的問題。
sudo apt-get install dkms
提示已經安裝到最新版本,說明應該不是dkms的問題。
4. 查看內核版本 uname -r, 獲得當前的kernel版本: 3.11.0-17-generic.
5. 搜索了一下網絡,有人提示說,可能須要從新安裝一下內核。
sudo apt-get install linux-headers-$(uname -r)
注意: ${uname -r}用來表明當前內核的版本,不能直接在命令中使用的,這裏個人版本是step 4中的輸出。
6. 按照以前的問題提示,從新運行 sudo /etc/init.d/vboxdrv setup
~$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules 。。.done.
Uninstalling old VirtualBox DKMS kernel modules 。。.done.
Trying to register the VirtualBox kernel modules using DKMS 。。.done.
Starting VirtualBox kernel modules 。。.done.
提示: 已經正常將virtualbox模塊註冊到kernel中了
7. 接下來就能夠點擊virtualbox的啓動按鈕,正常啓動virtualbox中的虛擬機了。
8. 緣由分析:
最後我嘗試分析了一下,產生這個錯誤的緣由:以前的virtualbox是能夠正常工做的,後來升級ubuntu和內核版本以後,估計打破了virtualbox和內核以前的註冊系統,就是原有的註冊在新的內核中失效了,同時,如今的內核可能在升級過程,有若干的不穩定狀況。 因此,須要從新覆蓋安裝內核,而後,再一次將virtualbox內核註冊到當前linux內核之中,以上僅爲猜想,歡迎你們提出新的想法和推測。
上面就是Ubuntu 13.10不能啓動VirtualBox的解決方法的介紹了,該問題主要出如今Ubuntu 13.10版本中,且是在升級內核版本所致使。