this post was submitted on 16 Apr 2024
807 points (89.1% liked)
linuxmemes
21611 readers
1229 users here now
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack members of the community for any reason.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
- These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn. Even if you watch it on a Linux machine.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now. Â
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yes, I installed libvirt along with the many other packages required
But are you launching VM via virsh/virt-manager or directly using
qemu-system-x86_64
? Could you provide the XML or the command line you're using? What doeslspci -k
say in regards to your GPU's?Sorry for the delayed reply, don't have much free time on work days.
Was launching the VM via virt-manager. Do you want the overview XML or for a specific category within virt-manager?
lspci -k
shows both my GPUs are there now but trying to load the BM says iommu group is not viableA full XML, unless you have something private in there, which you can remove. I just remember that for nvidia's there could be parts preventing load anywhere. In my case, for example, it was booting a BIOS VM instead of UEFI one.
But what's the driver used? Should be something like this (my laptop for example, without irrelevant lines)
Well that's something. Check the script at arch wiki on VFIO, at the paragraph "2.2 Ensuring that the groups are valid". It should print out the IOMMU groups you have in your system.
Basically, a thing with IOMMU is that you must pass all or none of the devices down to VM within each IOMMU group, even if you don't necessarily want them in your VM. In most cases, that means also passing the built-in sound card that feeds audio via HDMI outputs (the .1's in the above example). In cases where there's something else crucial in that IOMMU group, there's ACS patch but that's a hack and should only be used as a last resort.
Man I've followed like 6 different guides to a T and tried with 4 different distros and still can't get it to work. I'm done fighting with it for a while. Maybe it's just an issue with 7000 series AMD cards or the guides aren't up to date with the kernals idk. I need to take a long break from it before I get upset and just return the GPU lol
Appreciate you trying to help though, truly
Aight. I understand, VFIO is a kickflip of linux world and it takes a lot of pain, frustration and patience to do, so take your time.
Also, the next time you go for it, maybe give supergfxctl a shot, if you haven't already, if it works it should be pretty straightforward.