Ue4 on virtual ubuntu won't launch


I’ve installed a virtual ubuntu computer on my host computer. On my virtual computer I tried to install ue4 but when I run it I get this error:

cannot create opengl context check
that the drivers support opengl 4.3
(or rerun with -openg13)

My host computer has a nvidia card and the proper specs for ue4. How do I fix this problem?