If Not True Then False

VirtualBox Guest Additions on Fedora 27/26, CentOS/RHEL 7.4/6.9/5.11 - Comment Page: 8

This is guide, howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 27/26/25/24/23/22/21/20/19/18/17/16, CentOS 7.4/6.9/5.11, Red Hat (RHEL) 7.4/6.9/5.11. VirtualBox Guest Additions is special software that can be installed inside Linux virtual machines to improve performance and make integration much more seamless. Among the...


Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.


Hi, I’m having issues installing guest additions on my Fedora 23 virtual machine. I am able to run ./VBoxLinuxAdditions.run but I get the following error message:

“Warning: unsupported pre-release version of X.Org Server installed. Not installing the X.Org drivers”

Everything else seems to work well, but when I reboot nothing has changed. The max resolution I can get is 1024 x 768. My host machine is a Surface Book (3,000 x 2,000 resolution) so the VM is way too small.

If you could offer any tips, I’d really appreciate it. Thank you.

reply Reply

Hi Pamela,

You can downgrade Xorg back to 1.17 using following “command” (copy+paste all rows at once as root):

ARCH=$(uname -m)
	'xorg-x11-drv-ati-7.6.0-0.1.20150709git95f5d09.fc23' \
	'xorg-x11-drv-evdev-2.9.2-2.fc23' \
	'xorg-x11-drv-fbdev-0.4.3-22.fc23' \
	'xorg-x11-drv-intel-2.99.917-15.20150729.fc23' \
	'xorg-x11-drv-libinput-0.14.0-1.fc23' \
	'xorg-x11-drv-openchrome-0.3.3-16.fc23' \
	'xorg-x11-drv-nouveau-1.0.11-4.fc23' \
	'xorg-x11-drv-qxl-0.1.4-3.fc23' \
	'xorg-x11-drv-synaptics-1.8.2-3.fc23' \
	'xorg-x11-drv-vesa-2.3.2-22.fc23' \
	'xorg-x11-drv-vmmouse-13.1.0-1.fc23' \
	'xorg-x11-drv-vmware-13.0.2-9.20150211git8f0cf7c.fc23' \
	'xorg-x11-drv-wacom-0.30.0-2.fc23' \
	'xorg-x11-server-Xorg-1.17.2-2.fc23' \
	'xorg-x11-server-Xwayland-1.17.2-2.fc23' \
	'xorg-x11-server-common-1.17.2-2.fc23' \
printf "$URL%s.$ARCH.rpm " "${PACKAGES[@]}" |xargs dnf install -y

I wrote this command for users who want to install nVidia drivers on Fedora 23, but should also work with VirtualBox Guest Additions. Add also exclude=xorg-x11* to /etc/dnf/dnf.conf like:


Then run ./VBoxLinuxAdditions.run again.

reply Reply

Or maybe upgrade VirtualBox.
I have VirtualBox 5.0.10 and the guest additions that belong to that version installed without problems (using the instructions above) on Fedora 23 Workstation (for which I am grateful!). While initially also limited to 1024×768, I now run at 1680×1050, the size of my second monitor.

reply Reply

Upgraded to Virtualbox 5.0.20, the guest additions that ships with that version worked without issue. Thanks so much!

reply Reply

Hi JR, I can’t see the comment that you posted in response to my concerns about the older version of xorg, but I got it in my email and I just want to say – it works! Finally! My VM is usable at last. Thank you for providing continuous support to your readers.

reply Reply

Hi Pamela,

You are welcome and nice to hear that you got it working!

It’s caused by the cache that you couldn’t see my comment. If you have cookie which tells to the web server that you are commented something, then you should see live version otherwise you see cached version.

reply Reply

Thank you for providing this guide. I have followed all of the steps above but still can’t seem to get GuestAdditions up and running.

I am running VirtualBox 5.0.12 with CentOS 7

After completing all above steps, below is what I see during Vbox install, notice there is no “main Guest Additions modules, shared folder or opengl modules. Anything I am missing? Also how to I get X.Org to be available? haven’t been able to find how/where to install?

[root@localhost VirtualBoxAdditions]# ./VBoxLinuxAdditions.run
Verifying archive integrity… All good.
Uncompressing VirtualBox 5.0.12 Guest Additions for Linux…………
VirtualBox Guest Additions Installer
Removing Installed version 5.0.12 of VirtualBox Guest Additions…
Removing existing VirtualBox DKMS kernal modules[ OK ]
Removing existing VirtualBox non-DKMS kernal modules[ OK ]
Copying additional installer modules …
Installing additional modules …
Removing existing VirtualBox DKMS kernal modules[ OK ]
Removing existing VirtualBox non-DKMS kernal modules[ OK ]
Building the VirtualBox Guest Additions kernel modules[ OK ]
Doing non-kernel setup of the Guest Additions[ OK ]
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
[root@localhost VirtualBoxAdditions]#

