Windows 10 VM only plays videos for 10 minutes!


Recommended Posts

I'm hoping someone else has come accross this issue and knows how to fix! I cannot play a video for longer than 10-11 minutes in any app, it just freezes and maybe stutters a bit but won't play any more without rebooting Windows! It's the same for Netflix app or in browser, Plex and even Pinnacle Studio Editor! I would like to use the VM to do simple video editing but this issue stops me. I've been battling with this since I switched to Unraid nearly a year ago. I don't know if it's a Windows thing or an Unraid thing and I've scoured the forums over and over but haven't found anyone with the same issue. I doubled the RAM in the machine so I could give the VM more hoping that would help, but it didn't, it just gave me a bit more time before it froze! In Windows I've tried adjusting the paging file but that makes no difference! The machine spec is in my signature, I passthrough the gpu and an USB3 card, firewire card and a sata card that has a DVD drive and a small HD for working files in the VM. This all seems to work fine! I've tried a new clean install of Windows 10 with only the GPU passed through and minimal cpu's and Ram and this one did exactly the same thing! I tried the standard Nvidia drivers and the full drivers downloaded from Nvidia same with both. My Ubuntu VM is fine though, with all the same stuff passed through to it, it'll play video all day long! I'd use this but there are some programs I need on Windows!

 

My XML, if anything else would help please ask.

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>Windows 10</name>
  <uuid>032e02b4-0499-0511-6306-3d0700080009</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>16777216</memory>
  <currentMemory unit='KiB'>16777216</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='8'/>
    <vcpupin vcpu='2' cpuset='3'/>
    <vcpupin vcpu='3' cpuset='9'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='10'/>
    <vcpupin vcpu='6' cpuset='5'/>
    <vcpupin vcpu='7' cpuset='11'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-3.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/032e02b4-0499-0511-6306-3d0700080009_VARS-pure-efi.fd</nvram>
  </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' check='none'>
    <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' discard='unmap'/>
      <source file='/mnt/user/domains/Windows 10/vdisk1.img'/>
      <target dev='hdc' bus='scsi'/>
      <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.171.iso'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </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='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <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>
    <interface type='bridge'>
      <mac address='52:54:00:36:ca:92'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </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='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <hostdev mode='subsystem' type='pci' managed='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' multifunction='on'/>
    </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='0x05' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc05b'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x1a2c'/>
        <product id='0x0c21'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
</domain>

 

Link to comment

Try creating a new template with same settings, except for:

  • Pick Q35-4.2 machine type
  • Point your vdisk path to /mnt/cache instead of /mnt/user

Also, while your VM is hanging (wait maybe 5 minutes just to be sure anything that can be logged has been logged)

  • Go to Tools -> Diagnostics -> attach zip file
  • Take a screenshot of your Dashboard (make sure it shows your CPU load)

Where is your video file stored? On the array? If so, I would suggest copying it down to your vdisk and try again to eliminate network-related issue.

 

 

 

Link to comment
19 hours ago, testdasi said:

Try creating a new template with same settings, except for:

  • Pick Q35-4.2 machine type
  • Point your vdisk path to /mnt/cache instead of /mnt/user

Also, while your VM is hanging (wait maybe 5 minutes just to be sure anything that can be logged has been logged)

  • Go to Tools -> Diagnostics -> attach zip file
  • Take a screenshot of your Dashboard (make sure it shows your CPU load)

Where is your video file stored? On the array? If so, I would suggest copying it down to your vdisk and try again to eliminate network-related issue.

 

 

 

Hi, thanks for trying to help, ufortunately the VM wont boot at all with those changes, it just gets stuck at tianocore screen and pegs one cpu to 100%? I think I did the changes correctly? Here is the new XML

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>Windows 10 test</name>
  <uuid>5cfd959b-b526-6260-d8e5-e3d3bc046cb2</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>16777216</memory>
  <currentMemory unit='KiB'>16777216</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='8'/>
    <vcpupin vcpu='2' cpuset='3'/>
    <vcpupin vcpu='3' cpuset='9'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='10'/>
    <vcpupin vcpu='6' cpuset='5'/>
    <vcpupin vcpu='7' cpuset='11'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/5cfd959b-b526-6260-d8e5-e3d3bc046cb2_VARS-pure-efi.fd</nvram>
  </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' check='none'>
    <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' discard='unmap'/>
      <source file='/mnt/cache/domains/Windows 10/vdisk1.img'/>
      <target dev='hdc' bus='scsi'/>
      <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.171.iso'/>
      <target dev='hdb' bus='sata'/>
      <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='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </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='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x9'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0xa'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0xb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0xc'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0xd'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
    </controller>
    <controller type='pci' index='7' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='7' port='0xe'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x6'/>
    </controller>
    <controller type='pci' index='8' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='8' port='0xf'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x7'/>
    </controller>
    <controller type='pci' index='9' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='9' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:da:ba:c8'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </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'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0' multifunction='on'/>
    </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='0x04' slot='0x00' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc05b'/>
      </source>
      <address type='usb' bus='0' port='1'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x1a2c'/>
        <product id='0x0c21'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
