[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
>not using gpu kvm passthrough >2016
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 112
Thread images: 12
File: nrtYweU.jpg (302 KB, 1916x1109) Image search: [Google]
nrtYweU.jpg
302 KB, 1916x1109
>not using gpu kvm passthrough
>2016
>>
File: cucked.png (570 KB, 638x666) Image search: [Google]
cucked.png
570 KB, 638x666
>>53887096
>using Lincux
>any year
>>
I want to do this. Im so fucking sick of windows im ready to go back to arch. The only reason i use windows is for media production and games. If this gpu passthrough works with out hindering either im doing it
>>
>>53887096
How do you go about it? Is there a guide?
>>
>2016
>still using a 1st gen i7
>no vt-d support
>tfw
>>
>>53887246
There's literally nothing wrong with a first gen i7
>>
>>53887096

Two GPUs are needed for it right?
>>
>>53887296
Despite this missing feature... And maybe AES
>>
>>53887321
A nvidia for linux and whatever you want to use in the emulator
>>
>>53887321
You can use your integrated GPU for the linux machine though I think.
>>
>>53887499
I think so too.
>>
>>53887243
There is no super easy guide that babies you through it, but the arch wiki has a pretty decent page on it
>>
>>53887096
How long did it take to set up?
>>
>TigerVNC

?
>>
>>53887126
fuck off, idiot
>>
>>
>>53887717

I like it senpai. Looks like it's very viable for dual monitor setups.
>>
>>53887604
A few days, theres nothing particularly hard, the software is just finicky and a lot of odd bugs will pip up.
>>
>>53887717
this looks sketchy as fuck

is he using a VM?
>>
>>53887096
Do you still need 2 GPUs to do passthrough or did they find a way to make it work with both OSes at once?
>>
File: 1406168320048.webm (678 KB, 576x432) Image search: [Google]
1406168320048.webm
678 KB, 576x432
>>53887717
what's this wizardry?
>>
>>53887717
The only magic here for me is how this video is only 2 MB
>>
>>53887246
>2015+1
>Using ulocked 3rd gen i7
>no vt-d support
>feels very bad
>>
>>53887321
>>53887499

you can use any (or no) gpu for linux, and any dedicated (i.e., non integrated) GPU for windows, however many AMD cards have resetting issues resulting in dodgy workarounds (such as ejecting the GPU from windows BEFORE restarting or shutting down the VM, otherwise you need to restart the host machine)

nvidia cards generally need to use the quadro firmware also

the only card(s) that work almost out of the box are the r9 290x hawaii cards or the 300 series rebrand, some older amd/nvidia cards, otherwise you'll run into very odd hardware quirks that nobody really documents all that well

>>53887499
>You can use your integrated GPU for the linux machine

you can, you can also use no GPU for the linux machine, however it's a massive pain in the arse to do so and you'll probably have to write your own script to initialise the windows VM

>>53887676

likely using vnc into the windows machine as vt-d passthrough gives visual output through a hardware port and you need some way of giving access to keyboard/mouse to the vm (such as kvm switch, passing through usb hubs, using software solutions like synergy, etc)

>>53887844

vt-d passthrough is literally passing physical GPUs to a guest VM to use natively...

>>53887862

there is absolutely no way to use a single GPU on both the VM guest and host as v-td passthrough is literally assigning the GPU to the guest to use - it's not emulating or virtualising anything, it's giving hardware access to a guest OS

in the future it may be more convenient to use as software solutions may pop up like non-vt-d virtual machines sharing windows etc, but it's a long way off and gaming isn't driving vt-d development - server virtualisation needs are
>>
>>53888059
Yes you can, with one gpu. Just hope you don't plan on using the host again haha
>>
how KVM work? how does it compare to virtualbox?
>>
>>53888059
Do you think in the future they can develop new software or CPU extensions which would allow you to use a single GPU for both guest and host? Or if it something which is just not technologically feasible?
>>
>>53888153
Not comparable Kvm with gpu pass through is almost full native preformance>>53888183
>>
>>53888143

it's probably completely possible for a (linux) host to regain control of the card but it's probably too much effort than it's worth

>>53888183

it's technically feasible but nobody is going to develop for it because it'll likely require significant changes to the gpu hardware and drivers at the minimum and probably some changes to the way vt-d is implemented
>>
>>53888230
from what I understand, you have to boot into KVM as if it's its own OS, and you can't just run it in a window like you can with VB. what is the advantage here?
>>
Doesnt it need a special motherboard to work?

Which one you using?
>>
>>53888300
any chance of it getting any easier to set up in the conventional two-card configuration?

I'm not enough of a wizard to make this work at the moment
>>
>>53887717
Keyboard???
>>
>>53888309
Needs a cpus as well.
>>
>>53888303
You have full 3D acceleration and can play games like gtav. Try that in vb
>>
I can't do this.

I have a haswell processor and all, you know, iGPU and dedicated GPU. All of that crap.

But I have:
-A motherboard which only has a VGA output
-A monitor which uses a native resolution of 2560x1080. Has 2 HDMI inputs, 1 DP input
-8gb of RAM

So basically I'm kinda fucked. I'm supposed to use my iGPU with linux, but that'd mean I would have to buy a fucking VGA to HDMI adaptor and do anything but games at a non-native resolution.
>>
I tried that once and failed. I might try it once again, but I won't get my hopes up.

I'm hoping that someone will automate the setup process in the near future. Gaming on Linux is still shit.
>>
>>53888377
Your motherboard only has VGA? No DVI or HDMI? That sucks bro. It must have been a really cheap board.
>>
>>53888469
Yeah I didn't even think I would need it.

Honestly it's not the best board out there even. I bought it upon recommendation from someone who doesn't seem to know his shit just that much -- though to be honest neither do I.
>>
>>53888059
sounds really handy with integrated graphics and APUs. I'm gunna try this shit
>>
>>53887126
>18+ y/o
>too dumb for Lonix
>>
>>53887096
how do I do this in windows/mac os?
>>
>>53888303

KVM is just an emulation method like virtualbox or whatever

if you do qemu/KVM you don't need to boot anything, you can start a windows VM straight from a linux host

however with vt-d passthrough (which works for virtualbox, etc, as well as almost any other virtualisation method) you're literally giving the guest OS access to a hardware component (the GPU) and as a result you only get display out of the physical ports on the back of the GPU, no neat VM display in a window

this comes with limitations that you need a way to use kb/mouse on the VM such as using a physical KVM switch, passing through a USB hub and using the kb/mouse on that hub, using software like synergy, etc

once you've passed through the GPU you get near native (95-99% of native performance), it's not virtualisation, it's not emulation, it's passing through real hardware to a VM

>>53888309

CPU and motherboard chipset need to support vt-d or amd equivalent, check intel ark

some manufacturers have subpar vt-d support, such as asus, but it's mostly been resolved within the past few years, however keep in mind hardware support for motherboards/GPUs vary wildly

>>53888315

the limiting factor to setting this up easily is hardware support on the gpu side (assuming you don't have buggy vt-d implementations on the motherboard), it's fairly trivial to configure a linux distro to enable vt-d passthrough of gpus with 2 card setups given all the guides that have popped up (mostly spawned from that one arch linux forum thread) since 2013~ onwards

>>53888377

dual monitors is recommended because you only get gpu output on the physical port of the gpu, but

>haswell
>vga only

what bloody motherboard did you buy that you got gimped so hard with that you only have vga?!

you could also buy a cheap low power gpu to use exclusively on linux, a bit overkill but it's what I've had to do (however haswell-e, no integrated gpu)
>>
>>53888540

keep in mind you can't pass through integrated graphics (you may, *may* have some luck if you're on an amd cpu, however it's very, very undocumented and likely has far more specific hardware issues than just passing through a dedicated card) - you have to pass through a dedicated graphics card

if you're also using that dedicated graphics card to boot from linux you'll run into issues but it's solvable, it's far easier to just set the integrated graphics as the primary output in bios
>>
>>53889417
yeah I know. I'm going to use the integrated for linux and dedicated for passthrough
>>
>tfw went through the process of getting VGA passthrough working on your laptop only to find out after getting everything else working that my GPU won't work with it
At least it got me off of Windows, I guess.
>>
>>53889465

okay just making sure, my wording on the original post was a bit messy and I didn't want to give anyone the wrong impression
>>
>>53887096
I want to get that set up on my system. I think I have IOMMU enabled, based on the output of 'dmesg|grep -e DMAR -e IOMMU'. My video card is a GTX 970, and I have a r9 270 to pass through. Does anyone know if there are any weird issues with the r9 270? I saw someone online that got it working. My CPU is a 4690k, which seems to have vt-d support.
>>
File: Quake Bots for 4 years.jpg (444 KB, 1316x3048) Image search: [Google]
Quake Bots for 4 years.jpg
444 KB, 1316x3048
Can I switch GPUs dynamically? That is, can I use a discrete GPU on Linux and then switch to the integrated GPU when using a KVM?
>>
>>53890105
I forgot to mention that I use my GPU on Linux. Mainly mpv, a few gaymes, and emulation.
>>
>>53887717
>not posting the full video
https://www.youtube.com/watch?v=37D2bRsthfI
>>
>>53887096
How to use windows as host machine?
I regularly need to test some opengl shits on linux but rebooting is a real pain.
>>
>>53890105
Probably not. If you have kernel modules loaded and you remove access to the gpu then it will probably crash X or something
>>
>>53887246
where the fuck do you see i7
>>
Do I need two monitors?
>>
>>53890224
Well shit. What about Wayland?
>>
That's so awesome, I can't wait anymore.
Is there a bash script to install every needed things and setup it automatically?
Is there some kind of gui to do manage gpu and guest operating systems?
>>
>>53890285
Well doesn't Wayland only support Intel atm? You'd have to use the iGPU on Linux and then leave your dedicated card for the VM
>>
>>53890295
virt-manager. Learn how to use QEMU tho, it will help. Just read the man page to see how it all comes together
>>
>>53890105
You probably can, but since you can't have the kernel modules loaded while trying to pass the GPU, you'd have to unload the module every time you started the VM, and reload it when you were done.

Before you did that, you'd have to set your X server to run on your iGPU, and then somehow run programs selectively on your external GPU (maybe you can use bumblebee or something? I don't know how it handles GPUs that aren't Optimus).

Although it looks like I was too late, because >>53890313 just described basically the same thing.

What do you need your external GPU for inside of Linux anyway? OpenCL/CUDA or some shit?
>>
>>53890372
>What do you need your external GPU for inside of Linux anyway?
>>53890117
>>
>>53890328
Thanks!
>>
>>53890234
You're not smart.
>>
>>53890448
All of those can be done on either your iGPU or from inside the Windows VM though, so why bother with the complicated effort of being able to switch the GPU between the host and the client?
>>
>>53890210
You cant.
>>
>>53887096
could do it, have an APU & nvidia card.
But then i like to have my Linux OS uncontained. I'm simple so dual boot is enough as i have both Linux and Windows on two seperate SSDs anyways.
>>
>>53887096
I am installing the linux-vfio kernel, which will allow me to pass through my 2nd card that is in the same iommu lane as my main card. It is compiling right now. Hopefully I don't bork my system. If I do, I have a backup from a couple weeks ago.
>>
File: 1459739686255.gif (432 KB, 600x338) Image search: [Google]
1459739686255.gif
432 KB, 600x338
>>53887096
could you do this on a Thinkpad x220t with an eGPU? I'm pretty sure the i5 in this supports vt-d (there's an option or two for it in the bios), but I'm not sure how the eGPU would complicate the matter.
>>
>>53891370
The e-gpu is just connected to a pcie lane, so in theory that would work. I am not sure if anyone has tried it. It would probably be a fun project.
>>
>>53891057
That broke the system. I will need to get my other card into another iommu lane. With its postioning on my motherboard, I will have to get a fulltower case/remove my psu.
>>
>>53890512
correction
>>53890210

You can, but you have to use Hyper-V on Win10Pro and add Remote FX to the guest VM.

BTW the Host and the guest can share one GPU or choose a different one.
>>
>>53892009
Any useful links or tutorial about it.
>>
Op here,

I might be making a mistake but if anyone needs help add me on kik dp1995g and I'll try to help out

Again the process is not hard, it's just the nonverbose errors that are a pain in the ass
>>
>>53892146
nig i love you. im doing this next week when i got the time. hope i can use my windows 10 hdd in the qemuKVM. i got 3 hard drives, 1 for windows 1 for games and one for loonix. some tell me this is doable with out converting it to some kind of virtual machine first
>>
>>53891370
ayy that'd be kinda cool. Linux with wifi cracking on the go, come home for qemu+egpu gaymen
>>
>>53887717
>debian
>>
https://www.youtube.com/watch?v=d3HL9x0CEtY
>>
>>53892009
Does Hyper-V support passthrough though? Native preformance is important too me.
>>
>>53887096
My mobo doesn't have an IOMMU.
And my CPU doesn't support VT-d.
>>
I got it working but my windows vm would freeze after 10 minutes.
>>
>>53893816
How is the latency?
>>
>>53894117
I don't know, but it must be zero latency.
>>
>>53887096
> 3570K
> VT-d X
> VT-x
>>
>>53894585
> 3570K
> VT-d No
> VT-x Yes

So fuck me
>>
>>53894098
Had exactly the same issue. Couldn't find a solution so I gave up.
>>
>gpu passthrough meme
no thanks
>>
>>53888309
anything with nehalem-ep or newer xeons
>>
>>53894971
>Too dumb to passthrough
kek
>>
>people think this is hard
all I did was follow the arch wiki and it just werks
>>
>>53895007
>implying it's hard
>implying it's usefull
fuck off retard
>>
File: doesnt add up.jpg (66 KB, 453x604) Image search: [Google]
doesnt add up.jpg
66 KB, 453x604
>>53895031
>allows you go use linux full time while keeping windows around for certain incompatibilities
>not useful
>>
>>53887246
>1st gen i7
>no VT-d
Are you one of those cucks who bought LGA 1156?
>>
>>53895052
you're still running windows you fucking mongoloid, if you want muh games and muh photoshop just use windows and run shitnux in a vm.
>>
>>53895110
why would I even bother running linux in a vm then?
isn't the whole point to move away from windows?
I hardly ever have my vm running, most of the shit I have to do can be done easily on linux
>>
>i want to use windows but im too hipster to simply do that
>>
>>53895110
>"useless"
Calm your shit dispenser prajeet, I know for a fact that passthrough is hard for you.
>>
>>53890105
This greentext got a fucking Forbes article.

http://www.forbes.com/sites/erikkain/2013/07/02/quake-iii-arena-bots-reportedly-stop-fighting-after-4-year-match/#4c12a0911bef
>>
>installing linux just to emulate windows in background
>>
File: 1455953544842.jpg (34 KB, 300x470) Image search: [Google]
1455953544842.jpg
34 KB, 300x470
>>53895662
>emulate
Why do winkids like to pretend to know what they are talking about?
>>
>>53887096
So glad you made this thread.

Can anyone tell me if GPU passthru will get me close enough to bare metal to run an HTC Vive with a workable framerate?
>>
>>53895683
you failed again, sect boi.
>>
>>53895755
Fuck off back to your shitty daycare board, baby prajeet.
10 rupees for you today for posting outside /v/
>>
>>53895785
you went full butthurt sect boi.
>>
>>53895662
>emulate
i don't think you know what it means doe

the term you were looking for is virtualization.

both techniques appear similar but are actually quite different

and yes, virtualization with hardware passthrough is quite useful when
>your hardware supports it
>you need windows for something

it's a win-win solution honestly.
>>
>>53895824
>le he butthurt
xD
Your babby curry is cooking in /v/. Get out
>>
>>53895857
le he he, little sect boi tries harder.
>>
>>53895869
>Buttravaged currynigger keeps dispensing tiny pieces of shitposts in the thread
:DD
>>
File: 1429177114622.jpg (12 KB, 258x245) Image search: [Google]
1429177114622.jpg
12 KB, 258x245
>gpu passthrough
>muh video games
>>>/v/
>>
>>53895894
My little sect boi, you just went full butthurt, le second time
>>
File: 1456362585698.jpg (180 KB, 500x380) Image search: [Google]
1456362585698.jpg
180 KB, 500x380
>>53895912
How does it feel to get BTFO'd twice in a thread, /v/ babby?
>>
>>53887096
Q6600. Feels kinda bad
>>
>>53888183
There was somebody experimenting with that the other day except it only worked with the open source drivers and what it was doing was handing off the systems primary GPU to the VM when it started and switching to the onboard video.
Thread replies: 112
Thread images: 12

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

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.