BastiArts Posted November 28, 2020 Share Posted November 28, 2020 Hey guys, since I've tried passingthrough my primary GPU (Saphire R9 280) my log gets spammed by this error: Quote Tower kernel: vfio-pci 0000:07:00.0: BAR 0: can't reserve [mem 0xe0000000-0xefffffff 64bit pref] But everything is working as expected (Win10 VMs & Docker Container). Somehow my log is getting filled up 100% and a majority of the entries are like: Quote Nov 27 15:53:37 Tower kernel: vfio-pci 0000:07:00.0: BAR 0: can't reserve [mem 0xe0000000-0xefffffff 64bit pref] ### [PREVIOUS LINE REPEATED 900803 TIMES] ### And if I try to view the syslog via the 'tools' navigation, this error showed up: Quote Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /usr/local/emhttp/plugins/dynamix/include/Syslog.php on line 20 Does anyone have an idea how I could fix this issue(s)? I tried adding 'video=efifb:off' to the flash's syslinux.cfg but it still occurs. Unraid Version: 6.9.0-beta35 Diagnostics are attached below. Kind regards, Basti tower-diagnostics-20201128-1721.zip Quote Link to comment
Solution BastiArts Posted December 13, 2020 Author Solution Share Posted December 13, 2020 I finally found a fix, that works with my machine! I added the following code to the /flash/config/go file: #fix video for VM echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind Those lines unbind the console & by adding it to /flash/config/go will execute this piece of code on every boot of the system. 4 9 Quote Link to comment
CvH Posted April 5, 2021 Share Posted April 5, 2021 On 12/13/2020 at 3:16 PM, BastiArts said: I finally found a fix, that works with my machine! tx, with this fix I was able to make passthrough work my AMD R9 280X, even used as primary GPU without any additional GPU in my system 1 Quote Link to comment
anthem221 Posted July 5, 2021 Share Posted July 5, 2021 Hello there, i am a beginner to Unraid and have now the same issue - where exactly do i fill in those lines, in the flash where Unraid is installed? Quote Link to comment
BastiArts Posted July 5, 2021 Author Share Posted July 5, 2021 (edited) On 12/13/2020 at 3:16 PM, BastiArts said: I added the following code to the /flash/config/go file: As I've written above you need to paste those lines in the file /flash/config/go Simply paste, save and restart Edited July 5, 2021 by BastiArts Quote Link to comment
anthem221 Posted July 5, 2021 Share Posted July 5, 2021 like that? #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & #fix video for VM echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind Quote Link to comment
BastiArts Posted July 5, 2021 Author Share Posted July 5, 2021 52 minutes ago, anthem221 said: like that? #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & #fix video for VM echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind Exactly Quote Link to comment
anthem221 Posted July 5, 2021 Share Posted July 5, 2021 Really Impressive, thank you very much. Did not thought i can fix it so easy. Thanks! 1 Quote Link to comment
BastiArts Posted July 5, 2021 Author Share Posted July 5, 2021 18 minutes ago, anthem221 said: Really Impressive, thank you very much. Did not thought i can fix it so easy. Thanks! I'm glad I could help Spent myself hours of finding a working fix for this issue Quote Link to comment
fefzero Posted September 13, 2021 Share Posted September 13, 2021 Thanks for this fix! I had my system working with two GPUs passed through, but when I took one out for a different machine I had all kinds of trouble. This little bit saved me after banging my head on the wall for a couple of days. The GPU still in the system is a GTX 1050 Ti. 1 Quote Link to comment
ghost82 Posted September 13, 2021 Share Posted September 13, 2021 (edited) echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind effectively unbinds efifb from being loaded and stealing the memory at the time of issuing the command, preventing the gpu to be active for the vm to which the gpu is passed through. An alternative is to not load at all efifb with the boot arg: video=efifb:off But this will prevent you from reading the output when the host is loading. In real this is not a general solution for the error: kernel: vfio-pci 0000:07:00.0: BAR 0: can't reserve [mem 0xaaaaaaaaa-0xbbbbbbbb 64bit pref] This is valid for oses booting with uefi, however, for example, if the os is booted with legacy bios efifb will not load, instead vesafb will be loaded. A general approach to this is to look at what is preventing the memory to be mapped: we can do this in the host terminal, by looking at the output of: cat /proc/iomem We will see the memory regions together with what is using that range (0xaaaaaaaaa-0xbbbbbbbb in this example), so we can disable what is needed. Edited September 13, 2021 by ghost82 1 Quote Link to comment
SHB Posted November 30, 2021 Share Posted November 30, 2021 On 12/13/2020 at 4:16 PM, BastiArts said: I finally found a fix, that works with my machine! I added the following code to the /flash/config/go file: #fix video for VM echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind Those lines unbind the console & by adding it to /flash/config/go will execute this piece of code on every boot of the system. 2 days of retracing all of my steps, swapping out GPUs and dumping ROMs, and it was 3 simple lines of code which didn't appear in any of the Spaceinvader One tutorials I watched. I don't mean to necro, but I created an account so that I could sign in, thank you, and increase visibility for this solution. x570 Aorus Pro, 5900X, 2 and ONLY 2 GTX 1080s in the system each in their own Win10 VM. 1 Quote Link to comment
lanky8804 Posted February 5, 2022 Share Posted February 5, 2022 OH MY GOD ....... AMAZING. Spent hours trying to get VM working and this fixed it. Thank you 1 Quote Link to comment
Guts Posted February 7, 2022 Share Posted February 7, 2022 Wanted to say thanks as well! Was somehow able to grab a GPU last week and got around to setting up a remote gaming VM just today. OP's fix worked for me when I encountered the log filling up to 100% issue. 1 Quote Link to comment
BastiArts Posted February 7, 2022 Author Share Posted February 7, 2022 @lanky8804, @Guts Great! Enjoy your VMs guys🙂 Quote Link to comment
borland502 Posted February 14, 2022 Share Posted February 14, 2022 Well call me a necromancer, because this thread's alive! ALIVE! .... to thank the solution's author. Thank you. I know I chose the path of pain despite Unraid being an excellent product, but it was discouraging to have extracted the rom, done this & that, and periodically get stuck with a resolution that would have wowed me only in my childhood. 1 Quote Link to comment
theone Posted February 21, 2022 Share Posted February 21, 2022 Thanks adding these line work !!! What do they actually do? 1 Quote Link to comment
nerbonne Posted March 27, 2022 Share Posted March 27, 2022 First, thank you. Secondly, I would like to point out that this file is now at /boot/config/go 2 Quote Link to comment
allroy1975 Posted April 3, 2022 Share Posted April 3, 2022 I'm just another lost soul who found your post and it worked perfectly, i wanted to say thank you! Add me to the list of fools who spent HOURS trying to fix this themselves - unsuccessfully. On 3/26/2022 at 8:00 PM, nerbonne said: First, thank you. Secondly, I would like to point out that this file is now at /boot/config/go depends how you're getting to it i think. On 2/21/2022 at 1:07 PM, theone said: Thanks adding these line work !!! What do they actually do? @ghost82 broke it down pretty well right there, i think. 1 Quote Link to comment
Lars Ove Larsen Posted June 3, 2022 Share Posted June 3, 2022 Thanks, solved my issue also. Updated to Version: 6.10.2-rc3 today and my Win 11 with RTX1080TI passthrough stopped working. Now everything works again. Quote Link to comment
hero-sff Posted July 12, 2022 Share Posted July 12, 2022 Thanks, solved my issue also. Quote Link to comment
BBLV Posted August 30, 2022 Share Posted August 30, 2022 On 12/13/2020 at 6:16 AM, BastiArts said: I finally found a fix, that works with my machine! I added the following code to the /flash/config/go file: #fix video for VM echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind Those lines unbind the console & by adding it to /flash/config/go will execute this piece of code on every boot of the system. This saved me after countless hours of searching for a fix and tinkering... My VM's stopped working out of nowhere and this was the solution to get them back up and running. I would get errors when trying to start my VM's and my log was 100% full (due to the VM errors spamming the syslog). I know this is a fix, but what is the underlying issue that is causing this? Something seems very broken for this to just happen randomly... Quote Link to comment
apostolos55 Posted December 12, 2022 Share Posted December 12, 2022 (edited) On 12/13/2020 at 4:16 PM, BastiArts said: I finally found a fix, that works with my machine! I added the following code to the /flash/config/go file: #fix video for VM echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind Those lines unbind the console & by adding it to /flash/config/go will execute this piece of code on every boot of the system. Many many thanks @BastiArts !!! I am trying Unraid on an MSI B450 Tomahawk w a Ryzen 3600, and GPU passthrough of an GTX 1080Ti Founders Ed. was a nightmate, so much that I was on my way to Proxmox. I found your tip just as a last attempt. And I have literraly tried any other solution and video for days... One at a time, combined... In Proxmox it took me like 4-5 mins to Passthrough a Win10 system complete w NVME & GPU. Yet Unraid has other goodies... again Many many Thanks!!!, may you be blessed for eternity I come to add that XML editing has not been necessary for me since the fix. I checked the XML file and I don't use the extra code. Then again after passing through another audio card (extra) all worked nice and smoothly Edited January 24 by apostolos55 1 Quote Link to comment
kr00gz Posted December 20, 2022 Share Posted December 20, 2022 Echoing many here. Thanks @BastiArts! 1 Quote Link to comment
Murder Inc 1776 Posted January 3 Share Posted January 3 Also echoing the fix. Thank you! Log went from 100% to 1% after reset. 1 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.