</domain>

 

tower-diagnostics-20200123-1034.zip

Link to comment
On 1/22/2020 at 2:51 PM, testdasi said:

Try creating a new template with same settings, except for:

  • Pick Q35-4.2 machine type
  • Point your vdisk path to /mnt/cache instead of /mnt/user

Also, while your VM is hanging (wait maybe 5 minutes just to be sure anything that can be logged has been logged)

  • Go to Tools -> Diagnostics -> attach zip file
  • Take a screenshot of your Dashboard (make sure it shows your CPU load)

Where is your video file stored? On the array? If so, I would suggest copying it down to your vdisk and try again to eliminate network-related issue.

 

 

 

Ok, so today I had time to play around some more! I installed Windows 10 fresh with Q35-4.2 and the minimum stuff passed through and still have the same issue with video freezing after 15mins or so! This was in Plex and in Netflix app. So I tried your suggestion of copying a file to the VM and played it in VLC and that works!! So I tried playing the same file in VLC through network from the array, that also works! So the problem has been narrowed down to streaming as Plex is direct streaming from the array and of course Netfilx is from the internet! Any ideas what could cause this? I know I can boot into Ubuntu VM to watch streams as it works fine there, but it's not alway convient to do that!

Cheers,

Tim

Link to comment
On 1/29/2020 at 1:22 AM, jonathanm said:

Just for troubleshooting try changing the network adapter type in the xml to e1000 or rtl8139 instead of virtio.

Ok so I have tried pluging a usb network card into the passed through usb3 pcie card and I get the same thing! The video plays for 10 mins max and then just stops! This is only streaming, from any source! What else can it be?

Link to comment

@MothyTim Try to monitor the temperatures of your GPU when you're playing a video? I have a feeling it could be a temperature issue. I had some similar behaviour on an old system where normal web browsing and doing office stuff worked fine, but if I started a game or did some video editing after a short time the gpu acted weird. Freezes, stuttering, system lock ups. I had to reseat the cooler on the gpu to make contact again with the die.

Link to comment
2 hours ago, bastl said:

@MothyTim Try to monitor the temperatures of your GPU when you're playing a video? I have a feeling it could be a temperature issue. I had some similar behaviour on an old system where normal web browsing and doing office stuff worked fine, but if I started a game or did some video editing after a short time the gpu acted weird. Freezes, stuttering, system lock ups. I had to reseat the cooler on the gpu to make contact again with the die.

Ok I'll try to do that, Ubuntu works fine though?

Link to comment
4 hours ago, bastl said:

@MothyTim Try to monitor the temperatures of your GPU when you're playing a video? I have a feeling it could be a temperature issue. I had some similar behaviour on an old system where normal web browsing and doing office stuff worked fine, but if I started a game or did some video editing after a short time the gpu acted weird. Freezes, stuttering, system lock ups. I had to reseat the cooler on the gpu to make contact again with the die.

Hi, thanks for the suggestion but the GPU doesn't get above 43c?

Cheers,

Tim

Link to comment
20 hours ago, SpaceInvaderOne said:

Hi @MothyTim

 

Please download the file in this post and run it as administrator on your windows 10 vm. MSI_util.exe

Select any references to gpu or sound and click apply, this will enable msi interrupts which may help you.

 

Also maybe try changing how you gpu is presented to the vm in this video here https://www.youtube.com/watch?v=QlTVANDndpM

 

Hi @SpaceInvaderOne

 

Firstly thanks for all the videos, they've helped me loads since I moved to the Unraid platform!

 

Ok I tried the MSI interupts as you suggested, but alas no help, in fact that made it worse and the videos will only play for a minute before stopping! So I put them back as they were and now I'm back to around 10 mins play time!

 

Yes I saw your video a couple of weeks ago and had already done your suggestions!

 

Here is my current XML

 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='24'>
  <name>Windows 10</name>
  <uuid>032e02b4-0499-0511-6306-3d0700080009</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>16777216</memory>
  <currentMemory unit='KiB'>16777216</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='8'/>
    <vcpupin vcpu='2' cpuset='3'/>
    <vcpupin vcpu='3' cpuset='9'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='10'/>
    <vcpupin vcpu='6' cpuset='5'/>
    <vcpupin vcpu='7' cpuset='11'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-3.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/032e02b4-0499-0511-6306-3d0700080009_VARS-pure-efi.fd</nvram>
  </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' check='none'>
    <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' discard='unmap'/>
      <source file='/mnt/cache/domains/Windows 10/vdisk1.img' index='2'/>
      <backingStore/>
      <target dev='hdc' bus='scsi'/>
      <boot order='1'/>
      <alias name='scsi0-0-0-2'/>
      <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.171.iso' index='1'/>
      <backingStore/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <alias name='ide0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <alias name='scsi0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <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>
    <interface type='bridge'>
      <mac address='52:54:00:36:ca:92'/>
      <source bridge='br0'/>
      <target dev='vnet1'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/1'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <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-24-Windows 10/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </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'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </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='0x00' slot='0x05' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev3'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc05b'/>
        <address bus='1' device='3'/>
      </source>
      <alias name='hostdev5'/>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x1a2c'/>
        <product id='0x0c21'/>
        <address bus='1' device='6'/>
      </source>
      <alias name='hostdev6'/>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
</domain>

 

Link to comment

Try going right back to basics:

 

Create a new Windows VM.  OVMF, Q35-4.2.  Give it 4 cores and maybe 8GB of RAM.  Makes sure its on your cache.   And nothing else - just as bone-stock as you can get it.  

 

Install windows and use VNC or RDP to access.  Play a video - it'll run like garbage (probably) but you just want to see if it runs for longer than 10 minutes.  

Link to comment
On 2/8/2020 at 3:08 AM, toastman said:

Try going right back to basics:

 

Create a new Windows VM.  OVMF, Q35-4.2.  Give it 4 cores and maybe 8GB of RAM.  Makes sure its on your cache.   And nothing else - just as bone-stock as you can get it.  

 

Install windows and use VNC or RDP to access.  Play a video - it'll run like garbage (probably) but you just want to see if it runs for longer than 10 minutes.  

Hi @toastman

 

Ok so that works! But as soon as I passthrough the GPU it stops working! Is it a dodgy graphics card or just that Qemu doesn't like it for some reason?

 

Cheers,

Tim

Link to comment
On 2/10/2020 at 7:02 AM, MothyTim said:

Hi @toastman

 

Ok so that works! But as soon as I passthrough the GPU it stops working! Is it a dodgy graphics card or just that Qemu doesn't like it for some reason?

 

Cheers,

Tim

Not sure yet.  Still some steps to do, but at least you know its not your system, unRAID, your VM, etc.  

And the fact that you say Ubuntu works properly says its less likely your GPU - but it still may be...

 

I'd suggest creating a new VM.  Same details as before, but passthrough your GPU and a keyboard/mouse.  Nothing else, and no VNC.  Presuming you have a monitor attached it should come up right away.  If it does, install Windows - again, as bone-stock as possible.  Don't install Nvidia drivers - just let Windows do its thing.  One it's done, use Edge to watch a Youtube video.  See if anything changes.  

Edited by toastman
Link to comment
15 hours ago, toastman said:

Not sure yet.  Still some steps to do, but at least you know its not your system, unRAID, your VM, etc.  

And the fact that you say Ubuntu works properly says its less likely your GPU - but it still may be...

 

I'd suggest creating a new VM.  Same details as before, but passthrough your GPU and a keyboard/mouse.  Nothing else, and no VNC.  Presuming you have a monitor attached it should come up right away.  If it does, install Windows - again, as bone-stock as possible.  Don't install Nvidia drivers - just let Windows do its thing.  One it's done, use Edge to watch a Youtube video.  See if anything changes.  

Hi @toastman

 

Ok so I have done that and it worked! So the only thing differrent to my tests before was that I didn't pass through my USB card! I was passing it through for the USB sound card that was plugged into it! So I moved the USB sound dongle to my motherboard and passed it through with mouse and keyboard this worked! So did the same with my main VM and that's worked! I can watch stuff from Netfilx and on Plex!

 

So is my USB3 card faulty or does it just not like being passed through? Its a "VIA Technologies, Inc. VL805 USB 3.0 Host Controller".  I thought that pluging the sound into it would be the best way?

Cheers,

Tim

Link to comment
On 2/12/2020 at 9:20 AM, MothyTim said:

Hi @toastman

 

Ok so I have done that and it worked! So the only thing differrent to my tests before was that I didn't pass through my USB card! I was passing it through for the USB sound card that was plugged into it! So I moved the USB sound dongle to my motherboard and passed it through with mouse and keyboard this worked! So did the same with my main VM and that's worked! I can watch stuff from Netfilx and on Plex!

 

So is my USB3 card faulty or does it just not like being passed through? Its a "VIA Technologies, Inc. VL805 USB 3.0 Host Controller".  I thought that pluging the sound into it would be the best way?

Cheers,

Tim

Interesting.  So it was more likely a sound problem than a video problem.  

Maybe there is something in how the USB sound interacts with the USB card...  Odd.  But at least you got it working.

 

I would think that, all things being equal, passing through the dongle, versus passing through a whole card should have zero difference in sound quality itself - only in operation.  You've discovered there is a difference - it doesn't work one way.  

Link to comment
  • 2 weeks later...
On 2/18/2020 at 2:54 AM, toastman said:

Interesting.  So it was more likely a sound problem than a video problem.  

Maybe there is something in how the USB sound interacts with the USB card...  Odd.  But at least you got it working.

 

I would think that, all things being equal, passing through the dongle, versus passing through a whole card should have zero difference in sound quality itself - only in operation.  You've discovered there is a difference - it doesn't work one way.  

Yes it seems that way, glad it wasn’t the video card as that would have been expensive to replace! It’s been working ok since so all good I think!

 

thanks for your help and forcing me back to basics, hadn’t occurred to me to not pass through the sound as a test!

 

cheers

Tim

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.