-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable Passthrough #8
Comments
You could just remove iommu=on from grub even at boot time. Or have two grub entries, one with iommu=on and one without. |
As mentioned above, that doesn't actually work. The 2nd card will use the vfio-pci driver rather than the GPU driver. I removed all new grub options, update-grub, reboot:
|
I assumed this would have worked. Instead of using this script you could try to bind the GPU by adding vfio-pci.ids=whatever in grub. Just remove the mention of vfio-pci-override from the files item in mkinitcpio.conf and regenerate initramfs. That way you could just remove the pci-id from grub whenever needed. |
The kernel parameter that you enter in grub as "vfio-pci ids=" is the vendor:model pair. As you see above I cannot use that since both cards are identical and have the same pair ID. From the Arch wiki
The options are to "passthrouh all but the boot GPU" with the same vfio-pci-override.sh script packaged in this repo, or specify a GPU by it's device ID: .....In this case. The ladder Iatter I've tried for initial GPU passthrough and haven't gotten to work, I probably missed something else but the only thing I've gotten to work is this manjaro_help.sh script. Either way a vfio-pci-override.sh script would have to exist in my case. |
Hey, i have a similair issue. i have
and i passed through my 1060 successfully how can i achieve this? what i want is:
but both cases are with the 1060, the 1050 is there just to have the monitors working.
as you can see the 1060 has the 'vfio-pci' tag so passing it through to the vm is no problem but i cannot use it in my linux system anymore |
Having a simple means of reverting the passthrough would definitely be welcome. I use 2 1080TI's and I give 1 to VFIO to get some video rendering stuff done in Windows and it works very well, but there are a few things in Linux that can use both GPUs. It's kind of a shame I can't get that GPU back without undoing the whole thing. |
There are several ways I have found after asking this question, in your case it could be interesting to check this: https://github.com/DualCoder/vgpu_unlock And through command lines you can disable it by using this:
And then restarting x but I have not tested it yet since I'm still distro hopping and looking for the one that suits my needs But if either of these work I'll automate it for myself |
I realize this is similar to #6 , but using dual identical GPUs this is the only method I've found to work well. I've tried to just remove the grub lines and turn off iommu in bios to hand the GPU back to linux but that's not enough. It'd be nice to not have to make too many alterations and mess up the working passthrough setup
Is there some simple way of disabling the passthrough over a reboot or can a script be created to do so without deleting everything like uninstall.sh does? There are a few tasks in Linux that can leverage that 2nd GPU when I'm not passing it through.
The text was updated successfully, but these errors were encountered: