I’ve had to beat around the bush in past distros, and finally found a pretty straight forward way to get the VirtualBox Additions working on my Fedora Virtual Machines under Oracle Virtual Box. It’s handy because you get all the native mouse and display support. Here’s all you have to do.
Once you’re at the Fedora Gnome Desktop, click on Activities (or press the windows key on your keyboard) and type terminal. Then click on the terminal icon.
Quick note, they replaced yum with dnf, don’t panic, the yum command still work. Anyway …
Enter the following:
(type your password)
dnf -y update kernel*
dnf -y install kernel-headers kernel-devel dkms
Insert the disk and run it.
You’ll have to enter a username and password.
When it’s all done, you should see something like this:
Then reboot again.