Some pointers on KVM, GPU Pass Through, and Syslinux.cfg


jonp

Recommended Posts

  • Replies 103
  • Created
  • Last Reply

Top Posters In This Topic

Justin, I'm having similar troubles with GPU passthrough....see here: http://lime-technology.com/forum/index.php?topic=35892.0

 

I was successfull passing through the following (this is the important part of my go file):

# Setup KVM PCI passthrough
# NVIDIA Video                  0000:01:00.0
# NVIDIA Sound                  0000:01:00.1
# Intel 5 Series/3400 HD Audio  0000:00:1b.0
# nGene Multimedia              0000:05:00.0
/usr/local/sbin/vfio-bind 0000:01:00.0 0000:01:00.1 0000:00:1b.0 0000:05:00.0

...with the exception of the GPU. The is the only device where I see the famous yellow triangle. Even if I'm trying to upgrade the device driver, Windows 8.1 is telling me that the correct driver is already installed (at least I don't have the entire Windows freeze anymore).

 

Here is my xml:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>win8</name>
  <uuid>cc411d70-4463-4db7-bf36-d364c0cdaa9d</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <memoryBacking>
    <nosharepages/>
    <locked/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='1'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='3'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-2.1'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='2' cores='2' threads='1'/>
  </cpu>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none' io='native'/>
      <source file='/mnt/cache/.VMs/win8/win8.qcow2'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/.VMs/ISOs/virtio-win-0.1-81.iso'/>
      <target dev='hdc' bus='sata'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </controller>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='02:16:3e:1a:b3:4a'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </interface>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x05af'/>
        <product id='0x0906'/>
        <address bus='1' device='4'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='scsi' managed='no'>
      <source>
        <adapter name='scsi_host1'/>
        <address bus='0' target='1' unit='0'/>
      </source>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=01:00.1,bus=pcie.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=00:1b.0,bus=pcie.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=05:00.0,bus=pcie.0'/>
  </qemu:commandline>
</domain>

Link to comment

I was literally ready to kill someone this morning.  I finally had it all working, updated, and had nothing left to do, as far as I knew when I went to bed last night.

 

Well, I forgot to turn off "sleep", so the machine went to sleep, which killed pasthru.  When I killed the machine with vmMan, it corrupted the image, and I got bluescreens when trying to start the machine.

 

Well, after many attempts at repair, restore, etc, i finally created a VNC image pointing to the same install path/disk, told that to boot from cdrom, and was finally able to repair the image.  Then I had another couple of problems, which I won't drone on about, but at this point, it's working again.

 

I've turned off sleep, so the VM should never sleep or shut down on it's own.  I'll just have to remember to manually shut it down, then reboot the server, then make sure the TV is set to the correct input, then start the VM, and hope for the best.

 

I actually tried to install a windows 8 image, but it got bunged up somehow, so I left it.

 

Maybe I'll just go right to Windows 10 now, and see how that goes.

 

either way, since this Windows 7 image is currently working, I'd like to figure out how to 'fix' the nvidia driver so it survives a reboot.

 

We'll see.

Link to comment

Edgar,

 

  Gpu pass through does not work with vnc see earlier post. Do not know if pass through works the same for everyone but video shows up on the display even before OS is loaded. I have not tried this on a tv. Justin can tell you if this is true with a tv. I would like to know myself. Targets that worked for me: Windows 7 Ultimate, Windows 8.1, Windows 10, SteamOs, Ubuntu12.04, Point Linux all 64bit. Sill playing the list grows. Once you have a template from a working config it becomes easy.

 

Reed

Link to comment

Edgar,

 

  Gpu pass through does not work with vnc see earlier post. Do not know if pass through works the same for everyone but video shows up on the display even before OS is loaded. I have not tried this on a tv. Justin can tell you if this is true with a tv. I would like to know myself. Targets that worked for me: Windows 7 Ultimate, Windows 8.1, Windows 10, SteamOs, Ubuntu12.04, Point Linux all 64bit. Sill playing the list grows. Once you have a template from a working config it becomes easy.

 

Reed

+1

 

Spot on.

Link to comment

  Gpu pass through does not work with vnc see earlier post. Do not know if pass through works the same for everyone but video shows up on the display even before OS is loaded. I have not tried this on a tv. Justin can tell you if this is true with a tv. I would like to know myself.

 

correct, vnc and gpu passthru are mutually exclusive.  one or the other.

 

yes, the video displays on the TV before the OS is loaded.  Usually within a few seconds of launching the VM.  First thing I see is the information about my video card, much like when the computer boots thru BIOS.

Link to comment

After suffering some general server crashing for the last 2 days, I'm starting my VM again.  It was last shutdown 'uncleanly', so I was hopeful it would start without issue.  No luck.

 

It's currently sitting at the "Starting Windows" screen where the little windows normally spin around for a bit, but they never showed up; it just hung.

 

Here are the lines from syslog of this process...

 

Nov 4 17:43:19 media kernel: device vnet0 entered promiscuous mode
Nov 4 17:43:19 media kernel: br0: port 2(vnet0) entered forwarding state
Nov 4 17:43:19 media kernel: br0: port 2(vnet0) entered forwarding state
Nov 4 17:43:20 media kernel: vfio-pci 0000:01:00.0: enabling device (0000 -> 0003)
Nov 4 17:43:30 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:30 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 5.
Nov 4 17:43:30 media kernel: usb 3-12.2: hub failed to enable device, error -22
Nov 4 17:43:30 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:30 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 5.
Nov 4 17:43:30 media kernel: usb 3-12.2: hub failed to enable device, error -22
Nov 4 17:43:31 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472a120
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472a1e0
Nov 4 17:43:31 media kernel: usb 3-12.2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:43:31 media kernel: usb 3-12.2: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:43:31 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
Nov 4 17:43:31 media kernel: usb 3-12.3: hub failed to enable device, error -22
Nov 4 17:43:31 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
Nov 4 17:43:31 media kernel: usb 3-12.3: hub failed to enable device, error -22
Nov 4 17:43:31 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472aa80
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472aae0
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472ab40
Nov 4 17:43:31 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 7.
Nov 4 17:43:31 media kernel: usb 3-12.4: hub failed to enable device, error -22
Nov 4 17:43:31 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 7.
Nov 4 17:43:31 media kernel: usb 3-12.4: hub failed to enable device, error -22
Nov 4 17:43:31 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb00
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb90
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb48
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224137588
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224137540
Nov 4 17:43:31 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 7.
Nov 4 17:43:31 media kernel: usb 3-12.4: hub failed to enable device, error -22
Nov 4 17:43:31 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 7.
Nov 4 17:43:31 media kernel: usb 3-12.4: hub failed to enable device, error -22
Nov 4 17:43:31 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb00
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb90
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb48
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224137588
Nov 4 17:43:31 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224137540
Nov 4 17:43:32 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:32 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
Nov 4 17:43:32 media kernel: usb 3-12.3: hub failed to enable device, error -22
Nov 4 17:43:32 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:32 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
Nov 4 17:43:32 media kernel: usb 3-12.3: hub failed to enable device, error -22
Nov 4 17:43:32 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:32 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472aa80
Nov 4 17:43:32 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472aae0
Nov 4 17:43:32 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472ab40
Nov 4 17:43:32 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:32 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 5.
Nov 4 17:43:32 media kernel: usb 3-12.2: hub failed to enable device, error -22
Nov 4 17:43:32 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:32 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 5.
Nov 4 17:43:32 media kernel: usb 3-12.2: hub failed to enable device, error -22
Nov 4 17:43:33 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:33 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472a120
Nov 4 17:43:33 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472a1e0
Nov 4 17:43:33 media kernel: usb 3-12.2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:43:33 media kernel: usb 3-12.2: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:43:33 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:33 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 5.
Nov 4 17:43:33 media kernel: usb 3-12.2: hub failed to enable device, error -22
Nov 4 17:43:33 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:33 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 5.
Nov 4 17:43:33 media kernel: usb 3-12.2: hub failed to enable device, error -22
Nov 4 17:43:33 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:33 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472a120
Nov 4 17:43:33 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472a1e0
Nov 4 17:43:33 media kernel: usb 3-12.2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:43:33 media kernel: usb 3-12.2: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:43:33 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:33 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
Nov 4 17:43:33 media kernel: usb 3-12.3: hub failed to enable device, error -22
Nov 4 17:43:34 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:34 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
Nov 4 17:43:34 media kernel: usb 3-12.3: hub failed to enable device, error -22
Nov 4 17:43:34 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:34 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472aa80
Nov 4 17:43:34 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472aae0
Nov 4 17:43:34 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472ab40
Nov 4 17:43:34 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:34 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 5.
Nov 4 17:43:34 media kernel: usb 3-12.2: hub failed to enable device, error -22
Nov 4 17:43:34 media kernel: br0: port 2(vnet0) entered forwarding state
Nov 4 17:43:34 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:34 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 5.
Nov 4 17:43:34 media kernel: usb 3-12.2: hub failed to enable device, error -22
Nov 4 17:43:34 media kernel: usb 3-12.2: reset low-speed USB device number 5 using xhci_hcd
Nov 4 17:43:34 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472a120
Nov 4 17:43:34 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472a1e0
Nov 4 17:43:34 media kernel: usb 3-12.2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:43:34 media kernel: usb 3-12.2: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:43:35 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 7.
Nov 4 17:43:35 media kernel: usb 3-12.4: hub failed to enable device, error -22
Nov 4 17:43:35 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 7.
Nov 4 17:43:35 media kernel: usb 3-12.4: hub failed to enable device, error -22
Nov 4 17:43:35 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb00
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb90
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb48
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224137588
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224137540
Nov 4 17:43:35 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 7.
Nov 4 17:43:35 media kernel: usb 3-12.4: hub failed to enable device, error -22
Nov 4 17:43:35 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 7.
Nov 4 17:43:35 media kernel: usb 3-12.4: hub failed to enable device, error -22
Nov 4 17:43:35 media kernel: usb 3-12.4: reset full-speed USB device number 7 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb00
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb90
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b609cb48
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224137588
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224137540
Nov 4 17:43:35 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
Nov 4 17:43:35 media kernel: usb 3-12.3: hub failed to enable device, error -22
Nov 4 17:43:35 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
Nov 4 17:43:35 media kernel: usb 3-12.3: hub failed to enable device, error -22
Nov 4 17:43:35 media kernel: usb 3-12.3: reset full-speed USB device number 6 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472aa80
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472aae0
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022472ab40
Nov 4 17:43:35 media kernel: usb 3-12.1: reset full-speed USB device number 4 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 4.
Nov 4 17:43:35 media kernel: usb 3-12.1: hub failed to enable device, error -22
Nov 4 17:43:35 media kernel: usb 3-12.1: reset full-speed USB device number 4 using xhci_hcd
Nov 4 17:43:35 media kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 4.
Nov 4 17:43:35 media kernel: usb 3-12.1: hub failed to enable device, error -22
Nov 4 17:43:36 media kernel: usb 3-12.1: reset full-speed USB device number 4 using xhci_hcd
Nov 4 17:43:36 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224515240
Nov 4 17:43:36 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880224515288
Nov 4 17:43:36 media kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880221840e40
Nov 4 17:43:36 media kernel: usb 3-12.1: ep 0x83 - rounding interval to 64 microframes, ep desc says 80 microframes
Nov 4 17:44:18 media kernel: kvm: zapping shadow pages for mmio generation wraparound

