Guide: Install VirtualBox on Fedora 20
Oracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.
1. Change to root User
su - ## OR ## sudo -i |
2. Install Fedora
cd /etc/yum.repos.d/ ## Fedora 20/19/18/17/16/15/14/13/12 users wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo |
3. Update latest packages and check your kernel version
Update packages
yum update
|
Check that that you are running latest installed kernel version
Output of following commands version numbers should match:
Output of following commands version numbers should match:
rpm -qa kernel |sort -V |tail -n 1 uname -r |
Note: If you got kernel update or run older kernel than newest installed then reboot:
reboot |
4. Install VirtualBox Latest Version 4.3 (currently 4.3.12)
yum install VirtualBox-4.3 |
Note:
This command create automatically vboxusers group and VirtualBox user must be member of that group.
This command also build needed kernel modules.
This command create automatically vboxusers group and VirtualBox user must be member of that group.
This command also build needed kernel modules.
Rebuild kernel modules with following command:
/etc/init.d/vboxdrv setup ## OR ## service vboxdrv setup |
5. Add VirtualBox User(s) to vboxusers Group
Replace user_name with your own user name or some another real user name.
usermod -a -G vboxusers user_name |
6. Start VirtualBox
Use launcher from menu or simply run:
VirtualBox |
Troubleshooting
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` ## Fedora example ## KERN_DIR=/usr/src/kernels/2.6.33.5-124.fc13.i686 ## Export KERN_DIR ## export KERN_DIR |