VM - Windows 10 - Nvidia GTX 960 error


steppi

Recommended Posts

Hello everyone!
I mounted the Xeon X3440 CPU, all right, now is the inscription: immou: enabled!
So I created a VM Wiundows 10 and I completed the installation via VNC.
Now I tried to change the graphics card settings, selecting "NVidia GeForce GTX 960 ...". When I start the virtual machine I get this error message:

Quote

Execution error

internal error: process exited while connecting to monitor: 2017-02-24T09:17:44.043013Z qemu-system-x86_64: -device vfio-pci,host=01:00.0,id=hostdev0,x-vga=on,bus=pci.0,addr=0x5: vfio: failed to set iommu for container: Operation not permitted
2017-02-24T09:17:44.043037Z qemu-system-x86_64: -device vfio-pci,host=01:00.0,id=hostdev0,x-vga=on,bus=pci.0,addr=0x5: vfio: failed to setup container for group 14
2017-02-24T09:17:44.043041Z qemu-system-x86_64: -device vfio-pci,host=01:00.0,id=hostdev0,x-vga=on,bus=pci.0,addr=0x5: vfio: failed to get group 14
2017-02-24T09:17:44.043054Z qemu-system-x86_64: -device vfio-pci,host=01:00.0,id=hostdev0,x-vga=on,bus=pci.0,addr=0x5: Device initialization failed

 

Where am I doing wrong? How can I fix?
Thanks for your help!

Link to comment

Have you checked that the GPU (and any associated sound capability) are in their own IOMMU group?   You cannot pass through the GPU if it has other devices sharing the IOMMU group.   There are a number of techniques available to try and force a GPU to have its own IOMMU group, but the first step is to determine if this is actually the problem.

Link to comment

Thank you so much, you gave me a quick answer!
I just checked and my situation is this:

Quote

IOMMU group 14
	[10de:1401] 01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)
	[10de:0fba] 01:00.1 Audio device: NVIDIA Corporation Device 0fba (rev a1)
IOMMU group 15

 

 

It seems to me that in IMMOU group 14 is only present the GPU.
Any other ideas? Paste everything below:

Quote

IOMMU group 0
	[8086:d130] 00:00.0 Host bridge: Intel Corporation Core Processor DMI (rev 11)
IOMMU group 1
	[8086:d138] 00:03.0 PCI bridge: Intel Corporation Core Processor PCI Express Root Port 1 (rev 11)
IOMMU group 2
	[8086:d155] 00:08.0 System peripheral: Intel Corporation Core Processor System Management Registers (rev 11)
	[8086:d156] 00:08.1 System peripheral: Intel Corporation Core Processor Semaphore and Scratchpad Registers (rev 11)
	[8086:d157] 00:08.2 System peripheral: Intel Corporation Core Processor System Control and Status Registers (rev 11)
	[8086:d158] 00:08.3 System peripheral: Intel Corporation Core Processor Miscellaneous Registers (rev 11)
IOMMU group 3
	[8086:d150] 00:10.0 System peripheral: Intel Corporation Core Processor QPI Link (rev 11)
	[8086:d151] 00:10.1 System peripheral: Intel Corporation Core Processor QPI Routing and Protocol Registers (rev 11)
IOMMU group 4
	[8086:3b64] 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
IOMMU group 5
	[8086:3b3c] 00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
IOMMU group 6
	[8086:3b56] 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
IOMMU group 7
	[8086:3b42] 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
IOMMU group 8
	[8086:3b44] 00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
IOMMU group 9
	[8086:3b48] 00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06)
IOMMU group 10
	[8086:3b4a] 00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06)
IOMMU group 11
	[8086:3b34] 00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
IOMMU group 12
	[8086:244e] 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
IOMMU group 13
	[8086:3b06] 00:1f.0 ISA bridge: Intel Corporation H55 Chipset LPC Interface Controller (rev 06)
	[8086:3b20] 00:1f.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA IDE Controller (rev 06)
	[8086:3b30] 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
	[8086:3b26] 00:1f.5 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 2 port SATA IDE Controller (rev 06)
IOMMU group 14
	[10de:1401] 01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)
	[10de:0fba] 01:00.1 Audio device: NVIDIA Corporation Device 0fba (rev a1)
IOMMU group 15
	[1106:0415] 04:00.0 IDE interface: VIA Technologies, Inc. VT6415 PATA IDE Host Controller
IOMMU group 16
	[1b4b:9215] 03:00.0 SATA controller: Marvell Technology Group Ltd. Device 9215 (rev 11)
IOMMU group 17
	[10ec:8168] 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
IOMMU group 18
	[8086:2c50] 3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-Core Registers (rev 04)
	[8086:2c81] 3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 04)
IOMMU group 19
	[8086:2c90] 3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 04)
	[8086:2c91] 3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 04)
IOMMU group 20
	[8086:2c98] 3f:03.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller (rev 04)
	[8086:2c99] 3f:03.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Target Address Decoder (rev 04)
	[8086:2c9a] 3f:03.2 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Test Registers (rev 04)
	[8086:2c9c] 3f:03.4 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Test Registers (rev 04)
IOMMU group 21
	[8086:2ca0] 3f:04.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Control Registers (rev 04)
	[8086:2ca1] 3f:04.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Address Registers (rev 04)
	[8086:2ca2] 3f:04.2 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Rank Registers (rev 04)
	[8086:2ca3] 3f:04.3 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers (rev 04)
IOMMU group 22
	[8086:2ca8] 3f:05.0 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Control Registers (rev 04)
	[8086:2ca9] 3f:05.1 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Address Registers (rev 04)
	[8086:2caa] 3f:05.2 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Rank Registers (rev 04)
	[8086:2cab] 3f:05.3 Host bridge: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers (rev 04)

CPU Thread Pairings


cpu 0 <===> cpu 4
cpu 1 <===> cpu 5
cpu 2 <===> cpu 6
cpu 3 <===> cpu 7

USB Devices


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0718:063d Imation Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 046d:c318 Logitech, Inc. Illuminated Keyboard
Bus 002 Device 004: ID 046d:c51a Logitech, Inc. MX Revolution/G7 Cordless Mouse
Bus 002 Device 005: ID 1058:25a2 Western Digital Technologies, Inc. 

SCSI Devices


[0:0:0:0]    disk    Imation  Nano Pro         PMAP  /dev/sda   32.0GB
[1:0:0:0]    disk    WD       Elements 25A2    1004  /dev/sdb   1.00TB
[6:0:0:0]    disk    ATA      WDC WD40EFRX-68W 0A82  /dev/sdc   4.00TB
[8:0:0:0]    disk    ATA      WDC WD40EFRX-68W 0A82  /dev/sdd   4.00TB
[9:0:0:0]    disk    ATA      WDC WD40EFRX-68W 0A82  /dev/sde   4.00TB
[10:0:0:0]   disk    ATA      WDC WD40EFRX-68W 0A82  /dev/sdf   4.00TB
[11:0:0:0]   disk    ATA      WDC WD30EZRS-00J 0A80  /dev/sdg   3.00TB

 

Link to comment

You need to dump the bios from your card and you might be able to pass it through. From the device list it looks like this is your only GPU and to get around this limitation, dumping the bios is the solution. Gridrunner have a guide for doing this. It should be in some FAQ somewhere I think.

Link to comment

Just a very quick thought. Have you got another video card or on motherboard board GPU, I cant see one in the IOMMU groups although I can see onboard sound.

 

You may need to add a cheapo graphics card for unRaid to use for the console. I know that this has worked for a few others. As long as you have a spare PCIe slot I would give it a try. Perhaps you have another card laying about?

Link to comment
7 hours ago, Jetjockey said:

Just a very quick thought. Have you got another video card or on motherboard board GPU, I cant see one in the IOMMU groups although I can see onboard sound.

 

You may need to add a cheapo graphics card for unRaid to use for the console. I know that this has worked for a few others. As long as you have a spare PCIe slot I would give it a try. Perhaps you have another card laying about?

