David Hlacik
2016-Feb-07 17:04 UTC
[libvirt-users] GPU passthrough - MSI R9 380 4GB, works only ONCE
Hello guys, I have a problem when using my MSI R9 380 4G graphic card as GPU passthrough with KVM. At the first linux boot (Fedora 23) I am able to successfully start virtual machine and it works! However if i will shut down virtual machine and start it again - the screen will stay blank! So far I have been able to find on the internet that some graphic cards just can not reinitialize itself when there is no power off/on, which could be the case of mine as well. Also I am very much surprised that this graphic card has no UEFI rom! Any help would be appreciated [root@brutus-coreos ~]# virsh start winos1 Domain winos1 started dmesg output after second boot of the virtual machine winos1 [ 338.346776] input: Microsoft Microsoft® Nano Transceiver v2.0 as /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/0003:045E:0800.0007/input/input23 [ 338.397715] hid-generic 0003:045E:0800.0007: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Microsoft® Nano Transceiver v2.0] on usb-0000:00:14.0-10/input0 [ 338.402847] input: Microsoft Microsoft® Nano Transceiver v2.0 as /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:045E:0800.0008/input/input24 [ 338.403605] hid-generic 0003:045E:0800.0008: input,hidraw1: USB HID v1.11 Mouse [Microsoft Microsoft® Nano Transceiver v2.0] on usb-0000:00:14.0-10/input1 [ 338.419310] input: Microsoft Microsoft® Nano Transceiver v2.0 as /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.2/0003:045E:0800.0009/input/input25 [ 338.470855] hid-generic 0003:045E:0800.0009: input,hiddev0,hidraw2: USB HID v1.11 Device [Microsoft Microsoft® Nano Transceiver v2.0] on usb-0000:00:14.0-10/input2 [ 754.055255] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=io+mem:owns=none [ 754.087966] xhci_hcd 0000:00:14.0: remove, state 4 [ 754.087982] usb usb2: USB disconnect, device number 1 [ 754.090201] xhci_hcd 0000:00:14.0: USB bus 2 deregistered [ 754.090399] xhci_hcd 0000:00:14.0: remove, state 1 [ 754.090409] usb usb1: USB disconnect, device number 1 [ 754.090413] usb 1-2: USB disconnect, device number 2 [ 754.090964] usb 1-8: USB disconnect, device number 3 [ 754.091904] usb 1-10: USB disconnect, device number 4 [ 754.222281] xhci_hcd 0000:00:14.0: USB bus 1 deregistered [ 755.359725] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x270 [ 755.359733] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1b@0x2d0 [ 755.384598] vfio-pci 0000:03:00.0: enabling device (0000 -> 0002) [ 755.485743] vfio_ecap_init: 0000:03:00.0 hiding ecap 0x1e@0x154 screen is blank - I have to reboot my Linux machine in order to be able to start this virtual machine once again David Hlacik +420-777-307-745 | david@hlacik.cz [image: View David Hlacik's profile on LinkedIn] <http://cz.linkedin.com/in/hlacik>
Laine Stump
2016-Feb-08 21:59 UTC
Re: [libvirt-users] GPU passthrough - MSI R9 380 4GB, works only ONCE
On 02/07/2016 12:04 PM, David Hlacik wrote:> Hello guys, > > I have a problem when using my MSI R9 380 4G graphic card as GPU > passthrough with KVM. > > At the first linux boot (Fedora 23) I am able to successfully start > virtual machine and it works! > > However if i will shut down virtual machine and start it again - the > screen will stay blank! > > So far I have been able to find on the internet that some graphic > cards just can not reinitialize itself when there is no power off/on, > which could be the case of mine as well.This ^^^. I hit reply to tell you this, but you've already learned it for yourself. AFAIK, there is no solution for this problem (other than to buy a different brand of GPU - read everything on http://vfio.blogspot.com for advice).
David Hlacik
2016-Feb-08 22:38 UTC
Re: [libvirt-users] GPU passthrough - MSI R9 380 4GB, works only ONCE
Thank you man. Appreciate it. David On Feb 8, 2016 10:59 PM, "Laine Stump" <laine@laine.org> wrote:> On 02/07/2016 12:04 PM, David Hlacik wrote: > >> Hello guys, >> >> I have a problem when using my MSI R9 380 4G graphic card as GPU >> passthrough with KVM. >> >> At the first linux boot (Fedora 23) I am able to successfully start >> virtual machine and it works! >> >> However if i will shut down virtual machine and start it again - the >> screen will stay blank! >> >> So far I have been able to find on the internet that some graphic cards >> just can not reinitialize itself when there is no power off/on, which could >> be the case of mine as well. >> > > This ^^^. I hit reply to tell you this, but you've already learned it for > yourself. AFAIK, there is no solution for this problem (other than to buy a > different brand of GPU - read everything on http://vfio.blogspot.com for > advice). > >