Virtualbox is an open-source Virtual Machine software developed by Innotek, Germany. It is powerful and easy to use. However, using Virtualbox in Ubuntu or other Linux systems is not that simple and error-prone, such as installation failure, failure to start the virtual machine, failure to use USB, and access to the Internet.
1. Install Virtualbox 4.2.12
Are you still installing Virtualbox directly in Ubuntu Software Center and Synaptic Package Manager? In Ubuntu 13.04 and Ubuntu, the following error occurs:
| 12345678910 |
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. Please reinstall 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. |
How can I install the latest Virtualbox4.2.12 through the command line without errors?
| 1 |
sudo gedit /etc/apt/sources.list.d/vbox.list |
Then copy the following sentence to it.
| 1 |
deb http://download.virtualbox.org/virtualbox/debian quantal contrib |
Then, enter the following command in the command line to update the source and system.
| 1 |
sudo apt-get update && sudo apt-get -y upgrade |
Install build-essential and linux-headers.
| 1 |
sudo apt-get install build-essential linux-headers-3.8.0-19-generic |
3.8.0-19-generic is the Linux kernel version. You can view the version by running the uname-r command. You must replace this with your system version during installation.
Finally, execute the following command:
| 1 |
sudo /etc/init.d/vboxdrv setup |
In this way, there should be no problem. You can start Virtualbox, create and start virtual machines normally. The following figure shows that I virtualized Windows 8 in Ubuntu 13.04.