Running games on a VM is usually problematic, because of how they work and how the hypervisor separates the guest and host systems., but there is a technology to get it to work called PCI passthrough.

I have looked it up on the virtualbox website and they do support it as a seperate extension.

Before you even start you need to find out if your computer will support passthrough You first need to check that your motherboard has an IOMMU (Input Output Memory Managment Unit) if not then it will not work, after that you need to enable IOMMU in the BIOS, again if there is no option it will not work. If you do support IOMMU then it might work.

https://www.virtualbox.org/manual/ch...pcipassthrough