reply Reply

Hi Michael,

Do you have any graphical environment installed? Looks like, that you don’t have X installed? If you don’t have it, then you don’t need Window system drivers.

reply Reply

Thanks, that was my problem. Once I installed that, all was working fine. Thank you!!

reply Reply

Hi Suresh,

I just tested this on CentOS 7.2 and it’s working normally for me. Some reason your log paste is expired.

reply Reply

This worked !!!!!!!. I struggled and spend more time resolving. After making the changes, i got bad interpreter: Permission denied when executed as below

bash: ./VBoxLinuxAdditions-x86.run: /bin/sh: bad interpreter: Permission denied

but by executing sh ./VBoxLinuxAdditions-x86.run

it worked.

reply Reply
Nathan Waddell

Thank you, thank you, thank you! I had tried hacking on the kernel source, etc as suggested by other posts in the blogosphere. CentOS 6.7 just would not compile the OpenGL modules.

This method worked flawlessly.

reply Reply

I am running Fedora23 with Virtual Box installed as per your instructions.
When I run ./VBoxLinuxAdditions.run, I get a fail ;
Building main Guest Additions module…….fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)

/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run makefile again.
What does this mean and how do I fix it please?

reply Reply

Hi John,

Did you installed all packages on step 4.?

Could you also post output of following command:

rpm -qa kernel\*
reply Reply

here is the result
[root@localhost ~]# rpm -qa kernel\*
[root@localhost ~]#

reply Reply

I installed the packages in step 4;
[root@localhost ~]# dnf install gcc kernel-devel kernel-headers dkms make bzip2 perl
Last metadata expiration check performed 0:07:45 ago on Mon Mar 14 11:44:16 2016.
Package gcc-5.3.1-2.fc23.i686 is already installed, skipping.
Package kernel-devel-4.4.4-301.fc23.i686 is already installed, skipping.
Package kernel-headers-4.4.4-301.fc23.i686 is already installed, skipping.
Package dkms- is already installed, skipping.
Package make-1:4.0-5.1.fc23.i686 is already installed, skipping.
Package bzip2-1.0.6-19.fc23.i686 is already installed, skipping.
Package perl-4:5.22.1-351.fc23.i686 is already installed, skipping.
Dependencies resolved.
Nothing to do.
[root@localhost ~]#

reply Reply

Thanks, could you also post output of following commands:

uname -a

ls -la /usr/src/kernels/
reply Reply
John Kaup

I installed Fedora23 on a 32bit system and instead VirtualBox as per your instructions. When I installed the vbox guest additions and ran ./VBoxLinuxAdditions.run I got a fail on building main guest additions. I checked the install log and it said couldn’t find the source of the current kernel.

reply Reply

uname -a
Linux localhost.localdomain 4.4.4-301.fc23.i686 #1 SMP Fri Mar 4 18:21:35 UTC 2016 i686 i686 i386 GNU/Linux

ls -la /usr/src/kernels/
drwxr-xr-x. 3 root root 4096 Mar 14 16:26 .
drwxr-xr-x. 4 root root 4096 Mar 14 17:12 . .
drwxr-xr-x. 23 root root 4096 Mar 14 16:26 4.4.4-301.fc23.i686

also, when Fedora home screen comes up after booting I get a meesage at the top of the scree saying : “Oops sorry the 4.4.4-301.fc23.i686 boot-image has crashed,. Please contact the developer”

reply Reply

Hi TestUser,

Could you post output of following commands:

uname -a

rpm -qa kernel\* |sort -V
reply Reply

Worked for me too on Fedora24! Can’t believe all these steps have to be performed for something so basic in 2016.

reply Reply

Using virtual box 4.3.20 building main Guest Additions module failed for Fedora 24 guest. Installation of latest version Guest Additions (5.1.0) passed but automatic adjustment of video resolution still not working. Any ideas? Unfortunately I’m not allowed to update virtual box.

reply Reply

I get warnings and errors after following all the steps:

Building the main Guest Additions module [FAILED]

(In /var/log/vboxadd-install.log:)
Error! Bad return status for module build on kernel: 4.6.4-301.fc24.x86_64 (x86_64)

Warning: unknown version of the X Window System installed. Not installing X Window System drivers.

I had just done a dnf update and restarted the virtual machine after a previous failed attempt to install the guest additions using someone else’s walk through. If someone would be nice enough to help me I’ll provide more relevant info, I don’t know what’s important to post and what’s not at this point.

reply Reply