From f63b7ffb65173f8d76874e020853096486e0b2bba9e46e0a9c8bd5a644ce4440 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sun, 26 Feb 2017 20:21:39 +0000 Subject: [PATCH] - The fix for 3D acceleration only works for Gmome desktops. KDE desktops fail. Accordingly, 3D acceleration must still be disabled "out-of-the-box". File /etc/init.d/vboxadd contains comments on the modifications needed to turn 3D acceleration on, thus Gnome users may turn it on selectively. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=312 --- vbox-vboxadd-init-script.diff | 22 +++++++++++++++++++--- virtualbox.changes | 8 ++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/vbox-vboxadd-init-script.diff b/vbox-vboxadd-init-script.diff index 3775c00..c2600aa 100644 --- a/vbox-vboxadd-init-script.diff +++ b/vbox-vboxadd-init-script.diff @@ -91,7 +91,23 @@ Index: VirtualBox-5.1.14/src/VBox/Additions/linux/installer/vboxadd.sh # SELinux for the OpenGL libraries, so that gdm can load them during the # acceleration support check. This prevents an "Oh no, something has gone # wrong!" error when starting EL7 guests. -@@ -382,7 +365,7 @@ extra_setup() +@@ -237,6 +220,15 @@ start() + chcon -h -t lib_t "/var/lib/VBoxGuestAdditions/lib/libEGL.so.1" + fi + echo "/var/lib/VBoxGuestAdditions/lib" > /etc/ld.so.conf.d/00vboxvideo.conf ++ # The above code will enable 3D acceleration for Gnome VM desktops. For Plasma 5 (KDE) ++ # VM's almost everything breaks. For that reason, acceleration MUST be disabled here. ++ # Gnome users that want this feature should delete the two 'rm' commands that follow. ++ # You will need to repeat this modification EVERY time the VirtualBox package is ++ # reinstalled ++ # Any KDE user that deletes the two 'rm' commands MUST know how to recover your sustem ++ # from a mode 3 boot. YOU HAVE BEEN WARNED. ++ rm /var/lib/VBoxGuestAdditions/lib/* ++ rm /etc/ld.so.conf.d/00vboxvideo.conf + fi + ldconfig + +@@ -382,7 +374,7 @@ extra_setup() ln -sf "$lib_path/$PACKAGE/mount.vboxsf" /sbin # And an rc file to re-build the kernel modules and re-set-up the X server. ln -sf "$lib_path/$PACKAGE/vboxadd" /sbin/rcvboxadd @@ -100,7 +116,7 @@ Index: VirtualBox-5.1.14/src/VBox/Additions/linux/installer/vboxadd.sh # And a post-installation script for rebuilding modules when a new kernel # is installed. mkdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d -@@ -415,49 +398,13 @@ EOF +@@ -415,49 +407,13 @@ EOF # setup_script setup() { @@ -152,7 +168,7 @@ Index: VirtualBox-5.1.14/src/VBox/Additions/linux/installer/vboxadd.sh # Delete old versions of VBox modules. cleanup_modules depmod -@@ -468,12 +415,12 @@ cleanup() +@@ -468,12 +424,12 @@ cleanup() done # Clean-up X11-related bits diff --git a/virtualbox.changes b/virtualbox.changes index 8cc2007..8a68d17 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Feb 26 20:17:02 UTC 2017 - Larry.Finger@lwfinger.net + +- The fix for 3D acceleration only works for Gmome desktops. KDE desktops fail. Accordingly, + 3D acceleration must still be disabled "out-of-the-box". File /etc/init.d/vboxadd contains + comments on the modifications needed to turn 3D acceleration on, thus Gnome users may turn + it on selectively. + ------------------------------------------------------------------- Fri Feb 24 03:34:35 UTC 2017 - Larry.Finger@lwfinger.net