Graphics problem with Linux Mint as host and guest

Discussions about using Linux guests in VirtualBox.
mchelik
Posts: 14
Joined: 25. Apr 2017, 11:06

Graphics problem with Linux Mint as host and guest

Post by mchelik »

Hi,
I have Linux Min 18.1 and install virtualbox with apt-get and then I installed Linux Mint 18.1 as guest in virtualbox. No matter what I do people say on the internet I couldn't make its graphics work properly. When I enable 3D acceleration I get black menus and windows, when I disable it I get software rendering mode.

Can someone please help me on this? :?

Code: Select all

OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.0.6
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 12.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
Attachments
Logs.zip
(108.03 KiB) Downloaded 122 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Graphics problem with Linux Mint as host and guest

Post by mpack »

There's no need to provide 4 copies of the log - one is enough.

You are using the Ubuntu fork - support for which is available on the Ubuntu forums. If you want support on the VirtualBox forums you need to be using VirtualBox, not someone else's spinoff.
mchelik
Posts: 14
Joined: 25. Apr 2017, 11:06

Re: Graphics problem with Linux Mint as host and guest

Post by mchelik »

Thank you for your reply.
Sorry, you are right. So since there is no release for Linux Mint, which one should I install? Ubuntu/Debian?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Graphics problem with Linux Mint as host and guest

Post by mpack »

Ubuntu I'd think. Don't you know which distro your Mint is based on? As I understand it the installation specifically tells you if it is Ubuntu or Debian based.
mchelik
Posts: 14
Joined: 25. Apr 2017, 11:06

Re: Graphics problem with Linux Mint as host and guest

Post by mchelik »

I did apt purge virtualbox* on host and guest. Installed Virtualbox Xenial from Oracle since Mint 18.1 is based on Ubuntu 16.04. Installed guest addons too. It's the same: When 3D acceleration is enabled Qt appers black (also menus and some windows), when it's disabled it uses software rendering.

Do you have any idea about this situation?
Thank you

Code: Select all

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:
Attachments
Logs.zip
(30.34 KiB) Downloaded 114 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Graphics problem with Linux Mint as host and guest

Post by Perryg »

Couple of things.
1) Mint comes with its own pre-installed version of the guest additions supposedly for the users convenience. This does not always work properly and causes issues. You need to purge the current install of the guest additions and install the ones from VirtualBox that matches your version ( select insert from the devices menu at the top title bar then install from terminal).

2) You need to make sure that the host has the proper drivers for your GPU. Normally the open sourced drivers are installed by default so look in the driver manager and make sure you have the newest one installed.
mchelik
Posts: 14
Joined: 25. Apr 2017, 11:06

Re: Graphics problem with Linux Mint as host and guest

Post by mchelik »

1- I did removed the Mint builds on both host and guest. I installed latest versions of Oracle.
2- I am using NVIDIA's driver and it's updated.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Graphics problem with Linux Mint as host and guest

Post by Perryg »

Code: Select all

00:00:15.326482 VMMDev: Guest Additions information report: Version 5.0.36 r114008 '5.0.36_Ubuntu'
According to your latest log file you may think you did but it is still there.
mchelik
Posts: 14
Joined: 25. Apr 2017, 11:06

Re: Graphics problem with Linux Mint as host and guest

Post by mchelik »

I select "Insert Addons Image" from Virtualbox menu. I think it's downloaded from previous build. How can I force Virtualbox to download guest image again? How can I install latest version?
Thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Graphics problem with Linux Mint as host and guest

Post by Perryg »

Again according to your last log file you have everything you need to accomplish this.

Code: Select all

VirtualBox VM 5.1.20 r114628 linux.amd64 (Apr 18 2017 10:30:49) release log
You need to search the guest and remove the guest additions that are already installed since it is from a fork. Using the device tab and clicking on insert only mounts the guest additions. You then need to open a terminal and go to the location ( the virtual CD/DVD ) and run the install with elevated permission. If you watch and read and not just click you should see if they fork additions are really gone. If they are not you would receive the message telling you you should not install until you first remove the current installed additions.
mchelik
Posts: 14
Joined: 25. Apr 2017, 11:06

Re: Graphics problem with Linux Mint as host and guest

Post by mchelik »

When I run "dpkg -l | grep virtualbox*" in guest, I get nothing which means I uninstalled everything related to Virtualbox. Then I downloaded Guest Additions 5.1.20 and run autorun in it. Installer seems to be installed but it doesn't get installed (it gets admin privileges).

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.20 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.20 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Starting the VirtualBox Guest Additions.
Press Return to close this window...
When I restart and check packages, there is no Virtualbox related package. Why it doesn't gets installed? Am I missing something?
Thank you all for your replies
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Graphics problem with Linux Mint as host and guest

Post by Perryg »

I will repeat the steps and high light the part you missed.
You need to search the guest and remove the guest additions that are already installed since it is from a fork. Using the device tab and clicking on insert only mounts the guest additions. You then need to open a terminal and go to the location ( the virtual CD/DVD ) and run the install with elevated permission. If you watch and read and not just click you should see if they fork additions are really gone. If they are not you would receive the message telling you you should not install until you first remove the current installed additions.
The elevated permissions mean to use sudo at the beginning of the command.
mchelik
Posts: 14
Joined: 25. Apr 2017, 11:06

Re: Graphics problem with Linux Mint as host and guest

Post by mchelik »

Sir as I told you I removed all previous binaries with sudo apt purge virtaulbox* and I can confirm it with dpkg -l | grep virtualbox. After removing old binaries I rebooted. Then from menu Devices -> Insert Guest Additions Image I go to the loaded image and run linux installation with sudo. It starts installation and finished without error but when I run dpkg -l | grep virtualbox I get nothing.
By the way, when I go to Linux Mint Settings -> Driver Manager, I see the attached picture.
I did everything you said. Please help me on this sir.
Thank you
Attachments
Drivers.jpg
Drivers.jpg (33.41 KiB) Viewed 11741 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Graphics problem with Linux Mint as host and guest

Post by Perryg »

Run the following in the guest terminal and see if it shows VBox modules running.

Code: Select all

ps awx | grep V 
Also post the following from the guest.
Click the machine tab at the top on the title bar then session information and take a screen shot so we can see the version of the guest additions it says is installed.
session-information.png
session-information.png (58.55 KiB) Viewed 11732 times
mchelik
Posts: 14
Joined: 25. Apr 2017, 11:06

Re: Graphics problem with Linux Mint as host and guest

Post by mchelik »

I removed everything with apt purge, killed all VBoxClient processes with sudo killall, then inserted Addons Image and installed it. After reboot, I run this command:

Code: Select all

vm@test-pc ~ $ /usr/bin/VBoxClient --version
5.1.20r114628
It seems to be installed but graphics driver is not selected. Because I cat see the older version of graphics driver as attached before in Linux Mint Driver Manager. How can I set Virtualbox driver to be used as graphics driver?
Thank you
Attachments
RuntimeInformation.jpg
RuntimeInformation.jpg (31.07 KiB) Viewed 11728 times
Post Reply