Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 616238

Summary: app-emulation/virtualbox-5.1.20: Fails to start VMs for Windows guests that are started fine with app-emulation/virtualbox-5.1.18
Product: Gentoo Linux Reporter: fuse809
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal CC: captaincrutches, masterzorag, paolo.pedroni, perfect007gentleman, proxy-maint, rossi.f, wgh
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diff_5.1.22_dlopen_fix

Description fuse809 2017-04-21 17:59:36 UTC
I have noticed that app-emulation/virtualbox-5.1.20 with virtualbox-host-5.1.20 fails to start my Windows 7 and 10 VMs giving the error message:

Failed to open a session for the virtual machine Windows <NO>.

The VM session was aborted.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: SessionMachine
Interface: ISession {7844aa05-b02e-4cdd-a04f-ade4a762e6b7}

where <NO> is 7 or 10, for Windows 7 and 10, respectively. These two VMs (no change in configuration at ALL!) start perfectly fine with app-emulation/virtualbox-5.1.18 and app-emulation/virtualbox-host-5.1.18. My Windows 10 vbox file, if it helps to reproduce this error, is:

<?xml version="1.0"?>
<!--
** DO NOT EDIT THIS FILE.
** If you make changes to this file while any VirtualBox related application
** is running, your changes will be overwritten later, without taking effect.
** Use VBoxManage or the VirtualBox Manager GUI to make changes.
-->
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.15-linux">
  <Machine uuid="{25213a44-d63b-477e-a203-59635452c435}" name="Windows 10" OSType="Windows10_64" currentSnapshot="{67db068f-7287-4317-876b-b28a93a67d49}" snapshotFolder="Snapshots" lastStateChange="2017-04-21T16:56:07Z" aborted="true">
    <MediaRegistry>
      <HardDisks>
        <HardDisk uuid="{e1dde417-5c02-461f-8bb1-167cd1fc6155}" location="Windows 10.vdi" format="VDI" type="Normal">
          <HardDisk uuid="{b7e09ac5-2e76-44ea-85d1-f06f4539ef71}" location="Snapshots/{b7e09ac5-2e76-44ea-85d1-f06f4539ef71}.vdi" format="VDI"/>
        </HardDisk>
      </HardDisks>
    </MediaRegistry>
    <ExtraData>
      <ExtraDataItem name="GUI/LastCloseAction" value="PowerOff"/>
      <ExtraDataItem name="GUI/LastGuestSizeHint" value="1600,795"/>
      <ExtraDataItem name="GUI/LastNormalWindowPosition" value="0,23,640,480,max"/>
      <ExtraDataItem name="GUI/RestrictedRuntimeDevicesMenuActions" value="HardDrives"/>
      <ExtraDataItem name="GUI/RestrictedRuntimeMachineMenuActions" value="SaveState,PowerOff"/>
      <ExtraDataItem name="GUI/ScaleFactor" value="1"/>
      <ExtraDataItem name="GUI/ShowMiniToolBar" value="false"/>
      <ExtraDataItem name="GUI/StatusBar/IndicatorOrder" value="HardDisks,OpticalDisks,FloppyDisks,Network,USB,SharedFolders,Display,VideoCapture,Features,Mouse,Keyboard"/>
    </ExtraData>
    <Snapshot uuid="{67db068f-7287-4317-876b-b28a93a67d49}" name="Snapshot 1" timeStamp="2017-02-24T11:04:25Z">
      <Hardware>
        <CPU>
          <PAE enabled="false"/>
          <LongMode enabled="true"/>
          <HardwareVirtExLargePages enabled="false"/>
        </CPU>
        <Memory RAMSize="4096"/>
        <HID Pointing="USBTablet"/>
        <Paravirt provider="Default"/>
        <Boot>
          <Order position="1" device="Floppy"/>
          <Order position="2" device="DVD"/>
          <Order position="3" device="HardDisk"/>
          <Order position="4" device="Network"/>
        </Boot>
        <Display VRAMSize="128"/>
        <RemoteDisplay enabled="false"/>
        <BIOS>
          <IOAPIC enabled="true"/>
        </BIOS>
        <USB>
          <Controllers>
            <Controller name="OHCI" type="OHCI"/>
          </Controllers>
        </USB>
        <Network>
          <Adapter slot="0" enabled="true" MACAddress="080027BC7597" cable="true" type="82540EM">
            <NAT/>
          </Adapter>
          <Adapter slot="1" cable="true" type="82540EM"/>
          <Adapter slot="2" cable="true" type="82540EM"/>
          <Adapter slot="3" cable="true" type="82540EM"/>
          <Adapter slot="4" cable="true" type="82540EM"/>
          <Adapter slot="5" cable="true" type="82540EM"/>
          <Adapter slot="6" cable="true" type="82540EM"/>
          <Adapter slot="7" cable="true" type="82540EM"/>
        </Network>
        <LPT>
          <Port slot="1" enabled="false" IOBase="0x378" IRQ="7"/>
        </LPT>
        <AudioAdapter controller="HDA" driver="ALSA" enabled="true"/>
        <Clipboard mode="Bidirectional"/>
        <DragAndDrop mode="Bidirectional"/>
        <GuestProperties>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxControl.exe" value="5.1.14r112924" timestamp="1487831742829894000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxCredProv.dll" value="-" timestamp="1487831744274180000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxDisp.dll" value="-" timestamp="1487831742830753000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGINA.dll" value="-" timestamp="1487831744274045000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGuest.sys" value="5.1.14r112924" timestamp="1487831746441185000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxHook.dll" value="5.1.14r112924" timestamp="1487831742830648000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMRXNP.dll" value="5.1.14r112924" timestamp="1487831744273852000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMouse.sys" value="5.1.14r112924" timestamp="1487831746441474000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGL.dll" value="-" timestamp="1487831744275106000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLarrayspu.dll" value="-" timestamp="1487831744274402000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLcrutil.dll" value="-" timestamp="1487831744274571000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLerrorspu.dll" value="-" timestamp="1487831744274708000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLfeedbackspu.dll" value="-" timestamp="1487831744275013000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLpackspu.dll" value="-" timestamp="1487831744274821000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLpassthroughspu.dll" value="-" timestamp="1487831744274917000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxSF.sys" value="5.1.14r112924" timestamp="1487831746441767000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxService.exe" value="5.1.14r112924" timestamp="1487831743683193000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxTray.exe" value="5.1.14r112924" timestamp="1487831743682974000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxVideo.sys" value="-" timestamp="1487831746441894000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/HostVerLastChecked" value="5.1.14" timestamp="1487831838478188000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/InstallDir" value="C:/Program Files/Oracle/VirtualBox Guest Additions" timestamp="1487831742828693000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Revision" value="112924" timestamp="1487831742828608000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/Version" value="5.1.14" timestamp="1487831742828329000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="5.1.14" timestamp="1487831742828545000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/Net/0/MAC" value="080027BC7597" timestamp="1487831746445655000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/Net/0/Status" value="Up" timestamp="1487831746445600000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Broadcast" value="255.255.255.255" timestamp="1487831746445479000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/IP" value="10.0.2.15" timestamp="1487831746445410000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Netmask" value="255.255.255.0" timestamp="1487831746445529000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/Net/Count" value="1" timestamp="1487845608970464000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="Windows 10" timestamp="1487831742825086000" flags=""/>
          <GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="10.0.14393" timestamp="1487831742826066000" flags=""/>
          <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1487845616040441000" flags=""/>
        </GuestProperties>
      </Hardware>
      <StorageControllers>
        <StorageController name="SATA" type="AHCI" PortCount="3" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
          <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
            <Image uuid="{e1dde417-5c02-461f-8bb1-167cd1fc6155}"/>
          </AttachedDevice>
          <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/>
        </StorageController>
      </StorageControllers>
    </Snapshot>
    <Hardware>
      <CPU count="3">
        <PAE enabled="false"/>
        <LongMode enabled="true"/>
        <HardwareVirtExLargePages enabled="false"/>
      </CPU>
      <Memory RAMSize="8192"/>
      <HID Pointing="USBTablet"/>
      <Paravirt provider="Default"/>
      <Boot>
        <Order position="1" device="Floppy"/>
        <Order position="2" device="DVD"/>
        <Order position="3" device="HardDisk"/>
        <Order position="4" device="Network"/>
      </Boot>
      <Display VRAMSize="128" accelerate3D="true"/>
      <RemoteDisplay enabled="false">
        <VRDEProperties>
          <Property name="TCP/Ports" value="3389"/>
        </VRDEProperties>
      </RemoteDisplay>
      <BIOS>
        <IOAPIC enabled="true"/>
      </BIOS>
      <USB>
        <Controllers>
          <Controller name="OHCI" type="OHCI"/>
        </Controllers>
      </USB>
      <Network>
        <Adapter slot="0" enabled="true" MACAddress="080027BC7597" cable="true" type="82540EM">
          <NAT/>
        </Adapter>
        <Adapter slot="1" cable="true" type="82540EM"/>
        <Adapter slot="2" cable="true" type="82540EM"/>
        <Adapter slot="3" cable="true" type="82540EM"/>
        <Adapter slot="4" cable="true" type="82540EM"/>
        <Adapter slot="5" cable="true" type="82540EM"/>
        <Adapter slot="6" cable="true" type="82540EM"/>
        <Adapter slot="7" cable="true" type="82540EM"/>
      </Network>
      <LPT>
        <Port slot="1" enabled="false" IOBase="0x378" IRQ="7"/>
      </LPT>
      <AudioAdapter controller="HDA" driver="ALSA" enabled="true"/>
      <SharedFolders>
        <SharedFolder name="Programs" hostPath="/home/fusion809/Programs" writable="true" autoMount="true"/>
        <SharedFolder name="Documents" hostPath="/home/fusion809/Documents" writable="true" autoMount="true"/>
      </SharedFolders>
      <Clipboard mode="Bidirectional"/>
      <DragAndDrop mode="Bidirectional"/>
      <GuestProperties>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxControl.exe" value="5.1.14r112924" timestamp="1492704560791453000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxCredProv.dll" value="-" timestamp="1492704560794626000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxDisp.dll" value="-" timestamp="1492704560792313000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGINA.dll" value="-" timestamp="1492704560794535000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGuest.sys" value="5.1.14r112924" timestamp="1492704560795853000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxHook.dll" value="5.1.14r112924" timestamp="1492704560792200000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMRXNP.dll" value="5.1.14r112924" timestamp="1492704560794427000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMouse.sys" value="5.1.14r112924" timestamp="1492704560796087000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGL.dll" value="-" timestamp="1492704560795257000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLarrayspu.dll" value="-" timestamp="1492704560794758000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLcrutil.dll" value="-" timestamp="1492704560794847000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLerrorspu.dll" value="-" timestamp="1492704560794930000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLfeedbackspu.dll" value="-" timestamp="1492704560795177000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLpackspu.dll" value="-" timestamp="1492704560795014000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLpassthroughspu.dll" value="-" timestamp="1492704560795097000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxSF.sys" value="5.1.14r112924" timestamp="1492704560796309000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxService.exe" value="5.1.14r112924" timestamp="1492704560793480000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxTray.exe" value="5.1.14r112924" timestamp="1492704560793367000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxVideo.sys" value="-" timestamp="1492704560796407000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/HostVerLastChecked" value="5.1.20" timestamp="1492704701391273000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/InstallDir" value="C:/Program Files/Oracle/VirtualBox Guest Additions" timestamp="1492704560790219000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Revision" value="112924" timestamp="1492704560790140000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Version" value="5.1.14" timestamp="1492704560788816000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="5.1.14" timestamp="1492704560789204000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/MAC" value="080027BC7597" timestamp="1492704560799558000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/Status" value="Up" timestamp="1492704560799509000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Broadcast" value="255.255.255.255" timestamp="1492704560799413000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/IP" value="10.0.2.15" timestamp="1492704560799350000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Netmask" value="255.255.255.0" timestamp="1492704560799461000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/Net/Count" value="1" timestamp="1492705372643822000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="Windows 10" timestamp="1492704560787466000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="10.0.14393" timestamp="1492704560788182000" flags=""/>
        <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1492711972365764000" flags=""/>
      </GuestProperties>
    </Hardware>
    <StorageControllers>
      <StorageController name="SATA" type="AHCI" PortCount="3" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
        <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
          <Image uuid="{b7e09ac5-2e76-44ea-85d1-f06f4539ef71}"/>
        </AttachedDevice>
        <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/>
      </StorageController>
    </StorageControllers>
    <Groups>
      <Group name="/Windows NT"/>
    </Groups>
  </Machine>