Thank you so much for your help!
This idea was also coming to me, but unfortunately my "Asus P7H55-M motherboard" has one PCI-e slot.
I think the only solution is to buy a USB GPU, but I would be sure that it can start the -unRaid- boot. What do you think about it?

Edited by steppi
Link to comment

Try changing your sys linux config file to add vfio_iommu_type1.allow_unsafe_interrupts=1

 

after the append part

 

so the config file it would look like this.

default /syslinux/menu.c32
menu title Lime Technology, Inc.
prompt 0
timeout 50
label unRAID OS
  menu default
  kernel /bzimage
append vfio_iommu_type1.allow_unsafe_interrupts=1 initrd=/bzroot  
label unRAID OS GUI Mode
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui
label unRAID OS Safe Mode (no plugins, no GUI)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Memtest86+
  kernel /memtest

 

Link to comment
2 hours ago, gridrunner said:

Try changing your sys linux config file to add vfio_iommu_type1.allow_unsafe_interrupts=1

 

after the append part

 

so the config file it would look like this.


default /syslinux/menu.c32
menu title Lime Technology, Inc.
prompt 0
timeout 50
label unRAID OS
  menu default
  kernel /bzimage
append vfio_iommu_type1.allow_unsafe_interrupts=1 initrd=/bzroot  
label unRAID OS GUI Mode
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui
label unRAID OS Safe Mode (no plugins, no GUI)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Memtest86+
  kernel /memtest

 

@Gridrunner You are the hero of the day !!
It works great! I confirm that it works with Windows 10 - GTX 960.
Screenshots below! hello and thank you so much !! 

GTX960-unRaid-Win10.jpg

Link to comment

Paste XML now: 

Quote

<domain type='kvm'>
  <name>Windows 10</name>
  <uuid>0717cad3-9638-d204-ae1c-0282966c19cb</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='1'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='3'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='5'/>
    <vcpupin vcpu='6' cpuset='6'/>
    <vcpupin vcpu='7' cpuset='7'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.7'>hvm</type>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor_id state='on' value='none'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='4' threads='2'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/Windows 10/vdisk1.img'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/virtio-win-0.1.126-2.iso'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:98:b9:72'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <hostdev mode='subsystem' type='pci' managed='yes' xvga='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </memballoon>
  </devices>
</domain>

 

 

Link to comment
20 minutes ago, gridrunner said:

@steppi   I see from your xml you have the VM set up using seabios. I would make a new windows VM and use OVMF for bios type. I find OVMF works far better with passthrough myself. Try that and report back 

 @gridrunner I'm sorry, but if I try to install a new vm with bios OVMF comes out this screen ...

What should I do? I'm sorry to disturb you so much, you're too kind!

error.windows.jpg

Link to comment
14 hours ago, gridrunner said:

It looks like the windows that you are installing doesnt support efi boot.

You can download windows 10 from the microsoft website that will support this

https://www.microsoft.com/en-gb/software-download/windows10ISO

I downloaded the ISO and I find another problem.
As soon as you start the windows installation hangs on the screen as this screenshot:
Some idea?

 

error.windows.jpg

Link to comment

