昨天晚上在Ubuntu 8.04下准備安裝VirtualBox,“新立得軟件包管理器”裡面可以更新到最新的VirtualBox.
接下來按照正常的方法把環境配置好後,出現了兩個另外的問題。
問題一:啟動提示VirtualBox kernel driver not installed.
問題描述:
VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Please install the virtualbox-ose-modules package for your kernel and execute '/etc/init.d/vboxdrv start' as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED)。
Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45} [bitsCN_com]
解決辦法:
sudo apt-get install virtualbox-ose-source
安裝模塊源碼然後
cd /usr/src
解壓源碼
sudo tar xjvf virtualbox-ose.tar.bz2
cd modules/virtualbox-ose
sudo ./build_in_tmp install
讓他編譯安裝模塊驅動
完成後
/usr/src/modules/virtualbox-ose$ sudo /etc/init.d/vboxdrv start
* Starting VirtualBox kernel module vboxdrv [ OK ]
就可以看到加載成功了,啟動virtualbox也沒有問題了。
問題二:啟動提示The VirtualBox kernel driver is not accessible to the current user.
問題描述:
The VirtualBox kernel driver is not accessible to the current user. Make sure that the user has write permissions for /dev/vboxdrv by adding them to the vboxusers groups. You will need to logout for the change to take effect..
VBox status code: -1909 (VERR_VM_DRIVER_NOT_ACCESSIBLE).
Result Code:0x80004005
解決辦法:
sudo chmod ugo+rw /dev/vboxdrv
或者
解決的方法:
sudo chmod 777 /dev/vboxdrv