[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

GPU Passthrough

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 64
Thread images: 10

File: img1.jpg (45KB, 549x960px) Image search: [Google]
img1.jpg
45KB, 549x960px
So I have been wanting to move onto Linux for a while now, but having a GTX 980 I feel it would be kind of a waste, as Linux does not really need such capabilities. There's also the thing that I don't want to lose muh vidya, and I feel dual-booting might be too much of a hassle.

Some time back I came across some info on GPU passthrough for VMs, and as I understand it, it is possible to run a VM on Linux with passthrough with very little performance loss. Since I have a multimonitor setup, I have been thinking of getting a smaller card that can drive 3 monitors for running Linux, and leave the 980 disabled for when I need to pass it through to a VM. Though I have never done something like this before so I don't know if its even viable.

Has anyone tried doing something like this in the past? Is it really as straightforward as it seems, or is it more hassle than dualbooting?
>>
If you try dual-booting, but find yourself not booting to windows to game because you need the linux side to finish some long duration task, then the VM/passthrough route is worth it. Otherwise it's too much of a pain, just easier to reboot.
>>
Sell it and get something amd
>>
I have a question that's somewhat related.
If the GPU is disabled for Linux in order to use for GPU Passthrough, can I still use the ports on the GPU for the monitors?
>>
>>56166348
No
>>
>>56166456
My two monitors are Display Port. Any 1151 motherboards that actually have 2 display ports on them?
>>
>>56166494

I don't think I have ever seen a mobo with two ports for the integrated gpu.
>>
>>56165750

If you do go through the pass through route, just remember nvidia gimps using the card. Wendell from Tek Syndicate goes into the shenanigans but I can't remember the episode. You can get it to work, I think, but it's not as easy as using an AMD - which has shitty drivers
>>
>>56165750
Is that a confirmed trap of am I safe?
>>
>>56166551

afaik confirmed trap from /k/
>>
File: 13-132-566-Z02.jpg (28KB, 640x480px)
13-132-566-Z02.jpg
28KB, 640x480px
>>56166542
>>
>>56166546

So nVidia cards lose more performance when passed through? I thought GPU passthrough allowed for giving the entire card to the guest machine and it wouldn't even be able to tell.
>>
>>56166610

Not performance, no. Nvidia detects that the GPU is being "passed through" so to speak and refuses to show any display. I cannot remember which episode on Tek Syndicate channel but I think it was a Wendell only episode in which he goes into the subject of doing exactly that which you want to do yourself.
>>
File: PREASE.jpg (15KB, 316x298px) Image search: [Google]
PREASE.jpg
15KB, 316x298px
>>56166610

This might be the episode, it might not: https://www.youtube.com/watch?v=16dbAUrtMX4

It was a while ago, I might have been high, I could be mistaken, please no hate.
>>
>>56166669

Seems to be just what I want to do. I will take a look. Thanks!
>>
>>56165750
Use 3D acceleration, instead. Doing passthrough with a GPU in this manner makes it pretty clunky.
>>
>>56166807

But would that work good for more demanding games? Like, playing a current year game on ultra settings, just to cite an example.
>>
>>56166956
At what resolution? IIRC VRAM is limited to 2GB, so if you're gaming past 1080p you will probably have to turn down texture quality.

I just suggested it because I looked into the same things you did and found that using the 3D acceleration in VMware Workstation worked better for me than passing through a GPU.
>>
>>56166542
You don't get out much do ya? Even dog shit hp crap boxes usually have two video outs.
>>
File: image_2.gif (2MB, 300x300px) Image search: [Google]
image_2.gif
2MB, 300x300px
>>56166546
Is this really true? I see it mentioned a lot, but my GPU passthrough setup with a gtx 960 works just as fine as it does on bare-metal. Does it not apply to the 960?
>>
>>56165750
>Has anyone tried doing something like this in the past? Is it really as straightforward as it seems, or is it more hassle than dualbooting?
I do GPU pass through with my dual GTX 980s in ESXi 6 U2

>>56166546
>>56166641
>just remember nvidia gimps using the card.
It is easy to enable passthru and still have the drivers work. Add the following to your VMX file and the VM wont realize it is virtualized

hypervisor.cpuid.v0 = "FALSE"

If you need SLI to work, use DifferentSLIAuto 1.5

>>56166610
>So nVidia cards lose more performance when passed through?
No

>>56166956
Do listen to the retard recommending SVGA. Use ESXi and add the setting I mention above and you'll be fine
>>
>>56167053

It was an Nvidia driver parameter or something. It's old news.
>>
>>56167053
It's true in ESXi, not anything else. It's a driver thing.
>>
>>56167065
why esxi over unix + kvm?
>>
>>56167065
pic 2

>>56167053
>I see it mentioned a lot, but my GPU passthrough setup with a gtx 960 works just as fine as it does on bare-metal.
What hypervisor?
>>
>>56167065
Don't listen to this moron suggesting playing games in a VM over, at best, your GbE connection when 3D acceleration can do this:
https://www.youtube.com/watch?v=EnaUPg6DGqg

Not to mention you require an entirely separate host to use ESXi. Stop spamming your stupid bullshit, dude.
>>
File: IMG_20160819_110514.jpg (1MB, 2448x2448px) Image search: [Google]
IMG_20160819_110514.jpg
1MB, 2448x2448px
>>56167106
Because it isnt shit?

>>56167109
>GbE connection
I have dual 10GbE fiber poorfag

>Not to mention you require an entirely separate host to use ESXi.
This is absolutely retarded. You run ESXi and pass through the USB controllers and GPUs and it acts just like a windows desktop, plus you can run all your other VMs in the background.
>>
Not op, but could you use integrated graphics to run the displays, and your dedicated card for gaymes?
>>
>>56167128
>I have dual 10GbE fiber poorfag
Are OP, retard? Fuck off.
>This is absolutely retarded. You run ESXi and pass through the USB controllers and GPUs and it acts just like a windows desktop, plus you can run all your other VMs in the background.
And now in order to control it you need the thick client or rely on the premature web client.

Shit solution. Why are you pushing this autism? ESXi is literally not for your workstation, that's why they make a separate product.
>>
>>56166348
I have another question regarding this one

So if I want to do gpu passthrough I must have a dedicated videocard for the vm? Can't I game on linux with the same videocard when the vm is not running?
>>
>>56167149
>And now in order to control it you need the thick client or rely on the premature web client.
Control as in keyboard and mouse? As I said, pass through the USB controller.

Control as in manage the host? Who the fuck uses the thick client or web client? You run vCenter like any sane person does.

>ESXi is literally not for your workstation
lol no, GPU performance is shit, and why you pass through GPUs. Let me guess, you dont have VT-d on your shitbox
>>
>>56167192
>GPU performance is shit,
SVGA
>>
>>56167194
>Control as in keyboard and mouse?
No, you fucking retard.
>Who the fuck uses the thick client or web client?
People who aren't paying thousands for a license or hundreds for a subscription?
>lol no, GPU performance is shit, and why you pass through GPUs.
Did you watch the video? Of course not, you're just an idiot.
>Let me guess, you dont have VT-d on your shitbox
They didn't make E5-2670v2s without VT-d, did they?
>>
>>56167107
I followed these two guides to set it up in QEMU.
https://archive.is/YDoXX
http://archive.is/uuvOi
>>
>>56167254
>People who aren't paying thousands for a license or hundreds for a subscription?
Who the fuck pays for software? Its called a keygen.

>Did you watch the video? Of course not, you're just an idiot.
Performance with SVGA will always be shit compared to pass through and you're limited to DX9 so enjoy your shit graphics. For fucks sakes to prevent video from stuttering you have to setup high latency sensitivity for the VM so it has reserved coars.

>They didn't make E5-2670v2s without VT-d, did they?
If you didnt know vCenter has keygens I doubt you have 2670v2s at home.

>>56167257
Thats why, normally the drivers wont run in a virtualized environment. I didnt read the link but that is either not telling the VM it is virtualized or changing the device IDs to a quadro.
>>
>>56167084
enjoy your ban
>>
I find that some games like Overwatch and gmod take a massive performance hit while others are perfect.
>>
What's a good gpu to use for the machine itself? Obviously the vm would use a normal one, but I assume the focus for the main gpu would be free as in freedom drivers? Old ati card, or is there some third brand with free drivers?
>>
>>56167563
If you use ESXi there would be no need for a secondary GPU. Passthru the primary to the windows VM for vidya and just remote control the Linux VM with Workstation/VNC/whatever. Or if you really need native GPU performance for Linux, and can live with only one of the VMs running at once, you could pass through to both.
>>
>>56167604
Don't listen to this retard.
>>
>>56165750
that's a girl, r-right?
>>
>>56167629
Does it matter?
c:
>>
>>56167616
>hey guise SVGA is fine, a GTX 980 can run a DX9 video game at 1366x768, that is totally native performance. Passing everything through Xorg totally wont make you take a massive performance hit, and who the fuck wants DX12.
stay butthurt poorfag with no 10GbE fiber and no Xeons

>>56167629
no
>>
>>56167657
Aight nigga, lead the man down the path to your retarded autistic solutions. Have fun with your bullshit.
>>
File: doom.jpg (1MB, 4864x2160px) Image search: [Google]
doom.jpg
1MB, 4864x2160px
>>56167679
>playing any modern game with DX9 or OpenGL 2.1
>not retarded
go show me doom 4 playing at 4K with ultra settings on your lolburg SVGA
>>
I mean, I do have an ESXi host that I use for headless guests, but my question really was for virtualizing Windows and giving it a big gpu, while linux would have a smaller gpu assigned to it.

I understand then that while KVM does provide good bare metal performance, the workaround for using nvidia doesn't work?
>>
>>56168252
>while linux would have a smaller gpu assigned to it.
If you dont need serious 3D the SVGA adapter would work fine for Linux.

>but my question really was for virtualizing Windows and giving it a big gpu
see >>56167065
>>
>>56167037
I think he meant two DP ports.
>>
Wanted to do GPU passthrough

I spent the extra money to get a 4670k
Intel jewed me and took out VT-d
>>
>>56169405
just get an hdmi > dvi converter
>>
>looked the archwiki page on GPU passthrough

Yeah, no.

Simpler to have my Windows separated from my Linux by having two machines.
>>
>>56169405

Yeah, that's what I meant lol.

I mean, my mobo has hdmi and vga, but

>vga
>>
>>56167084
remember when we used to have jobs?
>>
Is it possible for the VM in GPU Passthrough to just be in a window opposed to a whole separate monitor?
>>
>>56169938

I don't think so, no.

The whole GPU is passed through to the VM, so the VM, so the only output is through the physical GPU that was passed through.
>>
>>56169961
Got it.

Are there any other options for people who prefer the super Linux UX but want their windows games that don't want to do GPU passthrough?

Would running Linux in a VM on Windows in fullscreen for media purposes be okay?
>>
Would X11 Forwarding be a good option?
>>
>>56170051
Not that guy, but if you want as few headaches as possible (and the best performance) you run games on a native Windows install. After that there's GPU passthrough, with the whole hassle of setting it up and the GPUs that are passed through are unavailable to Linux. As for Linux in a VM on Windows - you can easily try that out if you want to check performance. You however lose much of the supposed extra security/stability, since you're running Windows as the host.

The simple way to do this shit is to just dual boot. With modern operating systems and a SSD you should be able to boot into another OS within 20s, easily.
>>
Why not just dual booting? You just learn to separate your gaming hours from your work hours.
>>
File: 1471239651078.png (721KB, 1024x576px) Image search: [Google]
1471239651078.png
721KB, 1024x576px
>>56165972
yeah like this
>>
>>56170270
prefer linux superior UX, not really for work.
>>
>>56169428
Yup, they added it to 4690K and 4790K though.
>>
Can you do this with a AMD, ati card, and an old nvidia card? Running linux on the older card of course
>>
>>56172146
Yes. If you have two cards that use the same driver (ie. radeon/radeon fglrx/fglrx amdgpu/amdgpu), you will have to blacklist the driver on the passthrough card and make sure the vfio driver gets hooked to it before the main driver has a chance to.
Thread posts: 64
Thread images: 10


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

If you need a post removed click on it's [Report] button and follow the instruction.
If you like this website please support us by donating with Bitcoin at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties. Posts and uploaded images are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that website. If you need information about a Poster - contact 4chan. This project is not affiliated in any way with 4chan.