Installation

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.

Installation

Installing dependency packages

Please ensure installing the packages seen in the following screenshot to make VirtualBox work:

Installing dependency packages

Installing VirtualBox 4.2.16

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:

Installing VirtualBox 4.2.16

Rebuilding kernel modules

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:

Rebuilding kernel modules

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.188.121