How To Fix “Building the OpenGL support module [FAILED]” Error In VirtualBox

by
Share this Article: Facebook48Google+0Twitter6LinkedIn0Reddit0Pinterest1StumbleUpon1Digg
When I was trying to install Virtualbox guest additions for my Centos 6.5  64bit VM, i can’t complete the installation due to the following issue.

Even after add EPEL repository, i got the same error.

Install required dependencies:

yum install gcc kernel-devel kernel-headers dkms make bzip2 perl
root@centos6 VBOXADDITIONS_4.3.6_91406]# ./VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.6 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.6 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Building the OpenGL support module                         [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions              [  OK  ]
Installing the Window System drivers
Installing X.Org Server 1.13 modules                       [  OK  ]
Setting up the Window System to use the Guest Additions    [  OK  ]
You may need to restart the hal service and the Window System (or just restart

To get rid of this error, do the following:

# cd /usr/src/kernels/2.6.32-431.3.1.el6.x86_64/include/drm 
# ln -s /usr/include/drm/drm.h drm.h  
# ln -s /usr/include/drm/drm_sarea.h drm_sarea.h  
# ln -s /usr/include/drm/drm_mode.h drm_mode.h  
# ln -s /usr/include/drm/drm_fourcc.h drm_fourcc.h

Install again :

[root@centos6 drm]# cd  /media/VBOXADDITIONS_4.3.6_91406/
[root@centos6 VBOXADDITIONS_4.3.6_91406]# ./VBoxLinuxAdditions.run Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.6 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.6 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel 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
Installing X.Org Server 1.13 modules                       [  OK  ]
Setting up the Window System to use the Guest Additions    [  OK  ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[  OK  ]
[root@centos6 VBOXADDITIONS_4.3.6_91406]#

Voila!

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook48Google+0Twitter6LinkedIn0Reddit0Pinterest1StumbleUpon1Digg