To use 3D acceleration in virtual machines, the host machine should be capable of supporting 3D. It can be achieved by using a 3D capable graphic processing unit (GPU) on the host.
This issue occurs if the there is no hardware GPU on the host machine or if the graphic drivers are not installed.