How To Install Ubuntu Linux On Mac For Virtualbox

How To Install Ubuntu Linux On Mac For Virtualbox Rating: 4,1/5 5515 votes

Ubuntu is a most popular Linux-based operating system. Recently Ubuntu releases its newest version 15.04 (Vivid Vervet). VirtualBox is also a popular software for creating virtual machine available for Windows and Linux environment.

VirtualBox is a free and open-source, general purpose full hypervisor created for x86 bit architecture computers. It is available for installation on a number of operating systems, like Windows, Linux, Mac, Solaris etc.

We can use VirtualBox to install & use operating over the currently installed OS i.e. It can load a number of OS over the currently installed one. We can than start, pause or shutdown the installed OS with VirtualBox. It supports both software as well as hardware based visualization ( for 64 bit support). In this tutorial, we will learn to install VirtualBox on linux machines ( CentOS & Ubuntu). ( Recommended Read: ) Pre-requisite Before we discuss how to virtualbox on linux, we will discuss some pre-requisites needed for virtualbox, For CentOS/RHEL We need to have EPEL repository enabled, RHEL/CentOS 7.

$ sudo rpm -Uvh RHEL/CentOS 6 (64 Bit) $ sudo rpm -Uvh RHEL/CentOS 6 (32 Bit) $ sudo rpm -Uvh Installation on CentOS/RHEL To install VirtualBox, we need to add the VirtualBox official repository on our system. Execute the following command to install the VirtualBox repository, $ cd /etc/yum.repos.d $ wget VirtualBox installation requires building of the Kernel modules. Free vpn proxy app for mac download. So before we move ahead with the virtualbox installation, we will install the DKMS package along with some other development tools from EPEL repository, $ sudo yum –enablerepo=epel install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel. & for PAE kernel users, we need to install following packages $ sudo yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-PAE-devel dkms Now we will install the VirtualBox with the following command, $ sudo yum install VirtualBox-5.1 Upon execution of the command, VirtualBox will be installed on our system & it will also create ‘vboxusers’ group. We will now add a user to that group, $ sudo usermod -a -G vboxusers test_user Our VirtualBox installation is now ready to be used.

Ubuntu

To start it, either open it through GUI menu or open terminal & execute the following command, $ virtualbox & We now need to rebuild our kernel, to do that execute the following command, For CentOS/RHEL 7 /usr/lib/virtualbox/vboxdrv.sh setup. For CentOS/RHEL 5 & 6 /etc/init.d/vboxdrv setup Important Note:- We might need to setup the ‘KERN_DIR’ variable. Run the following command to set the ‘KERN_DIR’ variable on the system, KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m` export KERN_DIR These should resolve any problem that you might be facing with kernel on VirtuaBox. ( Also Read: ) Installation on Ubuntu VirtualBox is available with the default repositories on Ubuntu 16.04 & can be installed using the command, $ sudo apt-get install virtualbox Or you can also get the latest deb packages from Once you have the right package install it using dpkg, $ sudo dpkg -i virtualbox-5.1_5.1.28-117968~Ubuntu~xenial_amd64.deb Replace virtualbox-5.1_5.1.28-117968~Ubuntu~xenial_amd64.deb with the package name that you have downloaded. After the package has been installed, start the virtualbox from menu or from the terminal.