host inf:
machine: MacBook Pro 16-inch, 2019
os: macos 12.2.1
processor: i7
graphics: amd Radeon pro 5500m 8 gb
gest os:
ubuntu 20.04:
when I enable 3d acceleration, check with glxinfo | grep "OpenGL version", it displays OpenGL 2.1
when I disable 3d acceleration, check with glxinfo | grep "OpenGL version", it displays OpenGL 3.1
open-vm-tools installed
can anyone help with it? many thanks!
VMware fusion version 12.2.3
Hi,
I think your grep is too restrictive as it doesn't show context like what renderer is being used.
Here's an output of one of my throw away debian VM's (haven't used Ubuntu in a long time)
First before enabling 3D:
ploppy@vmplayer-test:~$ glxinfo | grep -i opengl
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 7.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.3.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.1 Mesa 18.3.6
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
ploppy@vmplayer-test:~$ cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Then I shut down the VM and enabled 3D and ran the test again:
ploppy@vmplayer-test:~$ glxinfo | grep -i opengl
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: SVGA3D; build: RELEASE; LLVM;
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.3.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.3 (Compatibility Profile) Mesa 18.3.6
OpenGL shading language version string: 3.30
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
As you can see, first before the 3D enablement we used the llvmpipe software renderer.
After it was enabled the renderer becomes SVGA3D, which is a (virtual) hardware renderer.
edit: Note that one possible reason that your VM is showing a lower openGL version is if your virtual hardware is not set to the latest.
Make sure it is set to the latest virtual hardware under settings -> compatiblity
--
Wil
My vm fusion hardware verision is 19.
Before enabling 3D acceleration, grep gives the below information:
zzj@ubuntu:~/Desktop$ glxinfo | grep -i opengl
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 10.0.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 20.0.8
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.1 Mesa 20.0.8
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:
After enabling 3D acceleration, grep gives the below information
zzj@ubuntu:~/Desktop$ glxinfo | grep -i opengl
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: SVGA3D; build: RELEASE; LLVM;
OpenGL version string: 2.1 Mesa 20.0.8
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 20.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
Guest OS infor:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
zzj@ubuntu:~/Desktop$ uname -r
5.11.0-37-generic
It seems that the rendering has adopted SVGA3D, but the OpenGL is downgraded from 3.1 to 2.1.
For some programming purposes, I need to use OpenGL 4.1 or later. Any suggestion? Many thanks.
Hi,
I take it you already installed open-vm-tools-desktop ?
If not run:
sudo apt-get install open-vm-tools-desktop
and reboot the VM, then try again.
Also make sure that your VM's compatibility is set to the latest version (can only change that with the VM shut down)
--
Wil
I confirm that:
1. open-vm-tools-desktop has been installed.
zzj@ubuntu:~/Desktop$ apt show open-vm-tools-desktop
Package: open-vm-tools-desktop
Version: 2:11.3.0-2ubuntu0~ubuntu20.04.2
Priority: extra
Section: universe/admin
Source: open-vm-tools
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Bernd Zeimetz <bzed@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 581 kB
Depends: libatkmm-1.6-1v5 (>= 2.24.0), libc6 (>= 2.14), libcairomm-1.0-1v5 (>= 1.12.0), libdrm2 (>= 2.4.3), libgcc-s1 (>= 3.0), libglib2.0-0 (>= 2.16.0), libglibmm-2.4-1v5 (>= 2.54.0), libgtk-3-0 (>= 3.19.12), libgtkmm-3.0-1v5 (>= 3.24.0), libice6 (>= 1:1.0.0), libsigc++-2.0-0v5 (>= 2.8.0), libsm6, libstdc++6 (>= 5.2), libudev1 (>= 183), libx11-6 (>= 2:1.4.99.1), libxext6, libxi6, libxinerama1, libxrandr2 (>= 2:1.2.0), libxtst6, open-vm-tools (= 2:11.3.0-2ubuntu0~ubuntu20.04.2), fuse, kmod
Recommends: xauth, xserver-xorg-video-vmware
Suggests: xdg-utils
Breaks: open-vm-tools (<< 2:10.3.5-2~)
Replaces: open-vm-tools (<< 2:10.3.5-2~)
Homepage: https://github.com/vmware/open-vm-tools
Modaliases: vmwgfx(pci:v000015ADd00000405sv*sd*bc*sc*i*)
Download-Size: 144 kB
APT-Manual-Installed: yes
APT-Sources: http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
Description: Open VMware Tools for virtual machines hosted on VMware (GUI)
The Open Virtual Machine Tools (open-vm-tools) project is an open source
implementation of VMware Tools. It is a suite of virtualization utilities and
drivers to improve the functionality, user experience and administration of
VMware virtual machines.
.
This package contains the user-space programs and libraries that are essential
for improved user experience of VMware virtual machines.
N: There is 1 additional record. Please use the '-a' switch to see it
2. And my hardware compatibility is 19, which is the latest version.
Hi,
OK.. I see that your model macbook has dual GPU's there's also a intel UHD graphics 630 onboard.
It is possible that VMware Fusion is using the Intel GPU instead of your discrete GPU.
There's this post that suggests how-to switch using undocumented features in the .vmx file.
https://communities.vmware.com/message/2673322#2673322
But.. it's for DirectX and Workstation. You're using Linux on Fusion.
On VMware Fusion you have in the settings for the VM's display on dual GPU hosts an option "Battery Life" where you can suggest if it should use "High Performance" or not.
For your issue you should set that to "Always use High Performance" if not already set.
--
Wil
Yes, I did check the option of "always use high-performance graphics" as shown in the below figure.
Then I'm out of tips, but there are others at this forum that might be able to help.
For them to be able to help you would need to attach log files to your reply here.
These log files can be found in the VM's bundle (right click the VM and select "Show package contents")
The log files needed are: vmware.log and mkssandbox.log
--
Wil
Sure, I will keep trying.
Many thanks for your patience.
I have a 2019 16” MacBook Pro (Intel UHD 630 and AMD Radeon Pro 5500M 4GB) running Monterey 12.3.1 (21E258) with Fusion Pro 12.2.3. Whether using UHD 630 or the Radeon Pro, it shows OpenGL 4.1 support within the Ubuntu VM. I assigned only 768MB for video memory at the VM settings.
This is the output of glxinfo, uname -r, and VMware tools version
(base) me@ubuntu-20-vm:~$ glxinfo | grep -i opengl
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: SVGA3D; build: RELEASE; LLVM;
OpenGL core profile version string: 4.1 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version tring: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.1 (Compatibility Profile) Mesa 21.2.6
OpenGL shading language version string: 4.10
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
(base) me@ubuntu-20-vm:~$ uname -r
5.13.0-41-generic
(base) me@ubuntu-20-vm:~$ vmware-toolbox-cmd -v
11.3.0.29534 (build-18090558)
You might want to check mksSandbox.log to see if anything went wrong when MetalRenderer was being started. Another difference I see is the Mesa version. You could try reducing the shared video memory from 8GB to something lower.
As for choosing between the Intel or Radeon GPU in the vmx configuration file, for Fusion Metal, enter the device name as seen from the mksSandbox.log
<timestamp> In(05) mks Metal Device name: AMD Radeon Pro 5500M
mks.mtl.forceDevice = "Intel(R) UHD Graphics 630"
or
mks.mtl.forceDevice = "AMD Radeon Pro 5500M"
You can force to use discrete GPU all the time instead of choosing by device name
mks.forceDiscreteGPU = "TRUE"
But I suppose the “always use high performance graphics” does the same thing.
Do you still have this issue now?
