溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Ubuntu13.10啟動VirtualBox提示錯誤怎么辦

發(fā)布時間:2021-09-02 19:36:01 來源:億速云 閱讀:145 作者:chen 欄目:系統(tǒng)運維

本篇內容主要講解“Ubuntu13.10啟動VirtualBox提示錯誤怎么辦”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“Ubuntu13.10啟動VirtualBox提示錯誤怎么辦”吧!

  最近需要在若干虛擬機進行Hadoop的調試,于是就在Ubuntu上安裝VirtualBox虛擬機,可是碰到了虛擬機無法啟動的問題:

  界面上會彈出一個錯誤對話框,錯誤信息如下:

  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.

  首先匯總一下系統(tǒng)環(huán)境:ubuntu desktop 13.10, virtualbox-4.3, kernel: 3.11.0-17

  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

  提示已經(jīng)安裝到最新版本,說明應該不是dkms的問題。

  4. 查看內核版本 uname -r, 得到當前的kernel版本: 3.11.0-17-generic.

  5. 搜索了一下網(wǎng)絡,有人提示說,可能需要重新安裝一下內核。

  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.

  提示: 已經(jīng)正常將virtualbox模塊注冊到kernel中了

  7. 接下來就可以點擊virtualbox的啟動按鈕,正常啟動virtualbox中的虛擬機了。

到此,相信大家對“Ubuntu13.10啟動VirtualBox提示錯誤怎么辦”有了更深的了解,不妨來實際操作一番吧!這里是億速云網(wǎng)站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續(xù)學習!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。

AI