Skip to content

Going to try GPU passthrough, just had a few questions

I'm upgrading my computer in the next month or so, until now it has been a Windows machine as I use it for gaming, but I love arch linux and use it on my laptop, I want to run Arch linux as my main os on this desktop as well and use gpu passthrough to a windows VM to play the games that have not been/ probably never will be ported cough ubisoft cough

My questions are how does the sound work, would I be able to just hear my Windows VM through my host like in virtual box? and how does the keyboard and mouse work, would I have to use synergy or can they just switch between them like in virtual box as well?

6 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
6 · 100% up
Kind
Text
ID
656pm7

Author

12
posts
150
comments
1
media
View profile

7 comments

You can use a dedicated sound device, use the HDMI/display port audio from the GPU, or pass it through to pulseaudio on the host(last section here)

Once set up Synergy works well, but for set up it's way easier to just have a second keyboard and mouse if you're still needing to use the host. It does not switch between the two in a window like Virtualbox, you use the graphics output from the virtual machines GPU(usually the PCIe) for the passthrough and one for the host machines GPU(the integrated GPU usually). You can do it with some on a single device, but it is a very painful experience since it is prone to breaking and is impossible on some GPUs.

Check out /r/vfio

3 points

Thanks yeah im planning on keeping my current graphic card for the host so i can get multi monitor and passing the new on through to the vm, so if i passed the sound through to pulse audio i would be able to hear the vm and host as the same time and choose the output device using the setting right?

3 points

Yeah, pulse will work the same as always, it will just be another source like any other sound producing application.

If you're going with 2 cards it's worth pointing out going with different brands (1 amd 1 nvidia) will make your life a lot easier, because then you can just blacklist the driver on the host system. Going with 2 Nvidia or 2 AMD is possible but on certain system is known to cause issues with the host wanting to initialize the second card even if it's pciid is specified as vfio.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.