How to install VirtualBox Guest Additions on Fedora

The VirtualBox Guest Additions enhances your Virtual Machine's performance in the VirtualBox. It supports mouse pointer integration and a shared clipboard between the Linux VM and your host machine.

The full potential of VirtualBox is unleashed with the installation of VirtualBox Guest Additions package.

The package improves and enhances your Virtual Machine’s performance in the VirtualBox. It supports mouse pointer integration and a shared clipboard between the Linux VM and your host machine.

Installing VirtualBox Guest Additions on Fedora 30

Before starting the actual installation, make sure that your system is fully updated using the following commands:

sudo dnf update
sudo dnf upgrade

Step 1) Ensure that you are using the latest available kernel for your Fedora.

dnf update kernel*

Update Your Fedora Kernel
Update Your Fedora Kernel

Step 2) Reboot your Fedora machine to apply changes, run the reboot command in your terminal, and your computer will restart automatically.

reboot

Step 3. After your system starts, install the following required packages via the Fedora Terminal.

dnf install gcc kernel-devel kernel-headers dkms make bzip2 perl libxcrypt-compat

Install Required Packages
Install Required Packages

Step 4) Add the kernel directory environment variable.

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

Add The KERN_DIR Environment Variable
Add The KERN_DIR Environment Variable

Step 5) Export the kernel directory environment variable.

export KERN_DIR

Export The KERN_DIR Environment Variable
Export The KERN_DIR Environment Variable

Step 6) Now, let’s mount the Virtual Box Guest Additions. From the top menu of your running virtual machine click the Devices menu and choose to Install the Guest Additions CD image.

Insert The Vbox Guest Additions
Insert The Vbox Guest Additions

Step 7) The package should auto-run automatically, as shown below. Click the Run button to start the Virtual Box Guest Additions installation.

Vbox Auto Run
Vbox AutoRun

Step 8) Authentication is required, use your sudo password to continue.

Authentication Is Required
Authentication Is Required

Step 9) The package should be installed.

Vbox Guest Additions Will Start Installtion
Vbox Guest Additions Will Start Installation

Step 10) At last, you should find a message like the below one.

Reboot Your Fedora System
Reboot Your Fedora System

Step 11) Reboot your machine to apply changes.

reboot

Step 12) After your system restarts, you can check if the VirtualBox Guest Additions are installed successfully using the below command.

sudo lsmod | grep vbox

Congratulations, you have now installed the VirtualBox Guest Additions on your Fedora machine.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,874FansLike
265FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

ubuntu versions
Ubuntu is one of the most popular Linux distributions developed and released by Canonical, and not without reason. It has very enriched repositories, with support for all the programs you could ever need.
Uninstall Programs in Ubuntu
Uninstallation of programs can be done by graphical way using the Ubuntu Software Center, and the Synaptic Package manager. Command-line way of doing it is also possible using apt-get and aptitude commands. We shall discuss each one of them in detail.