Link to comment

JustinChase, jonp, rd_blair, thanks a lot for your comments....it's indeed important to completely remove any VNC related entries from the XML file. Additionally I assigned the primary boot device to the iGPU.

 

At first reboot the VM was incredible slow and the Windows 8 activity monitor was showing 100% disk workload. At the same time I had these syslog messages:

Nov 11 12:34:23 Tower2 kernel: [] system_call_fastpath+0x16/0x1b
Nov 11 12:34:23 Tower2 kernel: handlers:
Nov 11 12:34:23 Tower2 kernel: [] usb_hcd_irq
Nov 11 12:34:23 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 12:34:23 Tower2 kernel: Disabling IRQ #16
Nov 11 12:39:16 Tower2 kernel: BTRFS error (device sdb1): csum failed ino 4841 off 25440092160 csum 4138682997 expected csum 633470483
Nov 11 12:40:01 Tower2 logger: mover started
Nov 11 12:40:01 Tower2 logger: skipping */
Nov 11 12:40:01 Tower2 logger: mover finished
Nov 11 12:46:31 Tower2 kernel: BTRFS error (device sdb1): csum failed ino 4841 off 20999008256 csum 2304624708 expected csum 1337760226
Nov 11 12:57:32 Tower2 sshd[5096]: Accepted password for root from 192.168.178.30 port 50264 ssh2
Nov 11 13:03:50 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:03:51 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:03:52 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:03:54 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:03:54 Tower2 kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.3-unRAID #3
Nov 11 13:03:54 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:03:54 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:03:54 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:03:54 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:03:54 Tower2 kernel: Call Trace:
Nov 11 13:03:54 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:03:54 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:03:54 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:03:54 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:03:54 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:03:54 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:03:54 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:03:54 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:03:54 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:03:54 Tower2 kernel: [] ? pick_next_task_fair+0x37e/0x402
Nov 11 13:03:54 Tower2 kernel: [] ? cpuidle_enter_state+0x4d/0xa4
Nov 11 13:03:54 Tower2 kernel: [] cpuidle_enter+0x12/0x14
Nov 11 13:03:54 Tower2 kernel: [] cpu_startup_entry+0x17e/0x232
Nov 11 13:03:54 Tower2 kernel: [] rest_init+0x72/0x74
Nov 11 13:03:54 Tower2 kernel: [] start_kernel+0x3d6/0x3e2
Nov 11 13:03:54 Tower2 kernel: [] ? set_init_arg+0x53/0x53
Nov 11 13:03:54 Tower2 kernel: [] ? early_idt_handlers+0x120/0x120
Nov 11 13:03:54 Tower2 kernel: [] x86_64_start_reservations+0x2a/0x2c
Nov 11 13:03:54 Tower2 kernel: [] x86_64_start_kernel+0xee/0xfb
Nov 11 13:03:54 Tower2 kernel: handlers:
Nov 11 13:03:54 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:03:54 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:03:54 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:03:54 Tower2 kernel: Disabling IRQ #16
Nov 11 13:03:55 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:03:55 Tower2 kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.3-unRAID #3
Nov 11 13:03:55 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:03:55 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:03:55 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:03:55 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:03:55 Tower2 kernel: Call Trace:
Nov 11 13:03:55 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:03:55 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:03:55 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:03:55 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:03:55 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:03:55 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:03:55 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:03:55 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:03:55 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:03:55 Tower2 kernel: [] ? pick_next_task_fair+0x37e/0x402
Nov 11 13:03:55 Tower2 kernel: [] ? cpuidle_enter_state+0x4d/0xa4
Nov 11 13:03:55 Tower2 kernel: [] cpuidle_enter+0x12/0x14
Nov 11 13:03:55 Tower2 kernel: [] cpu_startup_entry+0x17e/0x232
Nov 11 13:03:55 Tower2 kernel: [] rest_init+0x72/0x74
Nov 11 13:03:55 Tower2 kernel: [] start_kernel+0x3d6/0x3e2
Nov 11 13:03:55 Tower2 kernel: [] ? set_init_arg+0x53/0x53
Nov 11 13:03:55 Tower2 kernel: [] ? early_idt_handlers+0x120/0x120
Nov 11 13:03:55 Tower2 kernel: [] x86_64_start_reservations+0x2a/0x2c
Nov 11 13:03:55 Tower2 kernel: [] x86_64_start_kernel+0xee/0xfb
Nov 11 13:03:55 Tower2 kernel: handlers:
Nov 11 13:03:55 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:03:55 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:03:55 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:03:55 Tower2 kernel: Disabling IRQ #16
Nov 11 13:03:56 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:03:56 Tower2 kernel: CPU: 0 PID: 2399 Comm: qemu-system-x86 Not tainted 3.16.3-unRAID #3
Nov 11 13:03:56 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:03:56 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:03:56 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:03:56 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:03:56 Tower2 kernel: Call Trace:
Nov 11 13:03:56 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:03:56 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:03:56 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:03:56 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:03:56 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:03:56 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:03:56 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:03:56 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:03:56 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:03:56 Tower2 kernel: [] ? find_next_bit+0x71/0xa6
Nov 11 13:03:56 Tower2 kernel: [] intel_iommu_unmap+0x135/0x178
Nov 11 13:03:56 Tower2 kernel: [] iommu_unmap+0x9a/0xc1
Nov 11 13:03:56 Tower2 kernel: [] vfio_remove_dma+0xb1/0x15e
Nov 11 13:03:56 Tower2 kernel: [] vfio_iommu_type1_ioctl+0x7d4/0x853
Nov 11 13:03:56 Tower2 kernel: [] ? kvm_set_memory_region+0x33/0x3c [kvm]
Nov 11 13:03:56 Tower2 kernel: [] vfio_fops_unl_ioctl+0x21e/0x247
Nov 11 13:03:56 Tower2 kernel: [] do_vfs_ioctl+0x351/0x415
Nov 11 13:03:56 Tower2 kernel: [] SyS_ioctl+0x38/0x61
Nov 11 13:03:56 Tower2 kernel: [] system_call_fastpath+0x16/0x1b
Nov 11 13:03:56 Tower2 kernel: handlers:
Nov 11 13:03:56 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:03:56 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:03:56 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:03:56 Tower2 kernel: Disabling IRQ #16
Nov 11 13:03:57 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:03:59 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:01 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:04:01 Tower2 kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.3-unRAID #3
Nov 11 13:04:01 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:04:01 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:04:01 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:04:01 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:04:01 Tower2 kernel: Call Trace:
Nov 11 13:04:01 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:04:01 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:04:01 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:04:01 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:04:01 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:04:01 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:04:01 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:04:01 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:04:01 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:04:01 Tower2 kernel: [] ? pick_next_task_fair+0x37e/0x402
Nov 11 13:04:01 Tower2 kernel: [] ? cpuidle_enter_state+0x4d/0xa4
Nov 11 13:04:01 Tower2 kernel: [] cpuidle_enter+0x12/0x14
Nov 11 13:04:01 Tower2 kernel: [] cpu_startup_entry+0x17e/0x232
Nov 11 13:04:01 Tower2 kernel: [] rest_init+0x72/0x74
Nov 11 13:04:01 Tower2 kernel: [] start_kernel+0x3d6/0x3e2
Nov 11 13:04:01 Tower2 kernel: [] ? set_init_arg+0x53/0x53
Nov 11 13:04:01 Tower2 kernel: [] ? early_idt_handlers+0x120/0x120
Nov 11 13:04:01 Tower2 kernel: [] x86_64_start_reservations+0x2a/0x2c
Nov 11 13:04:01 Tower2 kernel: [] x86_64_start_kernel+0xee/0xfb
Nov 11 13:04:01 Tower2 kernel: handlers:
Nov 11 13:04:01 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:04:01 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:04:01 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:04:01 Tower2 kernel: Disabling IRQ #16
Nov 11 13:04:02 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:04:02 Tower2 kernel: CPU: 0 PID: 2399 Comm: qemu-system-x86 Not tainted 3.16.3-unRAID #3
Nov 11 13:04:02 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:04:02 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:04:02 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:04:02 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:04:02 Tower2 kernel: Call Trace:
Nov 11 13:04:02 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:04:02 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:04:02 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:04:02 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:04:02 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:04:02 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:04:02 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:04:02 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:04:02 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:04:02 Tower2 kernel: [] ? pfn_to_dma_pte+0x66/0x1e5
Nov 11 13:04:02 Tower2 kernel: [] intel_iommu_iova_to_phys+0x1d/0x31
Nov 11 13:04:02 Tower2 kernel: [] iommu_iova_to_phys+0x12/0x17
Nov 11 13:04:02 Tower2 kernel: [] vfio_remove_dma+0x7d/0x15e
Nov 11 13:04:02 Tower2 kernel: [] vfio_iommu_type1_ioctl+0x7d4/0x853
Nov 11 13:04:02 Tower2 kernel: [] ? kvm_set_memory_region+0x33/0x3c [kvm]
Nov 11 13:04:02 Tower2 kernel: [] vfio_fops_unl_ioctl+0x21e/0x247
Nov 11 13:04:02 Tower2 kernel: [] do_vfs_ioctl+0x351/0x415
Nov 11 13:04:02 Tower2 kernel: [] SyS_ioctl+0x38/0x61
Nov 11 13:04:02 Tower2 kernel: [] system_call_fastpath+0x16/0x1b
Nov 11 13:04:02 Tower2 kernel: handlers:
Nov 11 13:04:02 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:04:02 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:04:02 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:04:02 Tower2 kernel: Disabling IRQ #16
Nov 11 13:04:04 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:05 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:06 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:08 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:21 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:22 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:35 Tower2 kernel: vfio-pci 0000:01:00.0: irq 46 for MSI/MSI-X

 

I made all Windows 8 related updates, rebooted and have a very nice running Windows 8 VM now. Don't know why the mess at the very beginning was coming from??

 

Anyhow here is my XML file:

<domain type='kvm' id='2' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>win8</name>
  <uuid>cc411d70-4463-4db7-bf36-d364c0cdaa9d</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <memoryBacking>
    <nosharepages/>
    <locked/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='1'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='3'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.1'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='2' cores='2' threads='1'/>
  </cpu>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none' io='native'/>
      <source file='/mnt/cache/.VMs/win8/win8.qcow2'/>
      <backingStore/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/.VMs/ISOs/virtio-win-0.1-81.iso'/>
      <backingStore/>
      <target dev='hdc' bus='sata'/>
      <readonly/>
      <alias name='sata0-0-2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <alias name='scsi0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </controller>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb0'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb0'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb0'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='sata0'/>
      <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'>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='02:16:3e:1a:b3:4a'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </interface>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x05af'/>
        <product id='0x0906'/>
        <address bus='1' device='4'/>
      </source>
      <alias name='hostdev0'/>
    </hostdev>
    <hostdev mode='subsystem' type='scsi' managed='no'>
      <source>
        <adapter name='scsi_host1'/>
        <address bus='0' target='1' unit='0'/>
      </source>
      <readonly/>
      <alias name='hostdev1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </hostdev>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=01:00.1,bus=pcie.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=00:1b.0,bus=pcie.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=05:00.0,bus=pcie.0'/>
  </qemu:commandline>
</domain>

 

I think that I can delete these lines:

    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>

 

jonp, even the DVD Drive is available!!!

Link to comment

JustinChase, jonp, rd_blair, thanks a lot for your comments....it's indeed important to completely remove any VNC related entries from the XML file. Additionally I assigned the primary boot device to the iGPU.

 

At first reboot the VM was incredible slow and the Windows 8 activity monitor was showing 100% disk workload. At the same time I had these syslog messages:

Nov 11 12:34:23 Tower2 kernel: [] system_call_fastpath+0x16/0x1b
Nov 11 12:34:23 Tower2 kernel: handlers:
Nov 11 12:34:23 Tower2 kernel: [] usb_hcd_irq
Nov 11 12:34:23 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 12:34:23 Tower2 kernel: Disabling IRQ #16
Nov 11 12:39:16 Tower2 kernel: BTRFS error (device sdb1): csum failed ino 4841 off 25440092160 csum 4138682997 expected csum 633470483
Nov 11 12:40:01 Tower2 logger: mover started
Nov 11 12:40:01 Tower2 logger: skipping */
Nov 11 12:40:01 Tower2 logger: mover finished
Nov 11 12:46:31 Tower2 kernel: BTRFS error (device sdb1): csum failed ino 4841 off 20999008256 csum 2304624708 expected csum 1337760226
Nov 11 12:57:32 Tower2 sshd[5096]: Accepted password for root from 192.168.178.30 port 50264 ssh2
Nov 11 13:03:50 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:03:51 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:03:52 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:03:54 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:03:54 Tower2 kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.3-unRAID #3
Nov 11 13:03:54 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:03:54 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:03:54 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:03:54 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:03:54 Tower2 kernel: Call Trace:
Nov 11 13:03:54 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:03:54 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:03:54 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:03:54 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:03:54 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:03:54 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:03:54 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:03:54 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:03:54 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:03:54 Tower2 kernel: [] ? pick_next_task_fair+0x37e/0x402
Nov 11 13:03:54 Tower2 kernel: [] ? cpuidle_enter_state+0x4d/0xa4
Nov 11 13:03:54 Tower2 kernel: [] cpuidle_enter+0x12/0x14
Nov 11 13:03:54 Tower2 kernel: [] cpu_startup_entry+0x17e/0x232
Nov 11 13:03:54 Tower2 kernel: [] rest_init+0x72/0x74
Nov 11 13:03:54 Tower2 kernel: [] start_kernel+0x3d6/0x3e2
Nov 11 13:03:54 Tower2 kernel: [] ? set_init_arg+0x53/0x53
Nov 11 13:03:54 Tower2 kernel: [] ? early_idt_handlers+0x120/0x120
Nov 11 13:03:54 Tower2 kernel: [] x86_64_start_reservations+0x2a/0x2c
Nov 11 13:03:54 Tower2 kernel: [] x86_64_start_kernel+0xee/0xfb
Nov 11 13:03:54 Tower2 kernel: handlers:
Nov 11 13:03:54 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:03:54 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:03:54 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:03:54 Tower2 kernel: Disabling IRQ #16
Nov 11 13:03:55 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:03:55 Tower2 kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.3-unRAID #3
Nov 11 13:03:55 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:03:55 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:03:55 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:03:55 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:03:55 Tower2 kernel: Call Trace:
Nov 11 13:03:55 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:03:55 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:03:55 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:03:55 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:03:55 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:03:55 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:03:55 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:03:55 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:03:55 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:03:55 Tower2 kernel: [] ? pick_next_task_fair+0x37e/0x402
Nov 11 13:03:55 Tower2 kernel: [] ? cpuidle_enter_state+0x4d/0xa4
Nov 11 13:03:55 Tower2 kernel: [] cpuidle_enter+0x12/0x14
Nov 11 13:03:55 Tower2 kernel: [] cpu_startup_entry+0x17e/0x232
Nov 11 13:03:55 Tower2 kernel: [] rest_init+0x72/0x74
Nov 11 13:03:55 Tower2 kernel: [] start_kernel+0x3d6/0x3e2
Nov 11 13:03:55 Tower2 kernel: [] ? set_init_arg+0x53/0x53
Nov 11 13:03:55 Tower2 kernel: [] ? early_idt_handlers+0x120/0x120
Nov 11 13:03:55 Tower2 kernel: [] x86_64_start_reservations+0x2a/0x2c
Nov 11 13:03:55 Tower2 kernel: [] x86_64_start_kernel+0xee/0xfb
Nov 11 13:03:55 Tower2 kernel: handlers:
Nov 11 13:03:55 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:03:55 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:03:55 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:03:55 Tower2 kernel: Disabling IRQ #16
Nov 11 13:03:56 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:03:56 Tower2 kernel: CPU: 0 PID: 2399 Comm: qemu-system-x86 Not tainted 3.16.3-unRAID #3
Nov 11 13:03:56 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:03:56 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:03:56 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:03:56 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:03:56 Tower2 kernel: Call Trace:
Nov 11 13:03:56 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:03:56 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:03:56 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:03:56 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:03:56 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:03:56 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:03:56 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:03:56 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:03:56 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:03:56 Tower2 kernel: [] ? find_next_bit+0x71/0xa6
Nov 11 13:03:56 Tower2 kernel: [] intel_iommu_unmap+0x135/0x178
Nov 11 13:03:56 Tower2 kernel: [] iommu_unmap+0x9a/0xc1
Nov 11 13:03:56 Tower2 kernel: [] vfio_remove_dma+0xb1/0x15e
Nov 11 13:03:56 Tower2 kernel: [] vfio_iommu_type1_ioctl+0x7d4/0x853
Nov 11 13:03:56 Tower2 kernel: [] ? kvm_set_memory_region+0x33/0x3c [kvm]
Nov 11 13:03:56 Tower2 kernel: [] vfio_fops_unl_ioctl+0x21e/0x247
Nov 11 13:03:56 Tower2 kernel: [] do_vfs_ioctl+0x351/0x415
Nov 11 13:03:56 Tower2 kernel: [] SyS_ioctl+0x38/0x61
Nov 11 13:03:56 Tower2 kernel: [] system_call_fastpath+0x16/0x1b
Nov 11 13:03:56 Tower2 kernel: handlers:
Nov 11 13:03:56 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:03:56 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:03:56 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:03:56 Tower2 kernel: Disabling IRQ #16
Nov 11 13:03:57 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:03:59 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:01 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:04:01 Tower2 kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.3-unRAID #3
Nov 11 13:04:01 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:04:01 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:04:01 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:04:01 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:04:01 Tower2 kernel: Call Trace:
Nov 11 13:04:01 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:04:01 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:04:01 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:04:01 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:04:01 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:04:01 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:04:01 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:04:01 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:04:01 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:04:01 Tower2 kernel: [] ? pick_next_task_fair+0x37e/0x402
Nov 11 13:04:01 Tower2 kernel: [] ? cpuidle_enter_state+0x4d/0xa4
Nov 11 13:04:01 Tower2 kernel: [] cpuidle_enter+0x12/0x14
Nov 11 13:04:01 Tower2 kernel: [] cpu_startup_entry+0x17e/0x232
Nov 11 13:04:01 Tower2 kernel: [] rest_init+0x72/0x74
Nov 11 13:04:01 Tower2 kernel: [] start_kernel+0x3d6/0x3e2
Nov 11 13:04:01 Tower2 kernel: [] ? set_init_arg+0x53/0x53
Nov 11 13:04:01 Tower2 kernel: [] ? early_idt_handlers+0x120/0x120
Nov 11 13:04:01 Tower2 kernel: [] x86_64_start_reservations+0x2a/0x2c
Nov 11 13:04:01 Tower2 kernel: [] x86_64_start_kernel+0xee/0xfb
Nov 11 13:04:01 Tower2 kernel: handlers:
Nov 11 13:04:01 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:04:01 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:04:01 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:04:01 Tower2 kernel: Disabling IRQ #16
Nov 11 13:04:02 Tower2 kernel: irq 16: nobody cared (try booting with the "irqpoll" option)
Nov 11 13:04:02 Tower2 kernel: CPU: 0 PID: 2399 Comm: qemu-system-x86 Not tainted 3.16.3-unRAID #3
Nov 11 13:04:02 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Nov 11 13:04:02 Tower2 kernel: 0000000000000000 ffff880127c03e60 ffffffff815d9532 ffff880121494c00
Nov 11 13:04:02 Tower2 kernel: ffff880127c03e88 ffffffff810779a2 ffff880121494c00 0000000000000000
Nov 11 13:04:02 Tower2 kernel: 0000000000000010 ffff880127c03ec0 ffffffff81077dab 0000000000000010
Nov 11 13:04:02 Tower2 kernel: Call Trace:
Nov 11 13:04:02 Tower2 kernel: [] dump_stack+0x45/0x56
Nov 11 13:04:02 Tower2 kernel: [] __report_bad_irq+0x2a/0xbc
Nov 11 13:04:02 Tower2 kernel: [] note_interrupt+0x19c/0x221
Nov 11 13:04:02 Tower2 kernel: [] handle_irq_event_percpu+0xdd/0xec
Nov 11 13:04:02 Tower2 kernel: [] handle_irq_event+0x39/0x57
Nov 11 13:04:02 Tower2 kernel: [] handle_fasteoi_irq+0x80/0xe0
Nov 11 13:04:02 Tower2 kernel: [] handle_irq+0x19/0x24
Nov 11 13:04:02 Tower2 kernel: [] do_IRQ+0x49/0xcd
Nov 11 13:04:02 Tower2 kernel: [] common_interrupt+0x6d/0x6d
Nov 11 13:04:02 Tower2 kernel: [] ? pfn_to_dma_pte+0x66/0x1e5
Nov 11 13:04:02 Tower2 kernel: [] intel_iommu_iova_to_phys+0x1d/0x31
Nov 11 13:04:02 Tower2 kernel: [] iommu_iova_to_phys+0x12/0x17
Nov 11 13:04:02 Tower2 kernel: [] vfio_remove_dma+0x7d/0x15e
Nov 11 13:04:02 Tower2 kernel: [] vfio_iommu_type1_ioctl+0x7d4/0x853
Nov 11 13:04:02 Tower2 kernel: [] ? kvm_set_memory_region+0x33/0x3c [kvm]
Nov 11 13:04:02 Tower2 kernel: [] vfio_fops_unl_ioctl+0x21e/0x247
Nov 11 13:04:02 Tower2 kernel: [] do_vfs_ioctl+0x351/0x415
Nov 11 13:04:02 Tower2 kernel: [] SyS_ioctl+0x38/0x61
Nov 11 13:04:02 Tower2 kernel: [] system_call_fastpath+0x16/0x1b
Nov 11 13:04:02 Tower2 kernel: handlers:
Nov 11 13:04:02 Tower2 kernel: [] usb_hcd_irq
Nov 11 13:04:02 Tower2 kernel: [] ata_bmdma_interrupt
Nov 11 13:04:02 Tower2 kernel: [] vfio_intx_handler
Nov 11 13:04:02 Tower2 kernel: Disabling IRQ #16
Nov 11 13:04:04 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:05 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:06 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:08 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:21 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:22 Tower2 kernel: usb 1-1.6: reset full-speed USB device number 4 using ehci-pci
Nov 11 13:04:35 Tower2 kernel: vfio-pci 0000:01:00.0: irq 46 for MSI/MSI-X

 

I made all Windows 8 related updates, rebooted and have a very nice running Windows 8 VM now. Don't know why the mess at the very beginning was coming from??

 

Anyhow here is my XML file:

<domain type='kvm' id='2' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>win8</name>
  <uuid>cc411d70-4463-4db7-bf36-d364c0cdaa9d</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <memoryBacking>
    <nosharepages/>
    <locked/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='1'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='3'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.1'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='2' cores='2' threads='1'/>
  </cpu>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none' io='native'/>
      <source file='/mnt/cache/.VMs/win8/win8.qcow2'/>
      <backingStore/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/.VMs/ISOs/virtio-win-0.1-81.iso'/>
      <backingStore/>
      <target dev='hdc' bus='sata'/>
      <readonly/>
      <alias name='sata0-0-2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <alias name='scsi0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </controller>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb0'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb0'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb0'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='sata0'/>
      <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'>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='02:16:3e:1a:b3:4a'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </interface>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x05af'/>
        <product id='0x0906'/>
        <address bus='1' device='4'/>
      </source>
      <alias name='hostdev0'/>
    </hostdev>
    <hostdev mode='subsystem' type='scsi' managed='no'>
      <source>
        <adapter name='scsi_host1'/>
        <address bus='0' target='1' unit='0'/>
      </source>
      <readonly/>
      <alias name='hostdev1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </hostdev>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=01:00.1,bus=pcie.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=00:1b.0,bus=pcie.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=05:00.0,bus=pcie.0'/>
  </qemu:commandline>
</domain>

 

I think that I can delete these lines:

    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>

 

jonp, even the DVD Drive is available!!!

DVD drive working finally?!?  Awesome!!!

Link to comment

Yes this is indeed awesome, at least for the Test&Backup Server.

 

Still struggling with the main server, don't know why it is not working there (win7 / win8 is not making any difference):

<domain type='kvm'>
  <name>win7</name>
  <uuid>36faa3ae-14f2-1f33-0532-99a325e4459e</uuid>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/mnt/cache/.VMs/win7/win7.qcow2'/>
      <target dev='hda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/.VMs/ISOs/virtio-win-0.1-81.iso'/>
      <target dev='hdd' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='1'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </controller>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 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>
    <interface type='bridge'>
      <mac address='00:16:3e:a1:bc:a5'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x0d8c'/>
        <product id='0x013c'/>
      </source>
      <address bus='2' device='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='scsi' managed='no'>
      <source>
        <adapter name='scsi_host2'/>
        <address bus='0' target='0' unit='0'/>
      </source>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

 

 

By the way....the Blu-Ray Drive is R/W, so I can remove the <readonly> entry, correct?

Link to comment

Yes this is indeed awesome, at least for the Test&Backup Server.

 

Still struggling with the main server, don't know why it is not working there (win7 / win8 is not making any difference):

<domain type='kvm'>
  <name>win7</name>
  <uuid>36faa3ae-14f2-1f33-0532-99a325e4459e</uuid>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/mnt/cache/.VMs/win7/win7.qcow2'/>
      <target dev='hda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/.VMs/ISOs/virtio-win-0.1-81.iso'/>
      <target dev='hdd' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='1'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </controller>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 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>
    <interface type='bridge'>
      <mac address='00:16:3e:a1:bc:a5'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x0d8c'/>
        <product id='0x013c'/>
      </source>
      <address bus='2' device='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='scsi' managed='no'>
      <source>
        <adapter name='scsi_host2'/>
        <address bus='0' target='0' unit='0'/>
      </source>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

 

 

By the way....the Blu-Ray Drive is R/W, so I can remove the <readonly> entry, correct?

Yup. Feel free to remove.

Link to comment

I am attempting to try and install a better Nvidia graphics card in my Windows 8 VM instead of my ATI card but I can having problems adding in the code for the XML. I am trying to add this to my XML file and it says its saves but it disappears in the XML file:

 <qemu:commandline>
      <qemu:arg value='-device'/>
      <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
      <qemu:arg value='-device'/>
      <qemu:arg value='vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
   </qemu:commandline>

 

So I enter that into the XML and save and it says successful but it doesn't actually save in the config (see my current config below). What am I doing wrong?

 

<domain type='kvm'>
  <name>windows8</name>
  <uuid>c1d6aa7b-dbc2-4096-8f81-0d49bb8a0c3a</uuid>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/vmdisk/vm_images/default/windows8.img'/>
      <target dev='hda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='bridge'>
      <mac address='52:54:00:00:00:04'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x046d'/>
        <product id='0x0b06'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc71b'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc71c'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x0d8c'/>
        <product id='0x0103'/>
      </source>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

 

Here is what VM Manager shows as my graphics card XML:

<device>
  <name>pci_0000_01_00_0</name>
  <path>/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0</path>
  <parent>pci_0000_00_01_0</parent>
  <driver>
    <name>vfio-pci</name>
  </driver>
  <capability type='pci'>
    <domain>0</domain>
    <bus>1</bus>
    <slot>0</slot>
    <function>0</function>
    <product id='0x0611'>G92 [GeForce 8800 GT]</product>
    <vendor id='0x10de'>NVIDIA Corporation</vendor>
    <iommuGroup number='12'>
      <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </iommuGroup>
    <pci-express>
      <link validity='cap' port='0' speed='2.5' width='16'/>
      <link validity='sta' speed='2.5' width='16'/>
    </pci-express>
  </capability>
</device>

Link to comment

FWIW: I was using this code to get my ATI graphics cards working: (I have attempted to try this with the Nvidia card but either it doesn't work or I am entering in the wrong values...)

 <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>

Link to comment

make your first line in the XML this...

 

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

 

It does the same thing where it says it was successful but the config does not change.

 

EDIT:

I found someone else's XML file and was successfully able to copy it to my machine. I'm off to bed now but hopefully tomorrow I can fiddle around some more.

Link to comment

Figured this would be the best thread to ask this question....

 

Does unRAID require a GPU? I don't have onboard graphics but I have 3 GPU's installed in my server. Currently 1 is reserved for Windows, 1 for xbmcbuntu, and 1 unRAID. I am using KVM and am curious if I can use the current unRAID gpu for a VM? I know there have been issues with iGPU but wasn't sure if this would work or not.

Link to comment

Just got my Nvidia 8800 GT card working! Thanks JustinChase for getting me pointed in the right direction!

 

XML Code:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>windows8-nvidia</name>
  <uuid>cc411d70-4463-4db7-bf36-d364c0cdaa9e</uuid>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
    <locked/>
  </memoryBacking>
  <vcpu placement='static'>2</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.1'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='2' cores='2' threads='1'/>
  </cpu>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/vmdisk/vm_images/default/windows8.img'/>
      <target dev='hda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </controller>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:00:00:04'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </interface>
    <input type='tablet' bus='usb'/>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x046d'/>
        <product id='0x0b06'/>
        <address bus='1' device='5'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc71b'/>
        <address bus='1' device='6'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc71c'/>
        <address bus='1' device='7'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x0d8c'/>
        <product id='0x0103'/>
        <address bus='1' device='3'/>
      </source>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
  </qemu:commandline>
</domain>

Link to comment
  • 2 months later...

ok so after many weeks reading many posts in the kvm thread I finally got passthrough working but I need some clarification on a few things and I'm hoping some of you guru's can help ,

 

the only way i can get passthrough to work so far is with 2 video cards installed - 1 for unraid and 1 for passthrough  ,is that the only way to do it or am i missing something?

 

  and further on that same issue, it will only work if the unraid card (gtx 210) is installed to the first pcie slot before my gtx 660 that I am passing through on the 2nd pcie slot, is that how it has to work or is it my hardware ?

 

when I have just the 660 installed or the the 660 in the 1st pcie slot I see the unraid console and when I start the vm the unraid console disappears and my screen just goes to no signal .

 

ok so first I want to post my hardware  because I never knew what anyone elses hardware was while going through xml's posted and thought maybe that was the issue but it was not, so :

 

asrock 990fx killer motherboard

AMD FX8350 processor

GTX 210 video card for unraid ?

MSI GTX 660 video card for passthrough

 

and next my go, syslinux and xml files:

 

go

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &

#bind pci
/usr/local/sbin/vfio-bind 0000:04:00.0 0000:04:00.1

 

syslinux.cfg

 

default /syslinux/menu.c32
menu title Lime Technology
prompt 0
timeout 50
label unRAID OS
  menu default
  kernel /bzimage
  append pcie_acs_override=downstream initrd=/bzroot
label unRAID OS Safe Mode (no plugins)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Memtest86+
  kernel /memtest
label Xen/unRAID OS
  kernel /syslinux/mboot.c32
  append /xen --- /bzimage --- /bzroot
label Xen/unRAID OS Safe Mode (no plugins)
  kernel /syslinux/mboot.c32
  append /xen --- /bzimage --- /bzroot unraidsafemode

 

and my xml with passthrough working and logitech wheel mouse passed through :

 

<domain type='kvm' id='2' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>window8_2</name>
  <uuid>b623fc02-b4b9-53e5-b120-0557c45e6d2a</uuid>
  <metadata>
    <snapshot1423446187>passthrough working and logitech mouse passed through</snapshot1423446187>
    <snapshots/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.1'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough'>
  </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/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/mnt/cache/kvm/vms/windows8_2/windows8_2.qcow2'/>
      <backingStore/>
      <target dev='hda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/kvm/isos/en_windows_8.1_pro_vl_with_update_x64_dvd_6050880.iso'/>
      <backingStore/>
      <target dev='hdc' bus='sata'/>
      <readonly/>
      <alias name='sata0-0-2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb0'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='sata0'/>
      <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'>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:49:78:59'/>
      <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/0'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc018'/>
        <address bus='4' device='2'/>
      </source>
      <alias name='hostdev0'/>
    </hostdev>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=04:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=04:00.1,bus=pcie.0'/>
  </qemu:commandline>
</domain>

 

 

I have more questions but these are the main things I would like to try and figure out for now so if anyone has answers I would be very grateful, and this thread seemed to be my go to through out this process thats why im posting it here but im going to list a few other posts that were helpful in my journey here.

 

many thank yous to all who posted in this thread and the ones below.

 

 

[PLUGIN] VM Manager

http://lime-technology.com/forum/index.php?topic=35858.0

 

First Pass-through attempt

http://lime-technology.com/forum/index.php?topic=37733.0

 

there are more but they're on my other machine ill edit when im at work

 

Link to comment

When you use GPU passthrough, and start a VM, it grabs that video card for itself and can't be used for the host system again until reboot.  You can use it for different VM's as long as you have only one VM that uses the GPU at a time. 

 

You do not need to use 2 GPUs.  You can run your unRAID system headless (no monitor).  Then just manage it through SSH and the webgui.  I have 2 GPU's in mine, and my ATI HD7770 is for my HTPC VM, and then my ATI R9 270X is for my gaming VM.  I don't have any output for the unRAID host system.

 

As for the order of the cards, unRAID is going to want to grab that first card, cause that's how the BIOS is going to load it. Unless you have a BIOS that allows you to choose the second card as your primary graphics card, the card in the first slot will always be the unRAID's card.

 

I recommend just going headless, though.  SSH gives you all the capabilities that you would want from a monitor'd connection anyway.

Link to comment

I'd second that, my desktop and my Unraid box are sitting next to one another and both plugged into the same monitor via different outputs, the only time I actually switch onto the the input for my Unraid box is when I need to access the bios. 

 

Otherwise I just use Putty along with screen for everything terminal related, otherwise GUI/Unmenu.

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.