Created
February 22, 2017 15:57
-
-
Save gerarldlee/5ed8ff2ddffaff2992958b4c59f5fa49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing Oracle Virtualbox 5.1.14 | |
On Fedora 25 | |
Root access: | |
sudo -i | |
Add Virtualbox repo to Yum / Dnf: | |
cd /etc/yum.repos.d | |
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo | |
Update the system: | |
dnf update | |
Check if kernel has the same version: | |
(should printout the same version) | |
uname -r | |
rpm -qa kernel | sort -V | tail -n 1 | |
Install dependencies: | |
dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms | |
Install VirtualBox: | |
dnf install VirtualBox-5.1 | |
Setup and rebuild vboxdrv using the kernel: | |
/usr/lib/virtualbox/vboxdrv.sh setup | |
Add user to vboxusers group: | |
usermod -a -G vboxusers user_name | |
Exit the root access: | |
exit | |
Launch VirtualBox: | |
VirtualBox | |
If you have problems with KERN_DIR parameter or your kernel directory is not automatically detected then set KERN_DIR environment variable manually, using following method: | |
## Current running kernel on Fedora ## | |
KERN_DIR=/usr/src/kernels/`uname -r` | |
## Current running kernel on CentOS and Red Hat (RHEL) ## | |
KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m` | |
## Fedora example ## | |
KERN_DIR=/usr/src/kernels/2.6.33.5-124.fc13.i686 | |
## CentOS and Red Hat (RHEL) example ## | |
KERN_DIR=/usr/src/kernels/2.6.18-194.11.1.el5-x86_64 | |
## Export KERN_DIR ## | |
export KERN_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment