[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [vfio-users] VM not booting/no video output when PCI passthrough GPU is added

Ok, I'ḿ stupid. Turns out that besides my monitor I still had my TV connected to the guest GPU, which caused the VM to not output anything to my monitor. Disconnected the TV it worked like a charm. Still, thanks for the help, very much appreciated!

2015-12-16 18:49 GMT+01:00 Roel Van Gorp <roelvangorp gmail com>:
Still no luck... Tried it with kernel 4.1.6-201.fc22 and 4.1.13-100.fc21, but both gave the same result as 4.2.6.

Any other ideas?

2015-12-15 23:26 GMT+01:00 A de Beus <anthony debeus gmail com>:
I believe kernel 4.2.6 is broken. Use the linux-lts kernel which I think is still 4.1.6.

On Dec 15, 2015, at 3:18 PM, Roel Van Gorp <roelvangorp gmail com> wrote:

Hi guys,

After successfully setting up a W10 VM while passing through my GTX 980ti on my old Arch linux install, I now have some difficulties setting it up on a new Fedora installation using the exact same hardware configuration.

I'm using a fresh Fedora 23 installation, kernel 4.2.6-301, the virt-preview repo for the latest virtualization packages and the firmware repo at https://www.kraxel.org/repos/firmware.repo for the latest OVFM firmware.

I mostly based myself on Alex Williamson's blog to set this up, resulting in the following changes in the following files:


  GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet intel_iommu=on rd.driver.pre=vfio-pci"


   options vfio-pci ids=10de:17c8,10de:0fb0
   options vfio-pci disable_vga=1


   add_drivers+="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"

This seems to have successfully enabled the vfio-pci driver, as shown by the output of lspci -nnk:

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM200 [GeForce GTX 980 Ti] [10de:17c8] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3232]
Kernel driver in use: vfio-pci
Kernel modules: nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fb0] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3232]
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel

The VM:

Now I first set up the VM without PCI passthrough using virt-manager and everything worked as expected using a virtual display, allowing me to fully install Windows 10 Pro. The problems started when removing the virtual display and adding the PCI devices for the GTX 980 ti. There is no video output, and looking at the CPU monitor in virt-manager there is a short CPU spike after which it seems hangs at around 1-2%. Reattaching the virtual display again shows the bios splash screen normally as expected, after which it goes to black with just the small white prompt dash. Removing the PCI devices from the configuration again allow the VM to boot normally again. Here is the xml config for the VM:

<domain type='kvm'>
  <memory unit='KiB'>2560000</memory>
  <currentMemory unit='KiB'>2560000</currentMemory>
  <vcpu placement='static'>2</vcpu>
    <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>
    <boot dev='hd'/>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
    <vmport state='off'/>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='2' threads='1'/>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
    <timer name='hypervclock' present='yes'/>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/win10.qcow2'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='network'>
      <mac address='52:54:00:21:17:b8'/>
      <source network='default'/>
      <model type='rtl8139'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>

Any help would be greatly appreciated!
vfio-users mailing list
vfio-users redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]