Jump to content

sg14_96

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by sg14_96

  1. On 5/3/2018 at 9:46 AM, bigjme said:

    So, another topic on this but there are a few things I want to check with my systems as I think it may just be me

     

    So I've followed spaceinvader ones video on getting a vbios for tech power up, modifying it, and using that

     

    All went well, passed through the primary gpu from unraid to a vm, did a full windows 10 install and basic setup with the gpu passed through, perfect

     

    So I installed the new nvidia drivers for my 750ti, and carried on tinkering. I then decided to reboot the vm so the video drivers could finish installing and it will no longer boot

     

    I don't get error 43 like most others. Windows starts to load, showing the loading icon with the uefi splash screen and then the vm pauses

     

    This is the vm log from boot up to shutdown

     

    
    2018-05-02T20:54:30.216302Z qemu-system-x86_64: -device vfio-pci,host=04:00.0,id=hostdev0,bus=pci.4,addr=0x0,romfile=/mnt/cache/VMImages/GPURoms/msi-750ti.rom: Failed to mmap 0000:04:00.0 BAR 3. Performance may be slow
    2018-05-02T20:57:26.776428Z qemu-system-x86_64: vfio_region_write(0000:04:00.0:region3+0x1088, 0x7ffe11,8) failed: Device or resource busy
    KVM internal error. Suberror: 1
    emulation failure
    RAX=ffffab7e37c11000 RBX=ffffab7e37c11000 RCX=ffffab7e37c11000 RDX=0000000000000000
    RSI=ffffac04d77445c0 RDI=ffffac04d6055000 RBP=ffffac04d7f12000 RSP=ffff80890cd8d8f8
    R8 =0000000000001000 R9 =0101010101010101 R10=fffff80fc1dcc4ac R11=ffff80890cd8d6b0
    R12=ffffac04d3a75910 R13=ffffac04d77441e0 R14=0000000000000000 R15=0000000000100000
    RIP=fffff80fc204b038 RFL=00010216 [----AP-] CPL=0 II=0 A20=1 SMM=0 HLT=0
    ES =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA]
    CS =0010 0000000000000000 00000000 00209b00 DPL=0 CS64 [-RA]
    SS =0018 0000000000000000 00000000 00409300 DPL=0 DS [-WA]
    DS =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA]
    FS =0053 0000000000000000 0000fc00 0040f300 DPL=3 DS [-WA]
    GS =002b ffff9b8042cb9000 ffffffff 00c0f300 DPL=3 DS [-WA]
    LDT=0000 0000000000000000 ffffffff 00c00000
    TR =0040 ffff9b8042cc8000 00000067 00008b00 DPL=0 TSS64-busy
    GDT= ffff9b8042cc9fb0 00000057
    IDT= ffff9b8042cc7000 00000fff
    CR0=80050033 CR2=ffffd180f654a000 CR3=0000000268559000 CR4=001506f8
    DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
    DR6=00000000ffff0ff0 DR7=0000000000000400
    EFER=0000000000000d01
    Code=66 66 66 66 0f 1f 84 00 00 00 00 00 66 48 0f 6e c2 0f 16 c0 <0f> 11 01 4c 03 c1 48 83 c1 10 48 83 e1 f0 4c 2b c1 4d 8b c8 49 c1 e9 07 74 2f 0f 29 01 0f
    2018-05-02T20:57:45.189655Z qemu-system-x86_64: terminating on signal 15 from pid 12367 (/usr/sbin/libvirtd)

     

    Now I did have unraid booted in gui mode but I'm assuming that as it passed through for setup, this isn't the problem. 

     

    So I'm a little stuck on exactly what would be causing this error as the error says its in use, but this only occurs after installing the nvidia driver. 

     

    After so many boots I am able to get into the windows recovery menus which all function fine so it seems to pause the second the drivers initialized 

     

    I'm on unraid 6.5.1 with the vbios passed through the gui. The vm is ovmf with Hyper-V off on Q35-2.11. I can post the full xml if it would help

     

    Any ideas as I am a little stumped? 

     

    Regards, 

    Jamie 

     

     

    ----------- ANSWER --------

     

    For easy reading, this was the answer needed. In the event that you get mmap errors on passing through the rom, or you install the nvidia drivers and get errors like the above, try running the following in command line and try again

     

    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

     

    I added these to a user script that triggers on first array boot up. I have now successfully remove a gpu i no longer need from my system and am able to reboot unraid and have the vm auto start on the primary gpu

    How did you run them in a script?

×
×
  • Create New...