[PATCH] VirtualBox4.2.8 and CentOS 6.4
[PATCH] VirtualBox4.2.8 and CentOS 6.4
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
[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
Re: VirtualBox4.2.8 and CentOS 6.4
This is useful but looks like it would be better addressed to the owners of the code on the Virtulabox forums.
Re: VirtualBox4.2.8 and CentOS 6.4
[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
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
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
[PATCH] VirtualBox4.2.8 and CentOS 6.4
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.
Actuallty I did it a couple of days ago.
Re: VirtualBox4.2.8 and CentOS 6.4
same here. apart from the failing openGL module everything else seems functional.
Re: VirtualBox4.2.8 and CentOS 6.4
[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
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
Re: VirtualBox4.2.8 and CentOS 6.4
the patch is also with 4.2.10 required, if you need openGL
Re: VirtualBox4.2.8 and CentOS 6.4
*** 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
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
Re: VirtualBox4.2.8 and CentOS 6.4
[b]amfipolis[/b], what about applying the patch
Re: VirtualBox4.2.8 and CentOS 6.4
Thank you for this patch. I was able to apply it and install VirtualBox Guest Additions on my CentOS 6.4 VM.