forked from pool/virtualbox
- 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
This commit is contained in:
parent
76da1100ef
commit
f63b7ffb65
@ -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
|
# SELinux for the OpenGL libraries, so that gdm can load them during the
|
||||||
# acceleration support check. This prevents an "Oh no, something has gone
|
# acceleration support check. This prevents an "Oh no, something has gone
|
||||||
# wrong!" error when starting EL7 guests.
|
# 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
|
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.
|
# 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
|
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
|
# And a post-installation script for rebuilding modules when a new kernel
|
||||||
# is installed.
|
# is installed.
|
||||||
mkdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d
|
mkdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d
|
||||||
@@ -415,49 +398,13 @@ EOF
|
@@ -415,49 +407,13 @@ EOF
|
||||||
# setup_script
|
# setup_script
|
||||||
setup()
|
setup()
|
||||||
{
|
{
|
||||||
@ -152,7 +168,7 @@ Index: VirtualBox-5.1.14/src/VBox/Additions/linux/installer/vboxadd.sh
|
|||||||
# Delete old versions of VBox modules.
|
# Delete old versions of VBox modules.
|
||||||
cleanup_modules
|
cleanup_modules
|
||||||
depmod
|
depmod
|
||||||
@@ -468,12 +415,12 @@ cleanup()
|
@@ -468,12 +424,12 @@ cleanup()
|
||||||
done
|
done
|
||||||
|
|
||||||
# Clean-up X11-related bits
|
# Clean-up X11-related bits
|
||||||
|
@ -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
|
Fri Feb 24 03:34:35 UTC 2017 - Larry.Finger@lwfinger.net
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user