You are not logged in.

#1 2017-06-30 06:37:20

pico
Member
Registered: 2013-07-06
Posts: 18

[SOLVED] Broken 3D acceleration inside virtualbox guest

Hi.
Im trying to install ArchLinux under virtualbox.
My host is Windows 7
I gave guest 4 cores of CPU, 16gb RAM, 128mb video memory and 3D acceleration checkbox is checked.
I installed KDE and it has low framerate. I think 3D acceleration is not working. I don't know how to check it. "glxinfo" should show it, but it shows error.

"glxinfo" (error) https://bpaste.net/show/5d1d2c71615d
"pacman -Q" https://bpaste.net/show/5541d56dc671
"uname -a" https://bpaste.net/show/12f717009e9b
"lspci" https://bpaste.net/show/d1191627eb42
"lsmod" https://bpaste.net/show/9aaf53f068cd
"/home/arch/.local/share/xorg/Xorg.0.log" (starting with "startx", have problems with lightdm starting automatically, will solve later) https://bpaste.net/show/ddf84af3156f
"systemctl status vboxservice.service" (running) https://bpaste.net/show/d504b0d93f10
"dmesg" https://bpaste.net/show/9cb64c3f0583

At some point i thought enabling 3D acceleration is not possible but then in backups i found another virtualbox ArchLinux installation.
It has last updates from 2015 and it is x86. I remember i updated it in 2016 and acceleration broke, it became very slow.
But this 2015 works very good, so it is possible.

Here is logs of 2015 that works perfectly:
"glxinfo" (no error) https://bpaste.net/show/1ce682ea583b
"pacman -Q" https://bpaste.net/show/8e1d4216ace9
"uname -a" https://bpaste.net/show/a0af829afdfd
"lspci" https://bpaste.net/show/732e911fe6d2
"lsmod" https://bpaste.net/show/2e1d4ab782df
"/var/log/Xorg.0.log" (starting automatically with lightdm) https://bpaste.net/show/d86fdfdcc729
"systemctl status vboxservice.service" (dead) https://bpaste.net/show/aba24984c201
"dmesg" https://bpaste.net/show/7d649dcdd54f

As i see vboxservice is running on new Arch and dead on old. Not sure what is happening.
Help me please make 3D acceleration work, i like it very much.
Thank you.

Last edited by pico (2017-07-03 09:54:23)

Offline

#2 2017-07-01 01:37:09

pico
Member
Registered: 2013-07-06
Posts: 18

Re: [SOLVED] Broken 3D acceleration inside virtualbox guest

Many hours later i discovered that "glxinfo" will not work if its not running inside DE. Previously i was running it in Ctrl+Alt+F2 while Ctrl+Alt+F1 was running DE and it was not working.

$ glxinfo
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4

Should be

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: Chromium
server glx version string: 1.3 Chromium

I tried to install "linux-lts" and "linux-lts-headers" and replace "virtualbox-guest-modules-arch" with  "virtualbox-guest-dkms"
"uname -a" shows i run lts kernel bus still no acceleration, everything is very slow.

But i got some results.
If i mount .iso of virtualbox's tools and after installing it without reboot i got Chromium render.
Screenshot: https://i.imgur.com/oTfNEfw.png
VYhhrtH.png
After reboot my KDE is crashing, can't launch apps, bottom pannel disappearing.
I know this method of installation is very bad idea but im just trying all i can and doing backups.
I will try more things to find source of problem.

Meanwhile anybody have any ideas what should i try to make acceleration work?

Offline

#3 2017-07-01 02:16:39

pico
Member
Registered: 2013-07-06
Posts: 18

Re: [SOLVED] Broken 3D acceleration inside virtualbox guest

Here is results:
I have "linux" kernel (not LTS)
I removed "virtualbox-guest-modules-arch" and "virtualbox-guest-utils"
I mounted .iso of VirtualBox's addon thing
Executed "./VBoxLinuxAdditions.run"
Rebooted
"startx" where i have LXDE as DE

