Version of VirtualBox installed: Virtualbox 6.1.36r152435 (Qt5 6.2)
Type and version of the Host Operating System: Windows 7 SP1
Type and version of the Guest OS: Gentoo GNU/Linux x86_64
Relevant host system information:
- DirectX Version: DirectX 11
- Card name: NVIDIA GeForce GT 240
- Driver Name: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
- OpenGL Extensions Viewer reports support for OpenGL 3.3.0
Code: Select all
00:00:04.966061 supR3HardenedErrorV: supR3HardenedScreenImage/LdrLoadDll: rc=VERR_CR_PKCS7_KEY_USAGE_MISMATCH fImage=1 fProtect=0x0 fAccess=0x0 \Device\HarddiskVolume3\Windows\System32\nvd3dumx.dll: WinVerifyTrust failed with hrc=CERT_E_CHAINING on '\Device\HarddiskVolume3\Windows\System32\nvd3dumx.dll'
00:00:04.966144 supR3HardenedErrorV: supR3HardenedMonitor_LdrLoadDll: rejecting 'C:\Windows\system32\nvd3dumx.dll': rcNt=0xc0000190
00:00:04.966851 supR3HardenedErrorV: supR3HardenedScreenImage/NtCreateSection: cached rc=VERR_CR_PKCS7_KEY_USAGE_MISMATCH fImage=1 fProtect=0x2 fAccess=0x7 cHits=1 \Device\HarddiskVolume3\Windows\System32\nvd3dumx.dll
00:00:04.968026 supR3HardenedErrorV: supR3HardenedScreenImage/NtCreateSection: cached rc=VERR_CR_PKCS7_KEY_USAGE_MISMATCH fImage=1 fProtect=0x2 fAccess=0x7 cHits=2 \Device\HarddiskVolume3\Windows\System32\nvd3dumx.dll
First of all, I want to acknowledge that Windows 7 is not in the list of supported Host systems of the user manual, but I'll ask anyways in hopes that my problem can be looked over to check for any errors unrelated to that.
I am trying to have hardware acceleration on my guest system, but the system reports that software acceleration is being used instead.
Code: Select all
glxinfo -B
...
Device: llvmpipe (LLVM 14.0.6, 128 bits) (0xffffffff)
Accelerated: no
...
Relevant lines from Xorg.log.0The Gallium llvmpipe driver is a software rasterizer that uses LLVM to do runtime code generation.
Code: Select all
[ 4470.756] (II) Loading sub module "dri2"
[ 4470.756] (II) LoadModule: "dri2"
[ 4470.756] (II) Module "dri2" already built-in
[ 4470.756] (II) Loading sub module "dri3"
[ 4470.756] (II) LoadModule: "dri3"
[ 4470.756] (II) Module "dri3" already built-in
[ 4470.756] (II) vmware(0): Initialized VMWARE_CTRL extension version 0.2
[ 4470.758] (WW) vmware(0): Failed to initialize Gallium3D Xa. No render acceleration available.
[ 4470.758] (WW) vmware(0): Skipped initialization of direct rendering due to lack of render acceleration.
[ 4470.758] (--) vmware(0): Render acceleration is disabled.
[ 4470.758] (==) vmware(0): Rendercheck mode is disabled.
[ 4470.758] (--) vmware(0): Direct rendering (DRI2 3D) is disabled.
[ 4470.758] (--) vmware(0): Direct rendering (DRI3 3D) is disabled.
[ 4470.759] (II) vmware(0): No 3D acceleration. Not setting up textured video.
[ 4470.759] (WW) vmware(0): Disabling Xv because no adaptors could be initialized.
[ 4470.760] (II) Initializing extension GLX
[ 4470.760] (II) AIGLX: Screen 0 is not DRI2 capable
[ 4470.767] (II) IGLX: Loaded and initialized swrast
[ 4470.767] (II) GLX: Initialized DRISWRAST GL provider for screen 0
Code: Select all
[ 6.532652] [TTM] Zone kernel: Available graphics memory: 1532462 KiB
[ 6.532772] vmwgfx 0000:00:02.0: [drm] FIFO at 0x00000000f0000000 size is 2048 kiB
[ 6.532871] vmwgfx 0000:00:02.0: [drm] VRAM at 0x00000000e0000000 size is 131072 kiB
[ 6.532883] vmwgfx 0000:00:02.0: [drm] Running on SVGA version 2.
[ 6.532889] vmwgfx 0000:00:02.0: [drm] DMA map mode: Caching DMA mappings.
[ 6.532945] vmwgfx 0000:00:02.0: [drm] Legacy memory limits: VRAM = 131072 kB, FIFO = 2048 kB, surface = 393216 kB
[ 6.532949] vmwgfx 0000:00:02.0: [drm] MOB limits: max mob size = 0 kB, max mob pages = 0
[ 6.532954] vmwgfx 0000:00:02.0: [drm] Capabilities: cursor, cursor bypass 2, alpha cursor, 3D, extended fifo, pitchlock, irq mask, gmr, traces, gmr2, screen object 2,
[ 6.532958] vmwgfx 0000:00:02.0: [drm] Max GMR ids is 8192
[ 6.532961] vmwgfx 0000:00:02.0: [drm] Max number of GMR pages is 1048576
[ 6.532964] vmwgfx 0000:00:02.0: [drm] Maximum display memory size is 131072 kiB
[ 6.535800] vmwgfx 0000:00:02.0: [drm] Screen Object display unit initialized
[ 6.536255] vmwgfx 0000:00:02.0: [drm] Fifo max 0x00200000 min 0x00001000 cap 0x00000355
[ 6.536268] vmwgfx 0000:00:02.0: [drm] Available shader model: Legacy.
[ 6.536274] [drm:vmw_host_printf [vmwgfx]] *ERROR* Failed to send host log message.
[ 6.567618] fbcon: svgadrmfb (fb0) is primary device
[ 6.568525] Console: switching to colour frame buffer device 100x37
[ 6.570094] [drm] Initialized vmwgfx 2.19.0 20210722 for 0000:00:02.0 on minor 0
[ 11.159773] 11:46:40.714613 main VBoxService 6.1.36_Gentoo r152435 (verbosity: 0) linux.amd64 (Aug 6 2022 06:08:05) release log
11:46:
[ 11.160247] 11:46:40.715991 main OS Product: Linux
[ 11.161028] 11:46:40.716421 main OS Release: 5.15.52-gentoo
[ 11.162422] 11:46:40.717263 main OS Version: #8 SMP Wed Jul 27 10:43:34 -03 2022
[ 11.165050] 11:46:40.718756 main Executable: /usr/sbin/vboxguest-service
11:46:40.718763 main Process ID: 1771
11:46:40.718769 main
[ 11.172993] 11:46:40.727773 main 6.1.36_Gentoo r152435 started. Verbose level = 0
[ 11.176114] 11:46:40.730819 main vbglR3GuestCtrlDetectPeekGetCancelSupport: Supported (#1)
[ 11.202685] vboxsf: Unknown parameter 'tag'
[ 11.205875] 11:46:40.761189 automount vbsvcAutomounterMountIt: Running outdated vboxsf module without support for the 'tag' option?
[ 11.206677] 11:46:40.762085 automount vbsvcAutomounterMountIt: Successfully mounted 'vbox-shared' on '/mnt/vbox-shared'
[ 23.127425] Service: Shared Clipboard
[ 23.135482] Service: Host Version Check
[ 23.157282] Service: Seamless
[ 23.163432] Service: Drag and Drop (DnD)
[ 23.167109] Service: Display SVGA X11
[ 23.177204] Proxy window=8388609, root window=1335 ...
[ 23.177400] Started
[ 23.177611] 6.1.36_Gentoor152435
The research
I have searched through the user manual, read through chapters 3.6.1. Screen Tab, 4.5.1. Hardware 3D Acceleration (OpenGL and Direct3D 8/9) and 9.3.2. Guest Graphics and Mouse Driver Setup in Depth; as well as the gentoo wiki entry on Virtualbox
From reading that I gathered that I would need to:
- use VMSVGA as my graphics controller and enable 3d acceleration in the screen tab of the virtual machine settings
- install the guest additions (from the gentoo native package manager, portage)
- add the virtualbox-guest-additions and dbus service to the default runlevel
- have support for virtualbox and it's modules in the kernel
- add my user to the video, vboxguest and vboxsf groups
- have the VBoxClient program running as a client in the X server (added VBoxClient-all as a line in my xinitrc, which makes it so the X server doesn't run the first time, but from the second attempt onwards works)
- build and use the vmware driver for X and MESA since I'm using VMSVGA
- maybe use a custom xorg.conf as provided in the advanced topics of the user manual (this did not work at all, the X server wouldn't start)
And so, I started searching for virtualbox hardware acceleration issues in this and other forums, and tried many different things listed as solutions to them.
One of the first things I found out for guest-additions not working was the guest additions version number not matching the Host system's virtualbox version number, so I checked and saw that they didn't, the stable version of the virtualbox-guest-additions in the gentoo repo is 6.1.34.
I installed the unstable version which was 6.1.36, but nothing changed other than the versions now match.
Another reason for hardware acceleration not working I found was not giving the guest system enough video memory.
After changing it from 16mb to 128mb hardware acceleration still didn't work.
On that same post (can't post link because I'm a new user), another reason for non-working hardware acceleration was giving only 1 CPU to the guest system.
This should not be the issue since I gave it 3.
A different post said that distribution repository installed guest-additions were known not to work, and that the ones provided in the .iso should be used instead
I uninstalled the package provided by my distribution, mounted the virtualbox provided .iso and tried to install them, which seemed to be succesful but made it so the window size was warped to a smaller size and now the X server wouldn't even start, so I decided to uninstall them and keep using the ones provided by the portage package manager since those at least didn't cause further issues and actually work (besides the hardware acceleration part)
I lost track of where I even read this, but someone said a workaround was setting "nomodeset" on the kernel commandline.
That did not work at all, warped the virtualbox window size and made it so the X server wouldn't start, same as the previous method.
The next reason for non-working hardware acceleration I found was OpenGL symlinks being wrong, but I checked and they point to the right places as stated by the articles that go into this issue.
At this point I gave up and decided I would just ask here and see if I can get better pointers on what I should be looking for or workarounds I haven't tried.
The request
Please help me figure out where the issue is on my setup, it could be lack of corret drivers, lack of support for my host system, my hardware not being good enough, my configuration being wrong or some other thing.