You are not logged in.

#1 2017-09-09 08:05:43

andrzej1_1
Member
Registered: 2017-09-07
Posts: 50

Unable to use hardware rendering

Hello,
I installed Arch on latest VirtualBox 5.1.26 r117224 and I mostly followed installation guide.
Then I read I have to install guest additions to make video acceleration work. So I installed virtualbox-guest-utils with choosing virtualbox-guest-modules-arch (cause I have default kernel) and enabled vboxservice.service.
The problem is that performance is still very terrible. I checked Xorg.0.log and it appears that hardware acceleration does not work:

$ grep "(EE)" /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    22.171] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[    22.177] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    22.865] (EE) modeset(0): glamor initialization failed
[    22.922] (EE) AIGLX: reverting to software rendering

Other outputs, which may be helpful:

$ uname -a
Linux arch 4.12.10-1-ARCH #1 SMP PREEMPT Wed Aug 30 12:40:24 CEST 2017 i686 GNU/Linux
$ glxinfo | grep renderer
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 4.0, 128 bits)

Xorg.0.log: https://ptpb.pw/yq6T

pacman.log: https://ptpb.pw/RJhb

What should I do to make hardware acceleration work?

Last edited by andrzej1_1 (2017-09-09 08:07:59)

Offline

#2 2017-09-09 08:41:37

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Unable to use hardware rendering

Did you reboot after enabling vboxservice.service?
Enabling systemd service won't start it immediately, but only makes it start on boot up.

Make sure the 'vboxvideo' module is loaded:

lsmod | grep vbox

Offline

#3 2017-09-09 10:17:57

andrzej1_1
Member
Registered: 2017-09-07
Posts: 50

Re: Unable to use hardware rendering

ooo wrote:

Did you reboot after enabling vboxservice.service?
Enabling systemd service won't start it immediately, but only makes it start on boot up.

Make sure the 'vboxvideo' module is loaded:

lsmod | grep vbox

Of course I rebooted system and service was active. Module vboxvideo really exist:

$ ls -al /usr/lib/xorg/modules/dri/vbox*
lrwxrwxrwx 1 root root 19 Jul 27 23:32 /usr/lib/xorg/modules/dri/vboxvideo_dri.so -> /usr/lib/VBoxOGL.so
$ ls -al /usr/lib/VBoxOGL.so
-rwxr-xr-x 1 root root 1019540 Jul 27 23:32 /usr/lib/VBoxOGL.so
$ sudo pacman -Qo /usr/lib/VBoxOGL.so
/usr/lib/VBoxOGL.so is owned by virtualbox-guest-utils 5.1.26-1

and is loaded:

$ lsmod | grep vbox
vboxvideo              40960  2
ttm                    69632  1 vboxvideo
drm_kms_helper        122880  1 vboxvideo
drm                   253952  5 vboxvideo,ttm,drm_kms_helper
syscopyarea            16384  2 vboxvideo,drm_kms_helper
sysfillrect            16384  2 vboxvideo,drm_kms_helper
sysimgblt              16384  2 vboxvideo,drm_kms_helper
vboxsf                 40960  0
vboxguest             192512  6 vboxsf,vboxvideo

Edit: Xorg is probably looking for /usr/lib/xorg/modules/drivers/vboxvideo_drv.so which does not exist. This have to be bug in Guest Additions...

Last edited by andrzej1_1 (2017-09-09 12:02:37)

Offline

#4 2017-09-10 14:35:59

andrzej1_1
Member
Registered: 2017-09-07
Posts: 50

Re: Unable to use hardware rendering

I found temporary workaround: downgrading to Xorg 1.18:

pacman -Rs xf86-input-libinput xf86-input-evdev
pacman -U [url]https://archive.archlinux.org/packages/x/xf86-input-evdev/xf86-input-evdev-2.10.4-1-x86_64.pkg.tar.xz[/url]
pacman -U [url]https://archive.archlinux.org/packages/x/xorg-server/xorg-server-1.18.4-1-x86_64.pkg.tar.xz[/url] [url]https://archive.archlinux.org/packages/x/xorg-server-common/xorg-server-common-1.18.4-1-x86_64.pkg.tar.xz[/url]

I also added ticket https://www.virtualbox.org/ticket/17070 but I doubt they will respond and fix problem.

Offline

Board footer

Powered by FluxBB