VMware Communities
pjbraakman
Contributor
Contributor

VMWare Workstation graphics accelleration for Matlab

When I run Matlab 2022a in VMWare Workstation 16.1.2 with Accellerate 3D Graphics switched on, I get no hardware accellerated OpenGL in Matlab:

>> opengl info
Version: '1.1.0'
Vendor: 'Microsoft Corporation'
Renderer: 'GDI Generic'
MaxTextureSize: 1024
Visual: 'Visual 0x9e, (RGB 24 bits (8 8 8), Z depth 16 bits, Software, Single buffer, Antialias 0 samples)'
Software: 'true'
HardwareSupportLevel: 'none (known graphics driver issues)'
SupportsGraphicsSmoothing: 0
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
Extensions: {3×1 cell}
MaxFrameBufferSize: 0

On the host system I get:

>> opengl info
Version: '4.6.0 NVIDIA 443.32'
Vendor: 'NVIDIA Corporation'
Renderer: 'Quadro P2000/PCIe/SSE2'
RendererDriverVersion: '26.21.14.4332'
RendererDriverReleaseDate: '05-Jun-2020'
MaxTextureSize: 32768
Visual: 'Visual 0x09, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 8 samples)'
Software: 'false'
HardwareSupportLevel: 'full'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
Extensions: {392×1 cell}
MaxFrameBufferSize: 32768

How can I get a better virtualisation of my graphics card in the VM?

0 Kudos
6 Replies
wila
Immortal
Immortal

Hi,

It would help if you also attach the vmware.log file so that people can verify your VM and host configuration.

You also don't mention what version of Windows you are running in the guest.

A few things..

- OpenGL depends on your VM using one of the more recent virtual hardware versions. (menu VM -> Manage -> Change Hardware compatibility)

- Did you enable 3D on the guest?

- VMware tools should be installed and up to date

- if you have both integrated and dedicated GPU's in your host, it is possible that VMware Workstation is selecting the wrong -less powerful- GPU for your VM.

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
0 Kudos
333fps
Contributor
Contributor

Hi,

Make sure you have you have VMware tools installed on your guest and harware accleration enable in WM worksation.

I experienced the same issue lately and I had to add th following line in my .vmx file:

virtualHW.version = "18" (make sure the line doesn't already exists).

I spent weeks on that problem... and this allowed OpenGL 4.1 🙂

 

See https://kb.vmware.com/s/article/1003746

 

0 Kudos
pjbraakman
Contributor
Contributor

Hi Wil, many thanks for your reply.

I am not free to attach the full log, but I will try to show possibly relevant lines.

The host Windows version:

2022-05-17T17:31:20.607+02:00| vmx| I005: Host is Windows 10 Enterprise, 64-bit (Build 19042.1645)

VM hardware compatibility is set to Workstation 16, 3D graphis is ON, VMTools are up to date. About the graphics adapters I see some lines in the log file like these:

2022-05-17T17:31:22.012+02:00| mks| W003: DXGIPresentation: Using device unknown; adapter `NVIDIA Quadro P2000`
2022-05-17T17:31:22.012+02:00| mks| W003: DXGIPresentation: Enumerating adapter 1
2022-05-17T17:31:22.012+02:00| mks| I005: DXGIPresentation: `Intel(R) UHD Graphics 630` vendor=0x8086 device=0x3e9b revision=0
2022-05-17T17:31:22.012+02:00| mks| I005: DXGIPresentation: video=128MB system=0MB shared=16235MB
2022-05-17T17:31:22.012+02:00| mks| I005: DXGIPresentation: LOCAL budget 15467M usage 0M avail 7861M res 0M
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: NON-LOCAL budget 0M usage 0M avail 0M res 0M
2022-05-17T17:31:22.013+02:00| mks| W003: DXGIPresentation: Enumerating adapter 2
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: `Intel(R) UHD Graphics 630` vendor=0x8086 device=0x3e9b revision=0
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: video=128MB system=0MB shared=16235MB
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: LOCAL budget 15467M usage 0M avail 7861M res 0M
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: NON-LOCAL budget 0M usage 0M avail 0M res 0M
2022-05-17T17:31:22.013+02:00| mks| W003: DXGIPresentation: Enumerating adapter 3
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: `Microsoft Basic Render Driver` vendor=0x1414 device=0x008c revision=0
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: video=0MB system=0MB shared=16235MB
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: LOCAL budget 15467M usage 0M avail 7861M res 0M
2022-05-17T17:31:22.013+02:00| mks| I005: DXGIPresentation: NON-LOCAL budget 0M usage 0M avail 0M res 0M
2022-05-17T17:31:22.015+02:00| mks| I005: DXGIPresentation: NVIDIA driver version 443.32 (branch r440_00)
2022-05-17T17:31:22.017+02:00| mks| I005: MKS-HWinMux: Started DXGI presentation backend.

Hope you can give me some more advice.

Regards, Paul.

 

0 Kudos
pjbraakman
Contributor
Contributor

Thanks for your reply. After I upgraded the VM to Workstation 16 I had the virtualHW.version=18 already in the .vmx file. Didn't help, unfortunately.

Regards, Paul.

0 Kudos
continuum
Immortal
Immortal

> but I will try to show possibly relevant lines.
Thanks - please show another set of possibly relevant lines.
Like in roulette betting on single numbers will give you the highest rate in case you win.

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
bluefirestorm
Champion
Champion

You can check the OpenGL version/capability on the VM.

For Linux VM from Terminal

glxinfo | grep -i version

For Windows VM, you can use an app like OpenGL Extensions Viewer.

https://www.realtech-vr.com/home/glview

If it is not showing OpenGL 4.1, you might want to attach the mksSandbox.log/vmware.log as that would answer a lot of questions like how much video RAM is assigned and so on. You could try reducing from 8GB to something smaller such as 1GB.

You could try updating the Nvidia driver on the host machine as it is almost 2 years old.

https://www.nvidia.com/Download/index.aspx?lang=en-us

https://www.nvidia.com/Download/Find.aspx

If the VM shows support for OpenGL 4.1, the issue probably lies with Matlab. It looks like MathWorks is advising not to use OpenGL anymore as it will be removed in a future release.

https://www.mathworks.com/help/matlab/ref/opengl.html

 

0 Kudos