Sunday I worked a little 'to fix this problem ..
I managed to create a new VM with Windows 10 SeaBios. In fact I was able to install the -NVIDIA Experience- successfully. But going to the Device Management ---> graphics card: Code 43 error.
After I tried to re-open the Nvidia Experience and I find that I am asked again to install the latest drivers, it seems that you do not install the latest drivers.
If I can not install the latest nvidia driver, to release the Nvidia Experience Stream and Nvidia in order to play the -NVIDIA Shield TV- :(

Link to comment
On 27/02/2017 at 1:57 PM, steppi said:

Sunday I worked a little 'to fix this problem ..
I managed to create a new VM with Windows 10 SeaBios. In fact I was able to install the -NVIDIA Experience- successfully. But going to the Device Management ---> graphics card: Code 43 error.
After I tried to re-open the Nvidia Experience and I find that I am asked again to install the latest drivers, it seems that you do not install the latest drivers.
If I can not install the latest nvidia driver, to release the Nvidia Experience Stream and Nvidia in order to play the -NVIDIA Shield TV- :(

 

Does your motherboard have onboard gpu?

Check if it has. If it has check the bios to make sure it is enabled and set as primary graphics adaptor.

If you see the unRAID console coming out of the 960 then it os not primary.

If you have onbaord you want it enabled and primary.

If you dont have onbaord you will have to dump the bios and use it.

Or you could try using the gigabyte 960 2g dump i have posted on the video guide page here 

 

 

Also you will get an error 43 if the power cable isnt connected / connected correctly to the gpu or it isnt getting enough power. I would suggest re-seating the gpu to check all cables etc are correct.

I am not sure why the install hangs when you install using ovmf this shouldnt happen. In the picture you have posted it says windows 8.1, Did you try downloading the latest win 10 iso from the link posted earlier?

Link to comment

Hello! Thank you for having responded to me .. I'm trying to fix this problem for several days ...
I answer point by point:
- MB: ASUSTeK Computer INC. - P7H55-M
- My MB has the integrated GPU, but my CPU Xeon X3440 does not support this function, then the BIOS does not see the GPU function chosen. I can only give priority to PCI or PCI-E GPU ...
- I tried to do the bios dump as you explained you in your video by clicking this file: -Gigabytegtx960_GVN960IXOC_2GD.dump-. I'm not sure it's the correct file because my card is ASUS and Gigabyte not.

How do I know if I did everything right?


- For the Windows installation I solved yesterday, the iso file was corrupted (problem solved).

--- My real problem is the error 43 ---
Thank you for the help you are giving me, you're a good person!

 

Below my xml file, maybe you can find something that I also wrong from here!

 

 

Quote

<domain type='kvm' id='4'>
  <name>Windows 10 Final</name>
  <uuid>d81a08ce-02af-d48c-789b-fd1f40322d41</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='1'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='3'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='5'/>
    <vcpupin vcpu='6' cpuset='6'/>
    <vcpupin vcpu='7' cpuset='7'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.7'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/d81a08ce-02af-d48c-789b-fd1f40322d41_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='4' threads='2'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/Windows 10 Final/vdisk1.img'/>
      <backingStore/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <alias name='virtio-disk2'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/Windows 10 Final/vdisk2.img'/>
      <backingStore/>
      <target dev='hdd' bus='virtio'/>
      <alias name='virtio-disk3'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/Win10_1607_Italian_x64.iso'/>
      <backingStore/>
      <target dev='hda' bus='sata'/>
      <readonly/>
      <boot order='2'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/virtio-win-0.1.126-2.iso'/>
      <backingStore/>
      <target dev='hdb' bus='sata'/>
      <readonly/>
      <alias name='sata0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <model name='pci-bridge'/>
      <target chassisNr='2'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:38:87:6d'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/1'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/1'>
      <source path='/dev/pts/1'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-4-Windows 10 Final/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <rom file='/mnt/user/test/Gigabytegtx960_GVN960IXOC_2GD.dump'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x06' function='0x0'/>
    </hostdev>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x07' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='none' model='none'/>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
</domain>

 

 

 

 

 

Link to comment
  • 2 weeks later...
10 hours ago, gridrunner said:

Thats good news its solved but a pity you had to buy different hardware.

So what hardware did you get?

 

I changed everything!

-------
Motherboard

i7 - 6700K
Liquid cooler - Corsair H60

32 GB DDR4

1 SSD Samsung 850 PRO - 256 GB (Cache)

4x 4TB - WD Red 

My old Asus GTX 960 (invidia) ---> next month GTX 1070 ;)

-------

 

Now everything works fine, I can play Ghost Recon wildlands well!
But unfortunately I have a problem: If I connect a USB audio device (USB passthrough) as my Astro A40 headset, the audio becomes distorted and boring .. How can I fix?

Edited by steppi
Link to comment
On 2/25/2017 at 11:05 AM, gridrunner said:

Try changing your sys linux config file to add vfio_iommu_type1.allow_unsafe_interrupts=1

 

after the append part

 

 

 

Just out of interest - what does this do? I am attempting a new build myself at the weekend and initially will have a single GTX 950 until I can source another 750 for the Mac VM.

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.