当前位置:首页 » 前端设计UI

在Ubuntu上编译VirtualBox(Building VirtualBox On Ubuntu)

2011-07-26 11:18 本站整理 浏览(34)
(用英文写了)
Recently I need to build VirtualBox from source code. My OS is Ubuntu 10.04.
Firstly I found a set of build instructions here:
http://www.virtualbox.org/wiki/Linux%20build%20instructions
The building is OK and I can also run the VirtualBox. But I encountered an error when I create a VM (winxp or ubuntu):
Unable to load R3 module .../out/linux.amd64/release/bin/VBoxDD.so:
cannot open shared object file: No such file or directory
I cannot solve this issue. :-(
Then I registered a user on virtualbox forum and found a more detailed building guide on the forum.
The full list is here:
http://forums.virtualbox.org/viewforum.php?f=31
The one for Ubuntu is here:
http://forums.virtualbox.org/viewtopic.php?f=31&t=35883
I can build and create a VM (winxp) successfully. (I use ./configure --disable-hardening)
:-)
======================================================
Some errors and solutions during running VirtualBox:
Error:
Failed to open the CD/DVD image (then indicated the file path for the ISO)
Could not get Storage format of the medium (again indicated the file path of the ISO)
VERR_NOT_SUPPORTED
Solution:
The .iso seems not recognizable by VirtualBox. It's a little strange since it works well on my VirtualBox installation on Windows.
Error: (when I create a VM)
VirtualBox kernel driver is not accessible, permission problem. ...
Solution:
1. Add a group called vboxusers
2. Add your user name into vboxusers
3. Change group from root to vboxusers for /dev/vboxdrv