Ask Your Question

Revision history [back]

How to install and run VirtualBox in Fedora 20

Make sure that the system is up to date.

yum update

If a kernel update arrives, reboot the system. You must run the kernel with its current headers. Alternatively examine the results of the following commands

rpm -qa | grep kernel | short -V | tail -n 1 

uname -rm

The versions should match !

Add the virtualbox .repo

su - 
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

Update

yum update

Install the required packages

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Install virtualbox

yum install VirtualBox-4.3

If you want another version, use Tab Completion to list them all.

Build the modules now.

/etc/init.d/vboxdrv setup

Add the user in vboxusers group

usermod -a -G vboxusers username

replace username with your actual username.

Exit from root environment

exit

Run virtualbox either from terminal by issuing the command virtualbox or search in the menu for an entry.

If in trouble with KERN_DIR error message

Try to specify the KERN_DIR manually

su - 
KERN_DIR=/usr/src/kernels/`uname -r` 
export KERN_DIR

Try to rebuild the modules now

/etc/init.d/vboxdrv setup

How to install and run Oracle VM VirtualBox in Fedora 20

Make sure that the system is up to date.

yum update

If a kernel update arrives, reboot the system. You must run the kernel with its current headers. Alternatively examine the results of the following commands

rpm -qa | grep kernel | short -V | tail -n 1 

uname -rm

The versions should match !

Add the virtualbox .repo

su - 
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

Update

yum update

Install the required packages

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Install virtualbox

yum install VirtualBox-4.3

If you want another version, use Tab Completion to list them all.

Build the modules now.

/etc/init.d/vboxdrv setup

Add the user in vboxusers group

usermod -a -G vboxusers username

replace username with your actual username.

Exit from root environment

exit

Run virtualbox either from terminal by issuing the command virtualbox or search in the menu for an entry.

If in trouble with KERN_DIR error message

Try to specify the KERN_DIR manually

su - 
KERN_DIR=/usr/src/kernels/`uname -r` 
export KERN_DIR

Try to rebuild the modules now

/etc/init.d/vboxdrv setup

How to install Oracle VM VirtualBox in Fedora 20

Make sure that the system is up to date.

yum update

If a kernel update arrives, reboot the system. You must run the kernel with its current headers. Alternatively examine the results of the following commands

rpm -qa | grep kernel | short -V | tail -n 1 

uname -rm

The versions should match !

Add the virtualbox .repo

su - 
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

Update

yum update

Install the required packages

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Install virtualbox

yum install VirtualBox-4.3

If you want another version, use Tab Completion to list them all.

Build the modules now.

/etc/init.d/vboxdrv setup

Add the user in vboxusers group

usermod -a -G vboxusers username

replace username with your actual username.

Exit from root environment

exit

Run virtualbox either from terminal by issuing the command virtualbox or search in the menu for an entry.

If in trouble with KERN_DIR error message

Try to specify the KERN_DIR manually

su - 
KERN_DIR=/usr/src/kernels/`uname -r` 
export KERN_DIR

Try to rebuild the modules now

/etc/init.d/vboxdrv setup

How to install Oracle VM VirtualBox in Fedora 20

Make sure that the system is up to date.

yum update

If a kernel update arrives, reboot the system. You must run the kernel with its current headers. Alternatively examine the results of the following commands

rpm -qa | grep kernel | short sort -V | tail -n 1 

uname -rm

The versions should match !

Add the virtualbox .repo

su - 
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

Update

yum update

Install the required packages

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Install virtualbox

yum install VirtualBox-4.3

If you want another version, use Tab Completion to list them all.

Build the modules now.

/etc/init.d/vboxdrv setup

Add the user in vboxusers group

usermod -a -G vboxusers username

replace username with your actual username.

Exit from root environment

exit

Run virtualbox either from terminal by issuing the command virtualbox or search in the menu for an entry.

If in trouble with KERN_DIR error message

Try to specify the KERN_DIR manually

su - 
KERN_DIR=/usr/src/kernels/`uname -r` 
export KERN_DIR

Try to rebuild the modules now

/etc/init.d/vboxdrv setup

How to install Oracle VM VirtualBox in Fedora 20

Make sure that the system is up to date.

yum update

If a kernel update arrives, reboot the system. You must run the kernel with its current headers. Alternatively examine the results of the following commands

rpm -qa | grep kernel | sort -V | tail -n 1 

uname -rm

The versions should match !

Add the virtualbox .repo

su - 
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

Update

yum update

Install the required packages

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Install virtualbox

yum install VirtualBox-4.3

If you want another version, use Tab Completion to list them all.

Build the modules now.

/etc/init.d/vboxdrv setup

Add the user in vboxusers group

usermod -a -G vboxusers username

replace username with your actual username.

Exit from root environment

exit

Run virtualbox either from terminal by issuing the command virtualbox or search in the menu for an entry.

If in trouble with KERN_DIR error message

Try to specify the KERN_DIR manually

su - 
KERN_DIR=/usr/src/kernels/`uname -r` 
export KERN_DIR

Try to rebuild the modules now

/etc/init.d/vboxdrv setup

How to install Oracle VM VirtualBox in Fedora 20

(Oracle VM repository)

If you have UEFI with Secure boot On, then try this answer instead.

Make sure that the system is up to date.

yum update

If a kernel update arrives, reboot the system. You must run the kernel with its current headers. Alternatively examine the results of the following commands

rpm -qa kernel | sort -V | tail -n 1 

uname -rm

The versions should match !

Add the virtualbox .repo

su - 
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

Update

yum update

Install the required packages

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Install virtualbox

yum install VirtualBox-4.3

If you want another version, use Tab Completion to list them all.

Build the modules now.

/etc/init.d/vboxdrv setup

Add the user in vboxusers group

usermod -a -G vboxusers username

replace username with your actual username.

Exit from root environment

exit

Run virtualbox either from terminal by issuing the command virtualbox or search in the menu for an entry.

If in trouble with KERN_DIR error message

Try to specify the KERN_DIR manually

su - 
KERN_DIR=/usr/src/kernels/`uname -r` 
export KERN_DIR

Try to rebuild the modules now

/etc/init.d/vboxdrv setup