#single gpu passthrough
1 messages · Page 1 of 1 (latest)
okay before we start, what kind of gpu do you have
okay so you have an amd card
yeye
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
i was semi-successful doing passthrough on my laptop which is igpu+nvidia, if that helps
nah not on this machine
do that now
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
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
ah ok
just to get this straight, is this a correct assumption of how things will work? :
- i start up the vm
- it switches everything (drivers n shit) over to VFIO
- my monitors will display the vm output
- when i shutdown the vm it reloads all the normal amd driver stuff
- monitors switch back to linux
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
yeah i read through the script i was just wondering if this was generally correct for what the experience of switching
yeah thats correct
ok coolcool
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
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
@normal veldt
i do not use amd
ah ok
and yes i think you should add that
this part no work
it make libvirtd not start and i cant find any obvious error in the sysd journal
imma just carry on, i think i should prolly have sufficient libvirt perms at this point
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
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... ?
sorry to bother again, but do u have any clue? @normal veldt