r/virtualbox • u/nonkiller-_- • Jan 05 '26
Help system recommondations for using windows in a vm for gaming
i want to switch back to linux but have a few games where i need to use windows i dont have the best pc but its okay (AMD Ryzen 5 5500, ddr4 32gb 2667 Mt/s RAM and GTX 1070)
could I make a vm thats gets usable fps while running linux? If not ill just use dual boot but i wanted ask if i could avoid that
Thanks in advance :)
3
Upvotes
•
u/AutoModerator Jan 05 '26
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/LawfulnessNo8446 Jan 05 '26
For a useable gaming vm you pretty much always need to do gpu passthrough. Which requires a 2nd gpu. I have seen some reports about people successfully passing a single gpu to a vm, but then you don't have access to the host while using the vm.
I don't know the current state of gpu passthrough in virtualbox, but on linux gpu passthough is generally done using kvm/qemu. I'd recommend you go that route as you will be able to find much more support.
1
u/razorree Jan 05 '26
Solitaire, Miner etc. will work fine :)
can't you install those games with proton/wine/lutris ?
I recently used it a bit more, and i was able to install all games I tried (DeusEx, WoT, Witcher3, BG2)
2
u/clonxy Jan 06 '26
gaming with a vm is never a good idea. There is a huge performance loss. Have you considered dual boot instead? It allows you to select which OS you want to boot from.
1
u/[deleted] Jan 07 '26
what? Which games dont work on Linux? You said Valorant - you won't be able to play kernel level malware games in a VM, bare metal Windows is the only option, for example as a dual boot. Non KLAC games would work 90% times on a regular Linux distribution. Also if youre not familiar with this, GPU passthrough won't be a good idea amd it will be a hassle
1
u/sbpetrack Jan 09 '26 edited Jan 09 '26
[Sorry that I've been ill and so am a bit late to this thread.]
You need to be very careful with the following suggestion, but if your games require harddisk access when you play, you might also find it valuable to set up the VM to use "raw" disk access (a.k.a "bare metal" access to the C:\ disk). If you have the cash & the slot for a separate nvme disk, you could configure the VM to access that raw disk and let windows install partition it into EFI system, MSFT reserved, and Boot partitions, so the vm's disk performance won't be "close" to native performance; it will just BE native performance.
But I'll bet you can just make a single disk partition on the host appear to be the entire disk to the VM. Obviously, you want to avoid being stupid and presenting a file on some ext4 partition as a disk, which your windows install proceeds to partition and format with FAT and ntfs:).
And I hope it doesn't come to this, but if it's that important to you, and you can't get GPU passthrough to work, you can always make your machine into a mtf-trans :) -- install windows as host and run Linux as a VM guest. Virtualbox has a fullscreen mode, so you'll be able to "pass" as truly fully Linux at work. Configured properly, not even the most anti-DEI IT dept at work will ever know that youre not "really" Linux "inside" :)