#single gpu passthrough

1 messages · Page 1 of 1 (latest)

earnest obsidian
#

i have a basic understanding of how normal gpu passthrough works already

normal veldt
#

okay before we start, what kind of gpu do you have

earnest obsidian
#

finally an excuse to use that page 😂

normal veldt
#

okay so you have an amd card

earnest obsidian
#

yeye

normal veldt
#

so this is gonna be very easy if it works

#

in theory all you would need to do is pass the gpu to libvirt and it should work

earnest obsidian
normal veldt
#

thats fine

#

did you do the iommu prerequisites and what not

earnest obsidian
#

nah not on this machine

normal veldt
#

do that now

earnest obsidian
#

i was askin bout dat earlier dunno if u saw lol

normal veldt
#

yes you have to enable iommu in order the access the devices on your pci lanes

#

you can follow the wiki on the thing i sent you

earnest obsidian
#

oh wtf theres a wiki on that repo??

#

idk why i didnt think to check for that

#

i just read the readme and was hella confused on where to start

normal veldt
#

yes theres a whole wiki

#

thats what i followed

earnest obsidian
#

ah ok

#

just to get this straight, is this a correct assumption of how things will work? :

  1. i start up the vm
  2. it switches everything (drivers n shit) over to VFIO
  3. my monitors will display the vm output
  4. when i shutdown the vm it reloads all the normal amd driver stuff
  5. monitors switch back to linux
normal veldt
#

kinda

#

what it really does is that it turns off your display manager and kills any display related functions and delegates any display resources to the pci device (which in this case is your gpu)

#

it makes the vm think that the only display device is your gpu, which is the goal

earnest obsidian
normal veldt
#

yeah thats correct

earnest obsidian
#

ok coolcool

normal veldt
#

now mind you, said script has hardcoded values for the vm names, so if you have a windows 10 vm, you must name it win10 or else it will not work

#

dont ask me why its this way

#

you can also edit the script to your liking and add vm names to make it trigger for different vms

earnest obsidian
#

ye ik i saw the readme

#

my shits called WinTenBox so ill either just rename it or edit the script

#

are you on AMD aswell?

#

if so, did you have to add this

earnest obsidian
#

@normal veldt

normal veldt
#

i do not use amd

earnest obsidian
#

ah ok

normal veldt
#

and yes i think you should add that

earnest obsidian
#

guess ill just add it just incase?

#

aight thx

earnest obsidian
#

this part no work

#

it make libvirtd not start and i cant find any obvious error in the sysd journal

earnest obsidian
#

imma just carry on, i think i should prolly have sufficient libvirt perms at this point

earnest obsidian
#

this sounds scary im skipping this

#

im not touching my gpus rom so if it doesnt work because of this, im undoing everything and giving up lmao

earnest obsidian
#

ok ive gotten to the end of the guide

#

@normal veldt is there anything else i need to do before trying to start it?

#

fuck it, im tryin it

#

no display output 😔

#

i think this is the error... ?

earnest obsidian
#

sorry to bother again, but do u have any clue? @normal veldt