I recently noticed that I haven’t used my Kubuntu PC in a while during which it gathered dust. so file, VirtualBox works as a charm with 3D enabled and proprietary nVidia drivers.I switch between Windows and Flavors of Ubuntu a lot. I think the latest VirtualBox version now is 5.1.12, so I am going to recompile that so I can update my PC. The bad thing is that as soon as a new version of VirtualBox comes out, VirtualBox also has to be recompiled to match the new version. No need to uninstall the “original” VirtualBox and install the self-compiled one.įor version 5.1.8 (64 bit), you may fetch a copy of the VBoxOGLrenderspu.so file from the link in the article. After recompilation is done, it is actually possible to just replace a single freshly compiled file, VBoxOGLrenderspu.so, which is located in /usr/lib/virtualbox/. The only workaround is to change (comment out actually) a single line in VirtualBox source and recompile it. picture to be shown) before rendering is completed by the client, hence the flickering. With nVidia drivers on the host, a race condition happens, causing buffers to be swapped (i.e. Well, as this is a VirtualBox issue, not a guest issue per se, there are no workarounds in the guest OS, excluding disabling 3D acceleration at all. Or, you might wish to learn it yourself (note: this requires some knowledge of command line and Linux/Debian package management) by reading the official building guide here.Īpdevlat techBlog Problems & Solutions 65 Comments Should you need me to recompile VirtualBox with this patch for any other VirtualBox version that might come out later, just let me know. Then just enable 3D acceleration on your virtual machine and launch it, enjoying flicker-free graphics. Sudo mv /usr/lib/virtualbox/VBoxOGLrenderspu.so VBoxOGLrenderspu.so.originalĬp VBoxOGLrenderspu.so /usr/lib/virtualbox/ Then, assuming you saved it in your Downloads folder, execute these commands in terminal: Should you happen to run VirtualBox 5.1.8 (STRICTLY THAT VERSION) on an 圆4 CPU (that is, basically, 64-bit VirtualBox version 5.1.8) running on Ubuntu, you may download the patched library in its binary, ready-to-use form here. □īasically, you need one file from the patched and recompiled VirtualBox, namely VBoxOGLrenderspu.so. I went through the hassle of doing that oxymoron thing of installing a VirtualBox VM on my VirtualBox to recompile a patched VirtualBox so I could patch my VirtualBox installation and use VirtualBox with 3D support and no flickering on an nVidia graphics card with the proprietary driver. Seriously, who needs 3D acceleration when it’s close to 0 (although I hope the situation will improve over time)?Ĭ) Compile VirtualBox from source by applying the patch that can be found here. This means that those affected by the problem have several options left:Ī) Use a non-nVidia card, sending nVidia folks where Linus Torvalds once sent them ( in this video).ī) Use the non-proprietary, free driver called nouveau with all the performance hit this implicates. Unfortunately, the VirtualBox folks refused to patch this, as this breaks some functionality for an unnamed “paying customer” of theirs. Basically, it’s a bug report with some folks offering a solution which involves changing a single line in the OpenGL rendering code. If you use an nVidia graphics card on your Ubuntu machine and wish to use a Windows (or, as far as I have read, basically any) virtual machine on VirtualBox for tasks that Ubuntu is not (yet) good enough and wish to enable the “experimental” 3D acceleration support, you will be unpleasantly surprised to find out that this 3D support is virtually unusable, flickering and blinking at will.Īs it turns out, this problem was noticed several years ago in this forum. Seems that VirtualBox has a strange problem. The patched library should be installed in the /usr/lib/virtualbox/ directory, as explained below. The patches themselves are moved to a separate page: Also, for 64 bit Linux, a patched library file is provided which can be installed “on top” of an existing VirtualBox installation. TL DR: The goal of this article is to explain why VirtualBox machines on Linux host flicker if your host has an nVidia video card and the VM has 3D support enabled. How to “cure” screen flickering in VirtualBox on Ubuntu with a Windows 10 guest and 3D support enabled
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |