This morning I downloaded the brand-spanking-new Fedora 14 to run in a VirtualBox virtual machine. At first I was unable to install the VirtualBox Guest Additions. Thanks to this post I was pointed in the right direction to resolve this. The following instructions are for Fedora 14 64-bit. This post mentions some additional instructions for 32-bit users.
First, since I am a Mac user and I like using SUDO instead of SU, I added my user account to the sudo users list. This is not done by default by the Fedora 14 installation. This section is OPTIONAL. You can simply switch to super user (SU) when running the commands to install the addons.
- Open Terminal (Applications > System Tools > Terminal)
- Switch to Super User mode
- Open the sudoers list
- Using the Page Down or Arrow keys, scroll to the bottom of the file
- Hit the letter O on your keyboard to edit the file
- Enter the following (replace Username with your actual username)
[ps]Username ALL=(ALL) ALL[/ps]
- Exit Edit Mode by hitting escape on your keyboard
- Save the file by hitting : (colon), the letter w, and then enter – : w [enter]
- Quit the editor by hitting : (colon), the letter q, and then enter – : q [enter]
The following is how to get the VirtualBox Guest Additions installed using SUDO. If you are using SU instead, simply do that before running the series of commands and leave out SUDO from the commands below.
- Install the following packages: kernel-headers, kernel-devel, and gcc
[ps]sudo yum install kernel-headers kernel-devel gcc[/ps]
- Set the KERN_DIR environmental variable. Since the kernel version changes and is a long string, use the UNIX tab autocomplete feature on the kernel directory
[ps]export KERN_DIR=/user/src/kernels/2 [hit tab to finish the directory string, remove the trailing / at the end][/ps]
- Switch directories to the mount point of the VirtualBox Guest Additions virtual CD (make sure you have gone to Devices > Install Guest Additions in VirtualBox)
[ps]cd /media/VBOX [hit tab to autocomplete, the version number often changes][/ps]
- Run the installer
- After the installation is finished, simply reboot
That’s it. The VirtualBox Guest Additions should be installed.