News for hackers. Stuff that matters.
Re:Oracle VM VirtualBox 5.2 Is Now Available by smacktoward on Thursday October 19, 2017 @12:41PM (#15509414)
What's the current state of GPU passthrough on VirtualBox?

Currently I dual boot between Windows (games) and Linux (everything else). I would love to just single-boot into Linux as a host and then have a Windows VM for games that need it. But that's only practical if the VM has full access to the GPU, and last I heard GPU passthrough on VirtualBox was kind of hit or miss.

Re:Oracle VM VirtualBox 5.2 Is Now Available by pizza234 on Thursday October 19, 2017 @01:10PM (#15509642)
VirtualBox will likely not support it for a very long time (assuming they will ever do it), as VGA passthrough has some host requirements (configuration-wise), that I think would be too much to handle for a virtualization product.

I use QEMU and it works without any issue; to be specific, in hundreds of boots, it hung only a couple of times, which is very well within issues with windows itself rather than the platform. Also, it typically runs via a single script.

The crux is to have the correct hardware (some hardware just doesn't work well), and to use a correct software setup (most important thing: if you use a GPU for passthrough, forget about using it on the host at all).

The information around is unfortunately very scattered and often outdated.

I suggest to use those two sources:

  - https://github.com/saveriomiroddi/vga-passthrough
  - https://www.reddit.com/r/VFIO
Re:Oracle VM VirtualBox 5.2 Is Now Available by chrisper on Thursday October 19, 2017 @12:47PM (#15509455)
You can use Qemu for that. I used to do that for a while, but found it annoying. Dual boot is much better imho, especially since it barley takes any time.

When I had issues, I had no clue if it was because of my config, the game being buggy, the nvidia drivers being buggy, etc. etc.

Also having to have "two"of everything is annoying as well.

Re:Oracle VM VirtualBox 5.2 Is Now Available by pizza234 on Thursday October 19, 2017 @01:15PM (#15509682)
You don't really need "two" of everything. You can have one monitor connected to two video ports, and a single mouse and keybord, a pass them through.

QEMU itself can be run via a short script, and it only requires to be run as sudo.

You shouldn't really have issues in a general sense: with the correct setup, after a short time (having exhausted the tweaking options) one will experience if the machine is compatible with VGA passthrough, or not. In the latter case, the problem is that either the guest doesn't work at all, or that it has performance problems.

The is at least one radical advantage in having a virtualized Windows: rollbacks. When I use a Windows guest, I don't care whether I'll take malware or not, since to rollback is trivial.