[SOLVED] CentOS 6.7 guest in VBox 4.3.12 (Win 7 host)

General support questions
Post Reply
4hr1m4n
Posts: 11
Joined: 2012/10/30 12:00:22

[SOLVED] CentOS 6.7 guest in VBox 4.3.12 (Win 7 host)

Post by 4hr1m4n » 2015/11/05 19:52:42

Hi,

I installed CentOS 6.7 amd64 in VirtualBox 4.3.12 (WIndows 7 Enterprise SP1 64-bit host) but, as many others here, I had problems building the OpenGL driver that comes with VB Guest Additions.

None of the patches that are available at https://wiki.centos.org/HowTos/Virtuali ... entOSguest worked for me, so I had to break the stone by myself. I came up with the following patch that seems to work well:

Code: Select all

--- vboxvideo_drm.c.orig	2014-05-16 08:16:17.000000000 -0400
+++ vboxvideo_drm.c	2015-11-05 11:12:01.485680441 -0500
@@ -73,6 +73,10 @@
 #   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4)
 #    define DRM_NO_RECLAIM_BUFFERS
 #   endif
+#   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 7)
+#    define DRM_RHEL67
+#    define DRIVER_BUS_PCI
+#   endif
 #  endif
 # endif
 
@@ -119,7 +123,9 @@
         .open = drm_open,
         .release = drm_release,
         .unlocked_ioctl = drm_ioctl,
+#ifndef DRM_RHEL67
         .mmap = drm_mmap,
+#endif
         .poll = drm_poll,
 };
 #endif
I hope this might help other people.

Enjoy it! 8-)

4hr1m4n
Posts: 11
Joined: 2012/10/30 12:00:22

Re: [SOLVED] CentOS 6.7 guest in VBox 4.3.12 (Win 7 host)

Post by 4hr1m4n » 2015/11/05 20:01:58

I forgot to mention that I also had to execute the following steps before trying to install the Guest Additions:

Code: Select all

# cd /usr/include/uapi
# ln -s ../drm
And my kernel is 2.6.32-573.7.1.el6.x86_64.

Cheers.

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [SOLVED] CentOS 6.7 guest in VBox 4.3.12 (Win 7 host)

Post by TrevorH » 2015/11/06 01:24:32

You almost certainly shouldn't be using such an old version of VirtualBox. There are much newer 4.3.x versions available with those bugs already corrected.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

4hr1m4n
Posts: 11
Joined: 2012/10/30 12:00:22

Re: [SOLVED] CentOS 6.7 guest in VBox 4.3.12 (Win 7 host)

Post by 4hr1m4n » 2015/11/06 18:41:25

Agreed. However there are things to consider, like these: https://www.virtualbox.org/ticket/13187

This is what has pushed me to the old version. Moreover, even the newest version at this moment (5.0.8) has the same problem: viewtopic.php?f=13&t=54910

Post Reply