ghost82 Posted February 21, 2023 Share Posted February 21, 2023 Being an old nvidia you could have error 43 in the vm and no video output. Nvidia in the past did not allow consumer gpus to be passed through and used in a vm: there could be workaround to add to the xml just to mask that the gpu is running in a vm and make the drivers to work. Newer drivers don't have this issue, since nvdia is allowing gpu passthrough now. Quote Link to comment
nwicone Posted February 21, 2023 Share Posted February 21, 2023 5 minutes ago, ghost82 said: Being an old nvidia you could have error 43 in the vm and no video output. Nvidia in the past did not allow consumer gpus to be passed through and used in a vm: there could be workaround to add to the xml just to mask that the gpu is running in a vm and make the drivers to work. Newer drivers don't have this issue, since nvdia is allowing gpu passthrough now. Thank you perfect, last question, if I have the AMD bug, I could try the AMD-Vendor-reset no ? Quote Link to comment
ghost82 Posted February 21, 2023 Share Posted February 21, 2023 Unfortunately I think not for your case: unraid should have the patch included, but this patch, the gnif reset vendor patch, does not include the 6000 series Quote Link to comment
nwicone Posted February 21, 2023 Share Posted February 21, 2023 Just now, ghost82 said: Unfortunately I think not for your case: unraid should have the patch included, but this patch, the gnif reset vendor patch, does not include the 6000 series Okay 🥲 I will do some other tests and otherwise I will pass on nvidia .. Thanks for all your help ! Quote Link to comment
ghost82 Posted February 21, 2023 Share Posted February 21, 2023 (edited) I remember I read that the issue can come for the audio part of the gpu. try to remove this block in the xml: <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/> </source> <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x1'/> </hostdev> in other words remove the passthrough of the audio with source address: <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/> and see if it crashes. Another test, for shoutdown/boot (not for reboots): you can try to manually remove the gpu (video and audio) and rescan for it, and then start the vm. You can try this and see if it works without crashing. 1. start the vm, it should output video 2. shutdown the vm 3. open a terminal in unraid and give the following commands, press 'enter' after each line: echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.0/remove echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.1/remove sleep 1 echo -n mem > /sys/power/state sleep 1 echo "1" | tee -a /sys/bus/pci/rescan 4. start the vm Edited February 21, 2023 by ghost82 Quote Link to comment
nwicone Posted February 21, 2023 Share Posted February 21, 2023 20 minutes ago, ghost82 said: I remember I read that the issue can come for the audio part of the gpu. try to remove this block in the xml: <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/> </source> <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x1'/> </hostdev> in other words remove the passthrough of the audio with source address: <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/> and see if it crashes. Another test, for shoutdown/boot (not for reboots): you can try to manually remove the gpu (video and audio) and rescan for it, and then start the vm. You can try this and see if it works without crashing. 1. start the vm, it should output video 2. shutdown the vm 3. open a terminal in unraid and give the following commands, press 'enter' after each line: echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.0/remove echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.1/remove sleep 1 echo -n mem > /sys/power/state sleep 1 echo "1" | tee -a /sys/bus/pci/rescan 4. start the vm Removing audio didn't worked. I tried the terminal and it crashed, it crashed with "echo -n mem > /sys/power/state" Any idea ? Quote Link to comment
Blobbonator Posted February 23, 2023 Share Posted February 23, 2023 (edited) Just wanted to share what helped me - running a 12th gen intel cpu so it might be slightly different: In bios I had to switch to uefi, disable resizeable bar, 4g decoding, SR-IOV support: Yes and for my cpu features I set this: in vm manager, i had to VFIO allow unsafe interrupts: Yes PCIe ACS override: Disabled The VM looks like this for me: PCI Devices and IOMMU Groups - vfio log Boot Config But I'm not sure what was needed or not to get the graphics card runnig, in the boot config, just added it in case there is something interesting in it. Added some options to safe some power. Edited February 23, 2023 by Blobbonator Quote Link to comment
nwicone Posted February 23, 2023 Share Posted February 23, 2023 51 minutes ago, Blobbonator said: Just wanted to share what helped me - running a 12th gen intel cpu so it might be slightly different: In bios I had to use uefi, disable resizeable bar, 4g decoding in vm manager, i had to VFIO allow unsafe interrupts: Yes PCIe ACS override: Disabled The VM looks like this for me: PCI Devices and IOMMU Groups - vfio log I already tried, what is your GPU ? Quote Link to comment
Blobbonator Posted February 23, 2023 Share Posted February 23, 2023 (edited) 40 minutes ago, nwicone said: I already tried, what is your GPU ? AMD RX 6750XT Edited February 23, 2023 by Blobbonator Quote Link to comment
nwicone Posted February 23, 2023 Share Posted February 23, 2023 6 minutes ago, Blobbonator said: AMD RX 6750XT Okay thanks 😃 Quote Link to comment
nwicone Posted March 1, 2023 Share Posted March 1, 2023 On 2/21/2023 at 9:12 AM, ghost82 said: I remember I read that the issue can come for the audio part of the gpu. try to remove this block in the xml: <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/> </source> <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x1'/> </hostdev> in other words remove the passthrough of the audio with source address: <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/> and see if it crashes. Another test, for shoutdown/boot (not for reboots): you can try to manually remove the gpu (video and audio) and rescan for it, and then start the vm. You can try this and see if it works without crashing. 1. start the vm, it should output video 2. shutdown the vm 3. open a terminal in unraid and give the following commands, press 'enter' after each line: echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.0/remove echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.1/remove sleep 1 echo -n mem > /sys/power/state sleep 1 echo "1" | tee -a /sys/bus/pci/rescan 4. start the vm Hello all, thanks ghost82 for all your help ! I finally bought a 3060 and sold the 6600. Now it's working from the first try ! The only thing that is not working are the multiplayer games like Fortnite or R6. I posted a message on this subject here : thanks again for all your help. Have a good day Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.