$ glxinfo 
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: Chromium
server glx version string: 1.3 Chromium
server glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, 
    GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig
client glx vendor string: Chromium
client glx version string: 1.3 Chromium

But if i change my DE to KDE then it crashes (bottom panel disappears, unable to launch anything) (because installing things like that is not good idea)
But now im sure that problem is in broken "virtualbox-guest-utils" and/or "virtualbox-guest-modules-arch"

Now i want to get it fixed in ArchLinux. How i can help get it fixed?
I see here
https://www.archlinux.org/packages/comm … ules-arch/
Last Packager: Tobias Powalowski
https://www.archlinux.org/packages/comm … est-utils/
Maintainers: Sébastien Luttringer, Christian Hesse
Last Packager: Christian Hesse

Who should i contact? Or how i can help? Or what should i do now?

Offline

#4 2017-07-01 12:39:43

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,566

Re: [SOLVED] Broken 3D acceleration inside virtualbox guest

glxinfo is designed to run from within an X-session  , which is possible without running a DE or WM .

output of glxinfo | grep OpenGL ?

Does host run the same virutalbox version as guest ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#5 2017-07-01 23:53:43

pico
Member
Registered: 2013-07-06
Posts: 18

Re: [SOLVED] Broken 3D acceleration inside virtualbox guest

Lone_Wolf,
Host have "VirtualBox 5.1.22 r115126" installed.

At the moment i have 3 systems:
"2015 3D": last "pacman -Syu" was 2015-07-27, installed "virtualbox-guest-modules 4.3.28-1" and "virtualbox-guest-utils 4.3.28-1", 3D acceleration is working
"2017 soft": installed "virtualbox-guest-modules-arch 5.1.22-4" and "virtualbox-guest-utils 5.1.22-2", 3D acceleration is not working, cinnamon showing alert "Running in software rendering mode" (i tried "dkms" version and tried "linux-lts" and still no 3D)
"2017 3D": installed "VBoxLinixAdditions.run" from .iso and "linux-headers" for it, 3D acceleration is working

2015 3D "glxinfo | grep OpenGL"

$ glxinfo | grep OpenGL
pci id for fd 4: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.1 Chromium 1.9
OpenGL shading language version string: 4.50 NVIDIA
OpenGL extensions:

2017 soft "glxinfo | grep OpenGL"

$ glxinfo | grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 4.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.1.4
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.1.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.1.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

2017 3D "glxinfo | grep OpenGL"

$ glxinfo | grep OpenGL
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.1 Chromium 1.9
OpenGL shading language version string: 4.50 NVIDIA
OpenGL extensions:

Offline

#6 2017-07-02 20:30:38

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,566

Re: [SOLVED] Broken 3D acceleration inside virtualbox guest

OpenGL 4.5 shaders while advertising OpenGL 2.1 , no wonder KWin has problems with it.

Basically virtualbox 3D HW acceleration for X in linux guests is broken and has been that way for years.
VBox 3d HW acceleration for windows guests is said to be much better.

Assuming you can't make this a linux host with a windows guest , I suggest you try vmware .
Their VMware player is free for personal use i think, and they do have  a proper kernel module and X driver for linux guests (xf86-video-vmware ) .

Last edited by Lone_Wolf (2017-07-02 20:31:14)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#7 2017-07-03 09:53:45

pico
Member
Registered: 2013-07-06
Posts: 18

Re: [SOLVED] Broken 3D acceleration inside virtualbox guest

I installed VMware, installation of guest addons is complicated, but everything looks working.
"glxinfo" still reports "server glx vendor string: SGI" but everything is smooth, "cinnamon" do not show alert about software rendering and even 4k 60p youtube video works in firefox without drops. I'm impressed.
Also drag'n'drop files is working now. It was never working in VirtualBox.
Thank you for help.

Offline

Board footer

Powered by FluxBB