void-linux / void-docs

mdbook source for docs.voidlinux.org
https://docs.voidlinux.org
Creative Commons Attribution Share Alike 4.0 International
160 stars 179 forks source link

PCI passthrough guide #208

Open anjandev opened 4 years ago

anjandev commented 4 years ago

I setup PCI passthrough on voidlinux by using various r/voidlinux reddit posts. I would like to formally document the process.

Extra:

@HadetTheUndying can maybe review the guide.

https://github.com/void-linux/void-packages/pull/17225 must be merged before I can begin this guide.

The guide would only feature void specific issues when configuring PCI passthrough and link to archwiki for anything that's more general.

Is this guide appropriate for the handbook?

HadetTheUndying commented 4 years ago

Yep I'll take a look in the morning.

EDIT: I misunderstood. Yes i can help with and review this guide. I can also add in the proper options for rEFInd too.

anjandev commented 4 years ago

@bobertlo is this appropriate for the handbook?

bobertlo commented 4 years ago

@anjandev I think this is an appropriate topic for the handbook personally. I would like to keep the content concise and specific to void. I don't have time to peruse the PR but it looks like things are being reviewed in the right direction.

HadetTheUndying commented 4 years ago

The big thing i can think of is working on figuring out why LookingGlass isn't properly building on Void right now, since otherwise this will require a KVM Switch or separate, keyboard, mouse and monitor. I could working packaging LookingGlass this weekend if anyone can confirm they can get it to build.

Other than that it looks like the review is going well. We're also still waiting on qemu to be updated to support ovmf https://github.com/void-linux/void-packages/pull/17225

Animeshz commented 1 year ago

I believe someone said that all the files required for the GPU/PCI passthrough is available in the qemu package itself https://github.com/void-linux/void-packages/pull/29074#issuecomment-1009308697, @anjandev can you verify and finish the guide documenting the way GPU passthrough has to be set up?

anjandev commented 1 year ago

I believe someone said that all the files required for the GPU/PCI passthrough is available in the qemu package itself void-linux/void-packages#29074 (comment), @anjandev can you verify and finish the guide documenting the way GPU passthrough has to be set up?

I dont use void anymore so I will not be able to verify and finish this guide.

HadetTheUndying commented 1 year ago

The only thing not included with the packages is the hooks that you would need to hand off the GPU and shut down the display server. I can take a look at this PR again next week and probably get it in a state that's ready to be merged if anyone is actually willing to merge it. The problem is that there's no way to do this without users modifying some files and it creates a support burden if we do add it to the Handbook and someone can't figure out how to do it with the provided information. I would also be willing to write an external guide instead. Because there are little tricks and hacks needed for certain GPU models as well and I'm only able to test a few.

Vaelatern commented 1 year ago

I have a setup that uses PCI passthrough. I'm willing to re-install that system and retry this. @HadetTheUndying ping me as you like, especially on IRC, to get this done.

Vaelatern commented 1 year ago

@junkminerman I've not attempted UEFI on qemu yet.