[vfio-users] X99 Platform Setup - VM crashes when powering on.

Broll d.dracon at gmail.com
Sat Feb 27 09:06:38 UTC 2016


Hello everyone,

First of all, thank you for the wonderful guide and your additions via
the mailing list. Without it, a new user like me wouldn't be able to
get this far not even by a long shot. I cannot thank you all enough.

Now to my issue.

I am certain I have made errors to the setup, but I am not sure as to
what I have done wrong.

I have attached some .txt files with what I have edited to make it
simple for those that wouldn't mind having a look.

I am certain I have made errors on binding the 980Ti on the virtual
machine correctly, or I haven't unbound it correctly from the
host.(Forgive me for not being certain, I am still learning) I believe
this is so, because the VM works fine when I remove the device from the
gui on KVM, and it boots and functions perfectly.
When I add the PCI slot to the guest configuration on KVM though, it
starts but when windows are loading it crashes and sometimes even the
host freezes.

If you need me to provide any other info, please let me know and I will
e happy to do so.

Thank you in advance for your time to read this, and I wish you good
luck to your endeavors.

Best Regards,
Dennis

-------------- next part --------------
add_drivers+="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"
install_items+="/sbin/vfio-pci-override-vga.sh /usr/bin/find /usr/bin/dirname"

-------------- next part --------------
install vfio-pci /sbin/vfio-pci-override-vga.sh
options vfio-pci ids=10de:0fb0,10de:17c8

-------------- next part --------------
My setup:

Motherboard: Asus X99-E WS usb 3.1
CPU        : Intel Xeon E5 1650-V3
RAM        : 2x16Gb ECC Registered Ram
VGA 1      : EVGA Nvidia 710 2Gb on 05:00.0
VGA 2      : EVGA Nvidia 980 Ti SC on 06:00.0
Storage    : SSD and multiple HDDs (with SSD using efi boot)
2 Monitor setup
Primary    : 2560x1440 connected via HDMI to Nvidia 710 + DP to Vnidia 980 Ti
Secondary  : 1680x1050 connected via DVI to Nvidia 710

uname -r result:

4.3.5-300.fc23.x86_64
-------------- next part --------------
<domain type='kvm'>
  <name>win10</name>
  <uuid>feb45ed2-9661-4ed3-89da-5ae70012fbd8</uuid>
  <memory unit='KiB'>25165824</memory>
  <currentMemory unit='KiB'>25165824</currentMemory>
  <vcpu placement='static' current='10'>50</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <kvm>
      <hidden state='on'/>
    </kvm>
  </features>
  <cpu mode='host-model'>
    <model fallback='allow'/>
    <topology sockets='1' cores='5' threads='10'/>
  </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>
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <boot order='2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/Win10.img'/>
      <target dev='sda' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' io='native'/>
      <source dev='/dev/sdc1'/>
      <target dev='sdb' bus='sata'/>
      <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='0x05' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 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='scsi' index='0' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:b6:f8:15'/>
<source network='default'/>
      <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'/>
    <video>
      <model type='vga' vram='16384' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x06' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </memballoon>
  </devices>
</domain>





More information about the vfio-users mailing list