(For more resources related to this topic, see here.)
The following are the basic requirements for VirtualBox:
At the time of writing this article, VirtualBox runs on the following host operating systems:
The following Microsoft Windows operating systems are compatible to run as host OS for VirtualBox:
The following Mac OS X operating systems are compatible to run as host OS for VirtualBox:
The following Linux operating systems are compatible to run as host OS for VirtualBox:
Both 32-bit and 64-bit versions of Solaris are supported with some limitations. Please refer to www.virtualbox.org for more information. The following host OS are supported:
You need to make sure that the guest OSis certified to run on VirtualBox. VirtualBox supports the following guest operating systems:
I have downloaded and used the VirtualBox repository to install VirtualBox. Please ensure the desktop or laptop you are installing VirtualBox on is connected to the Internet. However, this is not mandatory. You can install VirtualBox using the RPM command, which generally adds the complexity of finding and installing the dependency packages, or you can have a central yum server where you can add VirtualBox repository.
In my test lab, my laptop is connected to the Internet and I have used the wget command to download and add virtualbox.repository.
Please ensure installing the packages seen in the following screenshot to make VirtualBox work:
Once the preceding dependency is installed, we are ready to install VirtualBox 4.2.16. Use the command seen in the following screenshot to install VirtualBox:
The vboxdrv module is a special kernel module that helps to allocate the physical memory and to gain control of the processor for the guest system execution. Without this kernel module, you can still use the VirtualBox manager to configure the virtual machines, but they will not start.
When you install VirtualBox by default, this module gets installed on the system. But to maintain future kernel updates, I suggest that you install Dynamic Kernel Module Support (DKMS). In most of the cases, this module installation is straightforward. You can use yum, apt-get, and so on depending on the Linux variant you are using, but ensure that the GNU compiler (GCC), GNU make (make), and packages containing header files for your kernel are installed prior to installing DKMS. Also, ensure that all system updates are installed.
Once the kernel of your Linux host is updated and DKMS is not installed, the kernel module needs to be reinstalled by executing the following command as root:
The preceding command not only rebuilds the kernel modules but also automatically creates the vboxusers group and the VirtualBox user.
If you use Microsoft Windows on your desktop, then download the .exe file, install it, and start it from the desktop shortcut or from the program.
Use the command seen in the following screenshot in Linux to run VirtualBox:
If everything is fine, then the Oracle VM VirtualBox Manager screen appears as seen in the following screenshot:
You can update VirtualBox with the help of the command seen in the following screenshot:
To remove VirtualBox, use the command seen in the following screenshot:
In this article we have covered the installation, update, and removal of Oracle VM VirtualBox in the Linux environment.
Further resources on this subject: