[PATCH] VirtualBox4.2.8 and CentOS 6.4

General support questions
dmischa
Posts: 58
Joined: 2011/03/21 14:46:56
Location: Germany

[PATCH] VirtualBox4.2.8 and CentOS 6.4

Post by dmischa » 2013/03/01 11:54:09

As for every new point release you need a patch to create the virtualbox guestadditions

[code]
--- vboxvideo_drm.c.ori 2013-03-01 12:11:52.146639050 +0100
+++ vboxvideo_drm.c 2013-03-01 12:18:57.231061446 +0100
@@ -70,6 +70,9 @@
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,3)
# define DRM_RHEL63
# endif
+# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,4)
+# define DRM_RHEL64
+# endif
# endif
# endif

@@ -106,7 +109,7 @@
{
/* .driver_features = DRIVER_USE_MTRR, */
.load = vboxvideo_driver_load,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0) && !defined(DRM_RHEL64)
.reclaim_buffers = drm_core_reclaim_buffers,
#endif
/* As of Linux 2.6.37, always the internal functions are used. */
[/code]
works for me

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

Re: VirtualBox4.2.8 and CentOS 6.4

Post by TrevorH » 2013/03/01 12:57:26

This is useful but looks like it would be better addressed to the owners of the code on the Virtulabox forums.

dmischa
Posts: 58
Joined: 2011/03/21 14:46:56
Location: Germany

Re: VirtualBox4.2.8 and CentOS 6.4

Post by dmischa » 2013/03/01 17:28:11

[quote]
TrevorH wrote:
This is useful but looks like it would be better addressed to the owners of the code on the Virtulabox forums.[/quote]

it's only for virtualbox users who don't wont to wait two or three months utill they can use CentOS 6.4

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

[PATCH] VirtualBox4.2.8 and CentOS 6.4

Post by gerald_clark » 2013/03/01 17:47:56

Well, anyone can update to 6.4 today using the cr repo. It just won't say 6.4.
Actuallty I did it a couple of days ago.

tigalch
QA Team
Posts: 522
Joined: 2012/06/23 17:28:41
Location: Austria

Re: VirtualBox4.2.8 and CentOS 6.4

Post by tigalch » 2013/03/01 17:53:17

same here. apart from the failing openGL module everything else seems functional.

dmischa
Posts: 58
Joined: 2011/03/21 14:46:56
Location: Germany

Re: VirtualBox4.2.8 and CentOS 6.4

Post by dmischa » 2013/03/02 10:06:30

[quote]
tigalch wrote:
same here. apart from the failing openGL module everything else seems functional.[/quote]

yes, and with the patch also the openGL module is functional

dmischa
Posts: 58
Joined: 2011/03/21 14:46:56
Location: Germany

Re: VirtualBox4.2.8 and CentOS 6.4

Post by dmischa » 2013/03/16 09:57:40

the patch is also with 4.2.10 required, if you need openGL

amfipolis
Posts: 1
Joined: 2013/03/21 10:14:24

Re: VirtualBox4.2.8 and CentOS 6.4

Post by amfipolis » 2013/03/21 10:17:10

*** Building 'vboxvideo' module ***
make[1]: Entering directory `/opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo'
make KBUILD_VERBOSE= CONFIG_MODULE_SIG= -C /usr/src/kernels/2.6.32-358.2.1.el6.x86_64 SUBDIRS=/opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo SRCROOT=/opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo modules
make[2]: Entering directory `/usr/src/kernels/2.6.32-358.2.1.el6.x86_64'
CC [M] /opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo/vboxvideo_drm.o
/opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo/vboxvideo_drm.c:110: error: unknown field ‘reclaim_buffers’ specified in initializer
/opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo/vboxvideo_drm.c:110: warning: initialization from incompatible pointer type
make[3]: *** [/opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo/vboxvideo_drm.o] Error 1
make[2]: *** [_module_/opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.32-358.2.1.el6.x86_64'
make[1]: *** [vboxvideo] Error 2
make[1]: Leaving directory `/opt/VBoxGuestAdditions-4.2.10/src/vboxguest-4.2.10/vboxvideo'
cp: cannot stat `vboxvideo/vboxvideo.o': No such file or directory

dmischa
Posts: 58
Joined: 2011/03/21 14:46:56
Location: Germany

Re: VirtualBox4.2.8 and CentOS 6.4

Post by dmischa » 2013/03/21 10:54:04

[b]amfipolis[/b], what about applying the patch

matjones
Posts: 4
Joined: 2011/09/09 16:14:49

Re: VirtualBox4.2.8 and CentOS 6.4

Post by matjones » 2013/03/30 19:30:36

Thank you for this patch. I was able to apply it and install VirtualBox Guest Additions on my CentOS 6.4 VM.

Post Reply