this post was submitted on 03 Jul 2023
7 points (100.0% liked)

Linux

48655 readers
410 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Good day, I have some really hard time getting my GPU passed through to a VM, my current host is Linux Mint 21.1. The bios setting is fine, but for some reason I get a black screen every time the VM starts. I have narrowed it down to the startup hook script, where it is stuck (meaning it wont do the following) when it is doing the 'virsh nodedev-detach' instruction.

virsh nodedev-detach pci_0000_09_00_0 virsh nodedev-detach pci_0000_09_00_1

Following the instructions of the following link: https://www.reddit.com/r/VFIO/comments/n35k69/successful_6800_xt_passthrough_are_such_posts/

I'm not sure if the card itself have limitations, or is it LM. Just want to confirm whether I am wasting my time on this card? Or if it is the combination of both Linux and my GPU I'm basically try to do a single GPU pass-through with scripts that will release GPU from host and pass through to VM, till the VM is shut down, then the host have control over the GPU again.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

You have one GPU card? If yes you need some additional hooks (kill DE sessions, stop X, etc). Look here: https://github.com/joeknock90/Single-GPU-Passthrough .

UPD: Sorry. I read the reddit post. So you pass through single GPU. You load GPU bios when Windows load?

In general, such a configuration will be quite complicated, but if you want to try, show the VM configuration and the start hook. Without this not easy to say.

[–] [email protected] 1 points 1 year ago

"UPD: Sorry. I read the reddit post. So you pass through single GPU. You load GPU bios when Windows load?"

  • I haven't done that. I was of opinion that the radeon rx6800 didn't need it as nvidia does. Will download a bios and load it with the Vm.

"In general, such a configuration will be quite complicated, but if you want to try, show the VM configuration and the start hook. Without this not easy to say."

  • I reverted back to pre-virtmanager installation, will try this evening to follow the steps, including adding the bios to the VM, will also post the configurations and hooks. Will appreciate it if I don't need to dual boot anymore, having snapshot of my windows VM will be of great value for my workflow
[–] [email protected] 0 points 1 year ago* (last edited 1 year ago)

"UPD: Sorry. I read the reddit post. So you pass through single GPU. You load GPU bios when Windows load?"

  • I haven't done that. I was of opinion that the radeon rx6800 didn't need it as nvidia does. Will download a bios and load it with the Vm.

"In general, such a configuration will be quite complicated, but if you want to try, show the VM configuration and the start hook. Without this not easy to say."

  • I reverted back to pre-virtmanager installation, will try this evening to follow the steps, including adding the bios to the VM, will also post the configurations and hooks. Will appreciate it if I don't need to dual boot anymore, having snapshot of my windows VM will be of great value for my workflow
[–] ZachAR3 1 points 1 year ago

Not sure about your issues but I was able to do single gpu pass through in Nvidia with this guide which seems to show amd as well https://gitlab.com/risingprismtv/single-gpu-passthrough/-/wikis/home

load more comments
view more: next ›