Oracle VirtualBox is a cross-platform virtualization application. It installs on your existing Intel or AMD-based computers, whether they are running Windows, Mac, Linux or Solaris operating systems. It extends the capabilities of your existing computer so that it can run multiple operating systems at the same time. Click to read more about VirtualBoxOracle has released its new major version VirtualBox 6.0.4.
In this release VirtualBox has improves stability and fixes regressions. To read more about this release read. This article will help you to install Oracle VirtualBox 6.0 on CentOS and Redhat systems using Yum. Step 1 – Add Required Yum RepositoriesFirstly you are required to add VirtualBox yum repository in your system. Download repository file from its official site and place it under at /etc/yum.repos.d/virtualbox.repo.First navigate to /etc/yum.repos.d/ directory and use one of below commands as per your operating system.
Cd /etc/yum.repos.d/wget CentOS and RedHat users also required to add EPEL yum repository using one of the following commands. ### On CentOS/RHEL 7 ### rpm -Uvh On CentOS/RHEL 6 ### rpm -Uvh 2 – Install Required PackagesBefore installing VirtualBox make sure to install all required packages to run VirtualBox like kernel-headers, kernel-devels etc. Use the following command to install the required packages. Yum install gcc make patch dkms qt libgompyum install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-develAfter installing latest kernel and kernel headers, let’s reboot your system and start with Latest kernel. RebootStep 3 – Setup Environment VariableVirtualBox installation required kernel source code to install required modules, So we need to configure environment variable KERNDIR to which VirtualBox get kernel source code. In my case latest kernel source is available in 2.6.32-504.3.3.el6.x8664 directory under /usr/src/kernels/. Make sure you are using correct source path.
Export KERNDIR=/usr/src/kernels/ `uname -r` Step 4 – Install Oracle VirtualBox and SetupUse the following command to install VirtualBox using the yum command line tool. It will install the latest version of VirtualBox 5.2 on your system. Yum install VirtualBox-6.0After installation, we need to rebuild kernel modules using the following command. Service vboxdrv setupStep 5 – Launch VirtualBoxUse following command to start VirtualBox from X windows.
You can switch to GUI mode using init 5 or startx commands from terminal.
So if you have installed Debian 10 Buster on VirtualBox, you might have realized that it is not in full-screen view by default. If you need to set it to full-screen view, follow though this guide on how to install VirtualBox Guest Additions on Debian 10 Buster. There are so many feature that VirtualBox Guest additions can offer.