</VirtualBox>

Windows 10 ISO is available for download for free from Microsoft https://www.microsoft.com/en-au/software-download/windows10.
Comment 1 fuse809 2017-04-21 18:01:22 UTC
All other VMs (including for the BSDs: FreeBSD 11, 11-STABLE, NetBSD 7.1, OpenBSD 6.0; Icaros desktop, OpenIndiana, Linux, FreeDOS and ReactOS) work fine with both app-emulation/virtualbox-5.1.18 and app-emulation/virtualbox-5.1.20.
Comment 2 Alexey Min 2017-04-23 10:30:26 UTC
For me, after upgrading to 5.1.20, Linux guests stopped working: in Gentoo guest, plasma session faield to start, and KDE Neon guest doesn't boot anymore, too (host has 5.1.20 version).
Comment 3 Ostashevskyi Viktor 2017-04-23 10:48:03 UTC
I have similar issue with 5.1.20 (didn't check 5.1.18).

When I start VirtualBox from console, I got following output:

libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

For some reason VirtualBox can't load host OpenGL. Disabling 3D-acceleration in guest setting allows to boot VM, however another issue arise: VirtualBox states that:

No audio devices could be opened. Selecting the NULL audio backend with the consequence that no sound is audible.
HostAudioNotResponding

Another workaround for OpenGL is to set LIBGL_DRIVERS_PATH=/usr/lib64/mesa, to folder where drivers binary lays; setting it /usr/lib64/dri where symlinks present doesn't work!

IMO, something is terribly spoiled.
Comment 4 fuse809 2017-04-23 10:50:33 UTC
Might be relevant that in all my VMs I have VirtualBox Guest Additions (VBGA) 5.1.18 installed in all my Linux and Windows VMs. It was installed from the VBGA ISO inserted into the VMs.
Comment 5 urcindalo 2017-04-25 12:11:19 UTC
(In reply to Brenton Horne from comment #4)
> Might be relevant that in all my VMs I have VirtualBox Guest Additions
> (VBGA) 5.1.18 installed in all my Linux and Windows VMs. It was installed
> from the VBGA ISO inserted into the VMs.

I couldn't start my Win7 VM after upgrading to 5.1.20. At first I thought it was due to the VM being suspended with the previous 5.1.18. However, a few tries later (installing/deinstalling Guest Additions), I can state the culprit is VirtualBox 5.1.20 with Guest Additions installed: if I launch my Win7 VM with VirtualBox 5.1.20 before installing its GA, the VM starts. But, if later on I install GA and reboot the VM, not only it does not complete the start, but Plasma itself becomes non-responsive to mouse clicks even tough I can move the cursor around. I can only gain control back if I swith to a console tty and reboot the host.
Comment 6 urcindalo 2017-04-25 12:14:16 UTC
(In reply to urcindalo from comment #5)
> (In reply to Brenton Horne from comment #4)
> > Might be relevant that in all my VMs I have VirtualBox Guest Additions
> > (VBGA) 5.1.18 installed in all my Linux and Windows VMs. It was installed
> > from the VBGA ISO inserted into the VMs.
> 
> I couldn't start my Win7 VM after upgrading to 5.1.20. At first I thought it
> was due to the VM being suspended with the previous 5.1.18. However, a few
> tries later (installing/deinstalling Guest Additions), I can state the
> culprit is VirtualBox 5.1.20 with Guest Additions installed: if I launch my
> Win7 VM with VirtualBox 5.1.20 before installing its GA, the VM starts. But,
> if later on I install GA and reboot the VM, not only it does not complete
> the start, but Plasma itself becomes non-responsive to mouse clicks even
> tough I can move the cursor around. I can only gain control back if I swith
> to a console tty and reboot the host.

Just for the shake of clarity. I deinstalled GA by booting the Win7 VM into Windows Safe Mode, and then the Win7 VM starts OK normally with 5.1.20 when *no* GA are installed.
Comment 7 Mike Greene 2017-04-26 23:21:55 UTC
I am having the same problem on two different systems (Desktop and Laptop):

Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
SessionMachine
Interface: 
ISession {7844aa05-b02e-4cdd-a04f-ade4a762e6b7}

I reinstalled 5.1.18 and everything started working again. Seems only to be the Windows VMs (WinXP, Win 7, and Win 10).
Comment 8 Charles Nérot 2017-04-27 18:41:27 UTC
Some other information about this in this gentoo forum thread : https://forums.gentoo.org/viewtopic-p-8060154.html
Comment 9 fuse809 2017-05-02 08:39:31 UTC
I keep getting this error with 5.1.22 too!
Comment 10 fuse809 2017-05-02 10:09:02 UTC
This issue also occurs with app-emulation/virtualbox-bin-5.1.22.115126.
Comment 11 Jiří Moravec 2017-05-02 14:27:46 UTC
Yes. This 'feature' is still there. So downgrade back to 5.1.18 release is only possibility. :-(
Comment 12 Mike Greene 2017-05-03 10:15:28 UTC
I still have problem after installing 5.1.22, went back to 5.1.18.
Comment 13 Paolo Pedroni 2017-05-03 15:19:40 UTC
Seeing https://www.virtualbox.org/ticket/16693 it looks like VirtualBox refuses to load shared libraries with 777 permissions. On gentoo the dri libraries in /usr/lib64/dri are symlinks to libraries in /usr/lib64/mesa (thus 777) and VirtualBox is not smart enough to determine that they are symlinks and not actually world writable libraries, thus denying loading.
Comment 14 Mike Greene 2017-05-11 11:02:03 UTC
Created attachment 472320 [details, diff]
diff_5.1.22_dlopen_fix

Patch from https://www.virtualbox.org/ticket/16693
Comment 15 Mike Greene 2017-05-11 11:04:22 UTC
Placed the patch provided by Frank into /etc/portage/patches/app-emulation/virtualbox-5.1.22

VirtualBox 5.1.22 compiling and all my VMs are working again.
Comment 16 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-05-11 12:08:37 UTC
commit 711bd6953ba3b6e086e30f77048b693f31082d73 (HEAD -> master, origin/master, origin/HEAD)
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Thu May 11 14:07:06 2017

    app-emulation/virtualbox: Fixed OpenGL issue (bug #616238).
    
    Package-Manager: Portage-2.3.5, Repoman-2.3.2
Comment 17 WGH 2017-05-15 15:08:31 UTC
Any chance to backport this fix to 5.0.x? Unfortunately, 5.1.x is broken in different way, so I'm stuck with 5.0.x for now: https://www.virtualbox.org/ticket/15863

LIBGL_DRIVERS_PATH=/usr/lib64/mesa workaround does work.