Jump to content

DEOVI

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by DEOVI

  1. 1 hour ago, Crosbe said:

    So, I bought the MK2. And now everything is going as I imagined.

    My config, SAS controller, Network card, Graphic card, capture card.

     

    Can you tell me how to view the properties? To see if the PCI info is displayed correctly.

     

    That's good news! So the Mk2 fixed the multiple device issue?

     

    You can find the link in the original post, what it says is
     

    Quote

    Check PCIe lane Speed

    How to check which PCIe speed 4K60 Pro MK.2 is using in software.

     

    1) Download and install OBS Studio. 

     

    2) Open OBS Studio

     

    3) In the sources box, click the + button or right-click 

     

    4) Select Video Capture Device and give the source a name

     

    5) From the dropdown menu, select Elgato Game Capture 4K60 Pro MK.2

     

    6) In the properties area, click on Configure. The 4K60 Pro MK.2 driver panel will open. 

     

    7) Look for the PCI Info and ensure it reads as Gen 2 x4

     

  2. 10 hours ago, Crosbe said:

    What motherboard do you have now? I have the same attitude, nevertheless I have the 4 pcie entries. But I'll just try to use the same 0a:00.0 entry. Thank you for your quick response.

     

    I have the Asus ROG STRIX X570-F GAMING motherboard.

     

    I tried with "both" but the VM and the Unraid Server crashed when I passthrough the capture card.  I don't think that works with the Mk1.

     

    i have tested the multi-function and the downstream in Advanced Vm Manager settings, now i can see the Card in Obs and Elgato Software, but i have no signal, wenn i reboot the vm unraid server crashed and reboot.

     

    I

     

    I'm using an Asus PRIME X470-PRO. I was using another board at the time of the righting of this post (mentioned in original post). I understand that not all motherboards use the entirety of the PCIe Bus when many devices are used. My guess is that the "Strix" line doesn't support PCIe as well as the board I just mentioned. I noticed this when I tried to add a third card to the last slot and I started to get the same PCIe Bux limitation on the last card. I suppose it's a good reason to go with a ThreadRipper. 

    In my case, I managed to pass a 2070 Super and a capture card to the VM, but that's it. I can't pass in a USB hub so for the webcams I'm using Unraid's USB device selector prior to booting the VM.

  3. 1 hour ago, Crosbe said:

    Hi, I want my Elgato 4k60 Pro passthrough in a win 11 VM. But I have several in my VFIO list

    04:00.0 Multimedia controller: YUAN High-Tech Development Co., Ltd. Device 0371

    05:00.0 Multimedia controller: YUAN High-Tech Development Co., Ltd. Device 0371

    06:00.0 Multimedia controller: YUAN High-Tech Development Co., Ltd. Device 0371

    07:00.0 Multimedia controller: YUAN High-Tech Development Co., Ltd. Device 0371

    entries.

     

    Do you have all passthrough or just one. Thanks


    I only have this


    [12ab:0710] 0a:00.0 Multimedia controller: YUAN High-Tech Development Co., Ltd. Device 0710

     

    I passed it through using PCIe ACS Override under "Both", under the Advanced VM Manger settings.

     

     

  4. Hey there everyone,

     

    I've recently managed to create a Windows 10 VM for streaming and I managed to do a passthrough of an ElGato 4K60 Pro Mk.2 using vfio-pci binding and alongside a Nvidia 970. At start I was getting an image issue since I was getting an odd green screen and I began to look into using ElGato's 4K Capture Utility to see if I got the same image that I was getting on OBS and I did...

    782965331_Screenshot2023-01-26101931.thumb.png.417fc0d66e92898389927acd2116af01.png

     

    I started looking into the setting I noticed that if I changed the EDID mode to 'Display' the error would be fixed.

    1615473462_Screenshot2023-01-26101952.thumb.png.472e91dc151dd0b244082955f31af077.png

    2106442722_Screenshot2023-01-26102050.thumb.png.aad78d85212b556e537120a0a30788b7.png

    Now, here's what I found so far and where I'm asking help. After looking into the matter, I realized that if you go to higher resolutions, the capture card will not work correctly. That EDID mode pretty much states the resolution of the capture, and the 'internal' capture is 4K. When it goes that high, it doesn't work giving the green bars from the image above. I tested this by trying to capture a high-resolution display and it gave the same issue.

     

    I looked up this error, and lucky enough I think I found the problem. It seems that the VM that was created is not passing in the Capture card with the correct PCI-e Bus. I checked the motherboard specs, and it says that that all PCI-e slot is a Gen 3, it shouldn't be a problem (Asus ROG STRIX B550-F GAMING second PCI-e slot). 

    Here's the discrepancy I'm trying to resolve. The ElGato Documentation states that the card should sit on a Gen2x4 connection. But mine is registered as Gen2x1.

     

    Is there a way I can change the specs on how the card should be passed through and force it to be the correct PCI GEN?

     

    obs64_POd1UILskl.png.5c9bb7d4d135d49a237022a5148ef20e.png

    Elgato 4K60 Pro MK.2 - Green or distorted video – Elgato

     

    VM

    1380995784_VMCapture.png.10d57a759d1aeb6bfe31137e0c91e571.png

     

     

  5. Hey guys,

     

    I managed to update my XML to have the sound card set on a separate bus. I managed to boot the VM with the sound card but now I'm getting this error.

     

    image.thumb.png.8a72c5a28f9cf663107de777c5a8e954.png

     

     

    I tried changing the bus and I still get the same error.

    This is the device information: [13f6:5011] 0d:00.0 Audio device: C-Media Electronics Inc CM8888 [Oxygen Express]

     

    and the XML 

     

    <?xml version='1.0' encoding='UTF-8'?>
    <domain type='kvm' id='2' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
      <name>Windows 10</name>
      <uuid>8e8a7f0b-ae27-ccc2-6b85-588cc0651f85</uuid>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
      </metadata>
      <memory unit='KiB'>8388608</memory>
      <currentMemory unit='KiB'>8388608</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>8</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='1'/>
        <vcpupin vcpu='1' cpuset='9'/>
        <vcpupin vcpu='2' cpuset='3'/>
        <vcpupin vcpu='3' cpuset='11'/>
        <vcpupin vcpu='4' cpuset='5'/>
        <vcpupin vcpu='5' cpuset='13'/>
        <vcpupin vcpu='6' cpuset='7'/>
        <vcpupin vcpu='7' cpuset='15'/>
      </cputune>
      <resource>
        <partition>/machine</partition>
      </resource>
      <os>
        <type arch='x86_64' machine='pc-i440fx-5.1'>hvm</type>
      </os>
      <features>
        <acpi/>
        <apic/>
      </features>
      <cpu mode='host-passthrough' check='none' migratable='on'>
        <topology sockets='1' dies='1' cores='4' threads='2'/>
        <cache mode='passthrough'/>
        <feature policy='require' name='topoext'/>
      </cpu>
      <clock offset='localtime'>
        <timer name='rtc' tickpolicy='catchup'/>
        <timer name='pit' tickpolicy='delay'/>
        <timer name='hpet' present='no'/>
      </clock>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>restart</on_crash>
      <devices>
        <emulator>/usr/local/sbin/qemu</emulator>
        <disk type='file' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source file='/mnt/user/domains/Windows 10/vdisk1.img' index='3'/>
          <backingStore/>
          <target dev='hdc' bus='virtio'/>
          <boot order='1'/>
          <alias name='virtio-disk2'/>
          <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/user/isos/Windows/Windows 07072021.iso' index='2'/>
          <backingStore/>
          <target dev='hda' bus='sata'/>
          <readonly/>
          <boot order='2'/>
          <alias name='sata0-0-0'/>
          <address type='drive' controller='0' bus='0' target='0' unit='0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/user/isos/virtio-win-0.1.190-1.iso' index='1'/>
          <backingStore/>
          <target dev='hdb' bus='sata'/>
          <readonly/>
          <alias name='sata0-0-1'/>
          <address type='drive' controller='0' bus='0' target='0' unit='1'/>
        </disk>
        <controller type='usb' index='0' model='qemu-xhci' ports='15'>
          <alias name='usb'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <alias name='virtio-serial0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
        </controller>
        <controller type='pci' index='0' model='pci-root'>
          <alias name='pci.0'/>
        </controller>
        <controller type='sata' index='0'>
          <alias name='sata0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
        </controller>
        <controller type='pci' index='1' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='1'/>
          <alias name='pci.1'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
        </controller>
        <controller type='pci' index='2' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='2'/>
          <alias name='pci.2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
        </controller>
        <controller type='pci' index='3' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='3'/>
          <alias name='pci.3'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
        </controller>
        <controller type='pci' index='4' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='4'/>
          <alias name='pci.4'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
        </controller>
        <controller type='pci' index='5' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='5'/>
          <alias name='pci.5'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/>
        </controller>
        <controller type='pci' index='6' model='pci-bridge'>
          <model name='pci-bridge'/>
          <target chassisNr='6'/>
          <alias name='pci.6'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x0d' function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:a2:ab:8b'/>
          <source bridge='br0'/>
          <target dev='vnet0'/>
          <model type='virtio-net'/>
          <alias name='net0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </interface>
        <serial type='pty'>
          <source path='/dev/pts/0'/>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
          <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>
        <channel type='unix'>
          <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-2-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='3'/>
        </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' xvga='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x10' slot='0x00' function='0x0'/>
          </source>
          <alias name='hostdev0'/>
          <rom file='/mnt/user/isos/EVGA.GTX970.4096.140909.rom'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x10' slot='0x00' function='0x1'/>
          </source>
          <alias name='hostdev1'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x0d' slot='0x00' function='0x0'/>
          </source>
          <alias name='hostdev2'/>
          <address type='pci' domain='0x0000' bus='0x06' slot='0x09' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x046d'/>
            <product id='0xc52b'/>
            <address bus='1' device='5'/>
          </source>
          <alias name='hostdev3'/>
          <address type='usb' bus='0' port='1'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x28de'/>
            <product id='0x1142'/>
            <address bus='3' device='3'/>
          </source>
          <alias name='hostdev4'/>
          <address type='usb' bus='0' port='2'/>
        </hostdev>
        <memballoon model='none'/>
      </devices>
      <seclabel type='dynamic' model='dac' relabel='yes'>
        <label>+0:+100</label>
        <imagelabel>+0:+100</imagelabel>
      </seclabel>
      <qemu:commandline>
        <qemu:arg value='-set'/>
        <qemu:arg value='device.hostdev2.x-msix-relocation=bar2'/>
      </qemu:commandline>
    </domain>

     

    I tried to install the sound cards driver but it will not recognize the card and installation fails. 

     

    Any help on why this is occurring would be appreciated. 

  6. 1 hour ago, DEOVI said:

    Hey guys,

    I stumbled on the same issue and was wondering if there was a solution. I did made as far as getting the error out of the way.

    I found this post on the forums and it cleared the error. MY VM is up now with the sound card enabled on Unraid; detail is that I don't see it within the VM itself. I tried to run the sound card driver and no luck.

     

    Atheros AR9280 Wireless Card BAR error - VM Engine (KVM) - Unraid

    https://forums.unraid.net/topic/120232-atheros-ar9280-wireless-card-bar-error/

     

    - ghost82

     

    ...
    ...
        <qemu:commandline>
          <qemu:arg value='-set'/>
          <qemu:arg value='device.hostdev1.x-msix-relocation=bar2'/>
        </qemu:commandline>
      </domain>

     

     

    If anyone has an update, it would be great.

     

    Update:

     

    I can confirm as far as this. The sound card is passed but it's not recognized correctly. The installer attempts to locate the device but it's unsuccessful due to it's current state.
     

    image.thumb.png.44c1a8713aa3179866459a7919ac23e7.png

     

    Here's the XML

     

    <?xml version='1.0' encoding='UTF-8'?>
    <domain type='kvm' id='1' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
      <name>Windows 10</name>
      <uuid>8e8a7f0b-ae27-ccc2-6b85-588cc0651f85</uuid>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
      </metadata>
      <memory unit='KiB'>8388608</memory>
      <currentMemory unit='KiB'>8388608</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>8</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='1'/>
        <vcpupin vcpu='1' cpuset='9'/>
        <vcpupin vcpu='2' cpuset='3'/>
        <vcpupin vcpu='3' cpuset='11'/>
        <vcpupin vcpu='4' cpuset='5'/>
        <vcpupin vcpu='5' cpuset='13'/>
        <vcpupin vcpu='6' cpuset='7'/>
        <vcpupin vcpu='7' cpuset='15'/>
      </cputune>
      <resource>
        <partition>/machine</partition>
      </resource>
      <os>
        <type arch='x86_64' machine='pc-i440fx-5.1'>hvm</type>
      </os>
      <features>
        <acpi/>
        <apic/>
      </features>
      <cpu mode='host-passthrough' check='none' migratable='on'>
        <topology sockets='1' dies='1' cores='4' threads='2'/>
        <cache mode='passthrough'/>
        <feature policy='require' name='topoext'/>
      </cpu>
      <clock offset='localtime'>
        <timer name='rtc' tickpolicy='catchup'/>
        <timer name='pit' tickpolicy='delay'/>
        <timer name='hpet' present='no'/>
      </clock>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>restart</on_crash>
      <devices>
        <emulator>/usr/local/sbin/qemu</emulator>
        <disk type='file' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source file='/mnt/user/domains/Windows 10/vdisk1.img' index='3'/>
          <backingStore/>
          <target dev='hdc' bus='virtio'/>
          <boot order='1'/>
          <alias name='virtio-disk2'/>
          <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/user/isos/Windows/Windows 07072021.iso' index='2'/>
          <backingStore/>
          <target dev='hda' bus='sata'/>
          <readonly/>
          <boot order='2'/>
          <alias name='sata0-0-0'/>
          <address type='drive' controller='0' bus='0' target='0' unit='0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/user/isos/virtio-win-0.1.190-1.iso' index='1'/>
          <backingStore/>
          <target dev='hdb' bus='sata'/>
          <readonly/>
          <alias name='sata0-0-1'/>
          <address type='drive' controller='0' bus='0' target='0' unit='1'/>
        </disk>
        <controller type='usb' index='0' model='qemu-xhci' ports='15'>
          <alias name='usb'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <alias name='virtio-serial0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
        </controller>
        <controller type='pci' index='0' model='pci-root'>
          <alias name='pci.0'/>
        </controller>
        <controller type='sata' index='0'>
          <alias name='sata0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:a2:ab:8b'/>
          <source bridge='br0'/>
          <target dev='vnet0'/>
          <model type='virtio-net'/>
          <alias name='net0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </interface>
        <serial type='pty'>
          <source path='/dev/pts/0'/>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
          <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>
        <channel type='unix'>
          <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-1-Windows 10/org.qemu.guest_agent.0'/>
          <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
          <alias name='channel0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <input type='tablet' bus='usb'>
          <alias name='input0'/>
          <address type='usb' bus='0' port='3'/>
        </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' xvga='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x10' slot='0x00' function='0x0'/>
          </source>
          <alias name='hostdev0'/>
          <rom file='/mnt/user/isos/EVGA.GTX970.4096.140909.rom'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x10' slot='0x00' function='0x1'/>
          </source>
          <alias name='hostdev1'/>
          <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='0x0d' slot='0x00' function='0x0'/>
          </source>
          <alias name='hostdev2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x046d'/>
            <product id='0xc52b'/>
            <address bus='1' device='5'/>
          </source>
          <alias name='hostdev3'/>
          <address type='usb' bus='0' port='1'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x28de'/>
            <product id='0x1142'/>
            <address bus='3' device='3'/>
          </source>
          <alias name='hostdev4'/>
          <address type='usb' bus='0' port='2'/>
        </hostdev>
        <memballoon model='none'/>
      </devices>
      <seclabel type='dynamic' model='dac' relabel='yes'>
        <label>+0:+100</label>
        <imagelabel>+0:+100</imagelabel>
      </seclabel>
      <qemu:commandline>
        <qemu:arg value='-set'/>
        <qemu:arg value='device.hostdev2.x-msix-relocation=bar2'/>
      </qemu:commandline>
    </domain>

     

     

  7. Hey guys,

    I stumbled on the same issue and was wondering if there was a solution. I did made as far as getting the error out of the way.

    I found this post on the forums and it cleared the error. MY VM is up now with the sound card enabled on Unraid; detail is that I don't see it within the VM itself. I tried to run the sound card driver and no luck.

     

    Atheros AR9280 Wireless Card BAR error - VM Engine (KVM) - Unraid

    https://forums.unraid.net/topic/120232-atheros-ar9280-wireless-card-bar-error/

     

    Quote

    In that discussion, some user is reporting it working with the following mod, try to add custom qemu arg at the bottom of your xml, before </domain>.

    From your picture your pci passthrough should have the alias hostdev1. 

    - ghost82

     

    ...
    ...
        <qemu:commandline>
          <qemu:arg value='-set'/>
          <qemu:arg value='device.hostdev1.x-msix-relocation=bar2'/>
        </qemu:commandline>
      </domain>

     

     

    If anyone has an update, it would be great.

×
×
  • Create New...