Installing VirtualBox in Fedora 12

The procedure for 32-bit and 64-bit Fedora 12 is the same.

Installing VirtualBox on Fedora 12 Using YUM

  1. First you need to download the repository file for yum located at
  2. Then you need to copy the repo file to yum depository folder #cp virtualbox.repo /etc/yum.repos.d/
  3. Install dkms using the command #yum install dkms
  4. Proceed with the command #yum install VirtualBox
  5. Reboot the PC since kernel file has been modified

Installing Linux Guest

You can install any guest OS including Windows or other distribution of Linux. I’ve install Fedora 12 as guest for both 32-bit and 64-bit for testing purpose. Please consult the installation guide on installing the operating system you want.

Installing Linux Guest Addition

Before installing Linux Guest Addition, make sure the guest OS is updated.

To install Linux guest addition, you’ll need GNU compiler, Linux kernel header and a couple of essential software in kernel development. In Fedora, you need to perform yum install as follows:

#yum install gcc kernel-devel dkms

Next, you need to mount the CD ISO and proceed to the main folder. Run the appropriate guest addition base on your guest OS and architecture such as:




After installation of guest additions, you can move your mouse freely between guest and host OS. You can expand your screen size by resizing the virtual OS windows.

Sharing Folder with Host System

To share network folders, you need to configure a share folder with a share name in the virtual machine settings.

Then in Linux, you need to mount the share folder using VirtualBox file system:

#mount –t vboxfs name_of_share_folder /mnt/mount_point

Please note that the above mounted folder is owned by root. To allow user to own the files and folder use the command:

#mount -t vboxsf -o uid=1000,gid=1000 name_of_share_folder /mnt/mount_point

Where uid is the user id and gid is the group id. If you want to have it mount automatically upon each boot, put the mount command in /etc/rc.local. Using /etc/fstab has little effect, because that  file is processed before the SF module is loaded and will fail to mount the share.



Comments are closed.

%d bloggers like this: