GL version 2.1 with the gpu_shared4 extensions is not supported on Ubuntu 18.04.5 LTS as guest VM

I am trying to run a python (3.6.9) script with VTK 7.1.1 on Ubuntu 18.04.5 LTS as guest VM using virtual box(6.1 on Win10). But I am receiving the following error:

In /build/vtk7‑w4DzBd/vtk7𔂱.1.1+dfsg1/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 640
vtkXOpenGLRenderWindow (0x2a56080): GL version 2.1 with the gpu_shader4 extension is not supported 
by your graphics driver but is required for the new OpenGL rendering backend. Please update your 
OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure 
your driver in Mesa supports OpenGL 3.2.

When I run the command

glxinfo | grep "OpenGL version"

it returns:

OpenGL version string: 2.1 Mesa 20.0.0-devel - padoka PPA

If I understand corretly the visualization on Ubuntu is done by Mesa 20.0.0-devel (required is 10.6.5 - this is OK) but the installed Mesa uses OpenGL 2.1 and not newer (required 3.2 - this is not OK). I have already installed the latest version of Mesa. Any suggestion how to solve this?


$ apt-cache policy mesa-utils
mesa-utils: 
Installed: 8.4.0-1
Candidate: 8.4.0-1
Version table:
 *** 8.4.0-1 500 
500 si.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 
100 /var/lib/dpkg/status 

The real solution it to disable 3D acceleration in the VirtualBox machine settings.