Jump to content

harika

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by harika

  1. Good Morning, Could anyone help me format my XML for PCIe card pass-through? I think I am getting stuck on the fact that my card is seen connecting off of a PCIe port... highlighted below.

     

    root@Tower:~# lsusb

    Bus 006 Device 002: ID 8087:8000 Intel Corp.

    Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

    Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

    Bus 004 Device 004: ID 2109:0812

    Bus 004 Device 003: ID 2109:0812

    Bus 004 Device 002: ID 2109:0812

    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

    Bus 003 Device 004: ID 1a7c:0191 Evoluent VerticalMouse 4

    Bus 003 Device 006: ID 2109:2812

    Bus 003 Device 007: ID 18f8:0f97

    Bus 003 Device 003: ID 2109:2812

    Bus 003 Device 002: ID 2109:2812

    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 005 Device 002: ID 8087:8008 Intel Corp.

    Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 002 Device 002: ID 174c:3074 ASMedia Technology Inc.

    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

    Bus 001 Device 005: ID 1532:010b Razer USA, Ltd

    Bus 001 Device 004: ID e0ff:0005

    Bus 001 Device 003: ID 0781:5583 SanDisk Corp.

    Bus 001 Device 002: ID 174c:2074 ASMedia Technology Inc.

    Bus 001 Device 006: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    ___________________________________________________

     

    root@Tower:~# readlink /sys/bus/usb/devices/usb1

    ../../../devices/pci0000:00/0000:00:14.0/usb1

    root@Tower:~# readlink /sys/bus/usb/devices/usb2

    ../../../devices/pci0000:00/0000:00:14.0/usb2

    root@Tower:~# readlink /sys/bus/usb/devices/usb3

    ../../../devices/pci0000:00/0000:00:1c.5/0000:05:00.0/usb3

    root@Tower:~# readlink /sys/bus/usb/devices/usb4

    ../../../devices/pci0000:00/0000:00:1c.5/0000:05:00.0/usb4

    root@Tower:~# readlink /sys/bus/usb/devices/usb5

    ../../../devices/pci0000:00/0000:00:1a.0/usb5

    root@Tower:~# readlink /sys/bus/usb/devices/usb6

    ../../../devices/pci0000:00/0000:00:1d.0/usb6

    root@Tower:~# readlink /sys/bus/usb/devices/usb7

    ../../../devices/pci0000:00/0000:00:1c.6/0000:06:00.0/0000:07:01.2/usb7

    root@Tower:~# readlink /sys/bus/usb/devices/usb8

    ../../../devices/pci0000:00/0000:00:1c.6/0000:06:00.0/0000:07:01.0/usb8

    root@Tower:~# readlink /sys/bus/usb/devices/usb9

    ../../../devices/pci0000:00/0000:00:1c.6/0000:06:00.0/0000:07:01.1/usb9

     

    ___________________________________________________

    root@Tower:~# lspci | grep USB

    00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)

    00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)

    00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)

    05:00.0 USB controller: Fresco Logic Device 1100 (rev 10)

    07:01.0 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)

    07:01.1 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)

    07:01.2 USB controller: VIA Technologies, Inc. USB 2.0 (rev 63)

    root@Tower:~#

     

    UNRAID

    ___________________________________________________

     

    PCI Devices

     

    00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)

    00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)

    00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)

    00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)

    00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)

    00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)

    00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 04)

    00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)

    00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)

    00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)

    00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d4)

    00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d4)

    00:1c.5 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6 (rev d4)

    00:1c.6 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d4)

    00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)

    00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 04)

    00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04)

    00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)

    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cypress PRO [Radeon HD 5850]

    01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cypress HDMI Audio [Radeon HD 5800 Series]

    03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

    04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

    05:00.0 USB controller: Fresco Logic Device 1100 (rev 10)

    06:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03)

    07:01.0 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)

    07:01.1 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)

    07:01.2 USB controller: VIA Technologies, Inc. USB 2.0 (rev 63)

     

    ___________________________________________________

    IOMMU Groups

     

    /sys/kernel/iommu_groups/0/devices/0000:00:00.0

    /sys/kernel/iommu_groups/1/devices/0000:00:01.0

    /sys/kernel/iommu_groups/1/devices/0000:01:00.0

    /sys/kernel/iommu_groups/1/devices/0000:01:00.1

    /sys/kernel/iommu_groups/2/devices/0000:00:02.0

    /sys/kernel/iommu_groups/3/devices/0000:00:03.0

    /sys/kernel/iommu_groups/4/devices/0000:00:14.0

    /sys/kernel/iommu_groups/5/devices/0000:00:16.0

    /sys/kernel/iommu_groups/6/devices/0000:00:19.0

    /sys/kernel/iommu_groups/7/devices/0000:00:1a.0

    /sys/kernel/iommu_groups/8/devices/0000:00:1b.0

    /sys/kernel/iommu_groups/9/devices/0000:00:1c.0

    /sys/kernel/iommu_groups/10/devices/0000:00:1c.2

    /sys/kernel/iommu_groups/11/devices/0000:00:1c.4

    /sys/kernel/iommu_groups/12/devices/0000:00:1c.5

    /sys/kernel/iommu_groups/13/devices/0000:00:1c.6

    /sys/kernel/iommu_groups/13/devices/0000:06:00.0

    /sys/kernel/iommu_groups/13/devices/0000:07:01.0

    /sys/kernel/iommu_groups/13/devices/0000:07:01.1

    /sys/kernel/iommu_groups/13/devices/0000:07:01.2

    /sys/kernel/iommu_groups/14/devices/0000:00:1d.0

    /sys/kernel/iommu_groups/15/devices/0000:00:1f.0

    /sys/kernel/iommu_groups/15/devices/0000:00:1f.2

    /sys/kernel/iommu_groups/15/devices/0000:00:1f.3

    /sys/kernel/iommu_groups/16/devices/0000:03:00.0

    /sys/kernel/iommu_groups/17/devices/0000:04:00.0

    /sys/kernel/iommu_groups/18/devices/0000:05:00.0

     

    ___________________________________________________

    USB Devices

    Bus 006 Device 002: ID 8087:8000 Intel Corp.

    Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

    Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

    Bus 004 Device 004: ID 2109:0812 

    Bus 004 Device 003: ID 2109:0812 

    Bus 004 Device 002: ID 2109:0812 

    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

    Bus 003 Device 004: ID 1a7c:0191 Evoluent VerticalMouse 4

    Bus 003 Device 006: ID 2109:2812 

    Bus 003 Device 007: ID 18f8:0f97 

    Bus 003 Device 003: ID 2109:2812 

    Bus 003 Device 002: ID 2109:2812 

    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 005 Device 002: ID 8087:8008 Intel Corp.

    Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 002 Device 002: ID 174c:3074 ASMedia Technology Inc.

    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

    Bus 001 Device 005: ID 1532:010b Razer USA, Ltd

    Bus 001 Device 004: ID e0ff:0005 

    Bus 001 Device 003: ID 0781:5583 SanDisk Corp.

    Bus 001 Device 002: ID 174c:2074 ASMedia Technology Inc.

    Bus 001 Device 006: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

     

     

    ---------------------------------XML--------------------

     

    <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
      <name>w7x64-har</name>
      <uuid>03456cee-2570-0de7-0cdb-a24411528728</uuid>
      <description>har</description>
      <metadata>
        <vmtemplate name="Custom" icon="windows7.png" os="windows7"/>
      </metadata>
      <memory unit='KiB'>4194304</memory>
      <currentMemory unit='KiB'>4194304</currentMemory>
      <memoryBacking>
        <nosharepages/>
        <locked/>
      </memoryBacking>
      <vcpu placement='static'>2</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='0'/>
        <vcpupin vcpu='1' cpuset='1'/>
      </cputune>
      <os>
        <type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type>
      </os>
      <features>
        <acpi/>
        <apic/>
        <hyperv>
          <relaxed state='on'/>
          <vapic state='on'/>
          <spinlocks state='on' retries='8191'/>
        </hyperv>
      </features>
      <cpu mode='host-passthrough'>
        <topology sockets='1' cores='2' threads='1'/>
      </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='raw' cache='writeback'/>
          <source file='/mnt/disk8/w7x64-har/vdisk1.img'/>
          <target dev='hdc' bus='virtio'/>
          <boot order='1'/>
          <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/ISO/en-ru_windows_all_aio_70in1_with_update_x86-x64_v15.12.19.iso'/>
          <target dev='hda' bus='ide'/>
          <readonly/>
          <boot order='2'/>
          <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/ISO/virtio-win-0.1.112.iso'/>
          <target dev='hdb' bus='ide'/>
          <readonly/>
          <address type='drive' controller='0' bus='0' target='0' unit='1'/>
        </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'/>
        <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='0x03' function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:5a:4f:a2'/>
          <source bridge='br0'/>
          <model type='virtio'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </interface>
        <serial type='pty'>
          <target port='0'/>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
        <channel type='unix'>
          <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/w7x64-har.org.qemu.guest_agent.0'/>
          <target type='virtio' name='org.qemu.guest_agent.0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <memballoon model='virtio'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
        </memballoon>
      </devices>
      <qemu:commandline>
        <qemu:arg value='-device'/>
        <qemu:arg value='ioh3420,bus=pci.0,addr=1c.0,multifunction=on,port=2,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=00:1b.0,bus=root.1,addr=01.0'/>
      </qemu:commandline>
    </domain>
    

×
×
  • Create New...