How To: Install VirtualBox 3.2 on Fedora 13

This is a step by step tutorial on how to get VirtualBox 3.2 up and running on Fedora 13. Specifically, this guide was written using the VirtualBox 3.2.0 (32-bit) version. It can be adapted to upcoming versions and different CPUs (64-bit). The folks at VirtualBox have made it easy to install for Fedora users and I’m going to show you how in a few easy steps. Right, open a terminal window and let’s get to it…

Step 1: Download, Copy, and Edit Repository File

This is a one-liner command that will download, copy, and edit the VirtualBox repository file at once.

su -c 'wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo; sed -i "s,enabled=0,enabled=1,g" /etc/yum.repos.d/virtualbox.repo'

Step 2: Update Repository and Install VirtualBox-3.2

This command will update yum repositories to include the new VirtualBox repository file we copied in the last step and then it will attempt to install VirtualBox-3.2 with dependencies.

su -c 'yum update; yum install -y VirtualBox-3.2 dkms gcc'

Step 3: Run VirtualBox Setup Script

This command will run the VirtualBox driver setup script.

su -c '/etc/init.d/vboxdrv setup'

If you’re having issues, try installing “kernel-PAE-devel” or “kernel-devel”.

Step 4: Setup Groups for VirtualBox Access

This command will add you to the vboxusers group. Replace “username” with your actual username found by using the whoami command.

su -c 'usermod -G vboxusers -a username'

If you find that you’re getting SELinux errors or denials, try adding VirtualBox.so as an exception with this command:
su -c 'chcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so'

Step 5: Run VirtualBox

Finally, run VirtualBox and have fun with it!



Appendix A: To Properly Backup the VirtualBox Machine (.vdi):

Please refer to my other page here:

How To: Properly Backup a VirtualBox Machine (.VDI)

Appendix B: Setup a Pre-Built VirtualBox Guest Image

Please refer to my other page here:

How To: Setup a Pre-Built VirtualBox Guest Image [Tutorial/Guide]

Appendix C: Shrinking a VirtualBox Guest Image

Please refer to my other page here:

Shrinking a Dynamic VirtualBox Disk Image

Feel free to donate if this post prevented any headaches! Another way to show your appreciation is to take a gander at these relative ads that you may be interested in:

There's 35 Comments So Far

Who Linked To This Post?

  1. [翻译]在fedora 13里安装VirtualBox 3.2 | 无忧Perl | 中文Perl社区 | There's More Than One Way To Do It | 51perl.com
  2. Fedora安装VirtualBox 3.2.x - Centos教程

Share your thoughts, leave a comment!